Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malformed stdin message #3

Open
yanis-git opened this issue Nov 12, 2019 · 0 comments
Open

malformed stdin message #3

yanis-git opened this issue Nov 12, 2019 · 0 comments

Comments

@yanis-git
Copy link

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");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant