malformed stdin message
yanis-git opened this issue · comments
Introduction :
From the example provided, i have notice malformed event on stdin from Supervisord
Instead of receiving message like :
ver:3.0 server:supervisor serial:51 pool:monitoring poolserial:51 eventname:PROCESS_STATE_RUNNING len:76
i was received
]
On my following case, my monitored process throw an exception which are writed on stderr.
My eventListener must be informed and send me back a notification.
Way to reproduce :
My supervisor configuration looks like :
[program:myProgram]
command=/usr/local/bin/php /path/to/my/script.php
stdout_logfile=/path/to/my/logs/myProgram.stdout.log
stderr_logfile=/path/to/my/logs/myProgram.stderr.log
numprocs=2
process_name=%(program_name)s_%(process_num)02d
numprocs_start=1
autostart=true
autorestart=true
stderr_events_enabled=true
[eventlistener:monitoring]
command=/usr/local/bin/php /path/to/my/monitoring.php
process_name=%(program_name)s_%(process_num)02d
numprocs=1
stdout_logfile=/path/to/my/logs/monitoring.stdout.log
stderr_logfile=/path/to/my/logs/monitoring.stderr.log
events=PROCESS_STATE,PROCESS_LOG_STDERR
autostart=true
autorestart=unexpected
and my testing script.php
<?php
sleep(10);
throw new Exception("foo");