All pastes #189919 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-03 15:02 UTC
rendered paste body
I got this on daemon.log:
Oct  3 11:59:33 rapid nrpe[27381]: Host is asking for command 'check_asterisk' to be run...
Oct  3 11:59:33 rapid nrpe[27381]: Running command: /usr/local/bin/flizy_info
Oct  3 12:00:33 rapid nrpe[27381]: Command completed with return code 2 and output: 
Oct  3 12:00:33 rapid nrpe[27381]: Return Code: 2, Output: NRPE: Command timed out after 60 seconds
Oct  3 12:00:33 rapid nrpe[27381]: Connection from 192.168.100.145 closed.

I run this command on server:
/usr/local/nagios/libexec/check_nrpe -H 192.168.200.244 -c check_asterisk -t 30
CHECK_NRPE: Socket timeout after 30 seconds.

I have this set on nrpe.cfg on client:
command[check_asterisk]=/usr/local/bin/flizy_info 

If i run flizy_info from shell, i got a numerical value:
root@rapid:~# flizy_info 
122
root@rapid:~# 

When i run from check_nrpe, i got this processes stopped:

24904 ?        Ss     0:00 nrpe -c /etc/nrpe.cfg -d
28323 ?        S      0:00 nrpe -c /etc/nrpe.cfg -d
28324 ?        S      0:00 nrpe -c /etc/nrpe.cfg -d
28325 ?        S      0:00 sh -c /usr/local/bin/flizy_info
28326 ?        S      0:00 sh -c /usr/local/bin/flizy_info
28327 ?        S      0:00 sudo /usr/sbin/asterisk -rx sip show peers
28328 ?        S      0:00 grep peers
28329 ?        S      0:00 awk { print $1 }
28330 ?        S      0:00 grep [0-9]

And i got this timeout.