-
Notifications
You must be signed in to change notification settings - Fork 20
check_yum acummulating processes #16
Comments
And he sent:
|
Now first to the issue itself: How exactly do you invoke check_yum? And as which user? When you look at issue #7, I mention something that upstream implemented (--setopt=exit_on_lock=true) and which could help us with locking issues... but I haven't had the mood so far to revisit this,... and it has the problem that if we simply exit then we cannot use "OK"... and OTOH we don't want to have non-OK statuses all the time, just because yum exited because of a lock. |
(Oh I just could reproduce your issue,... but it only happens, when I run check_yum as root) |
The to your patch:
|
Last but not least: yes I read that Google Code shuts down when it became public,... I've also started the migration but it always failed and I've opened a ticket at google. |
A user reports via mail:
hi! we had an issue with check_yum spawning yum processes without
killing them when yum is stuck waiting for a lock. to see this happen, run
yum install isdn4k-utils
(or some other package not installed already) and do NOT answer yes, but
leave it waiting.
the timeout code will kill the python script itself after 55 seconds,
but the child process will be left behind. we had a server dying due to
the lack of memory after a while, since Icinga runs the check every 5
minutes when it is in non-OK state...
the included patch will simply disable check_yum's own signal handler
for SIGALRM and then proceed to send SIGALRM to all processes in its
process group. this will include the forked nrpe parent, but not nrpe
itself. when run interactively in a shell without job control, it may
also terminate that interactive shell. I don't think it is worthwhile
to complicate the code to avoid that behaviour.
also, have you heard that Google Code is shutting down? would be good
to migrate your project to Github or similar. if you have already done
so, please update
http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_yum/details
thanks!
The text was updated successfully, but these errors were encountered: