Page 2 of 2

Re: Traps & eventman.log

Posted: Wed Oct 28, 2020 8:49 pm
by oslec
Hi,
I see the next ..in the logs
Oct 28 19:39:54 mxtulm01nagiosxi nagios: Warning: Global host event handler command '/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=host --host="MXCMXM01RTDCLFISP02" --hostaddress="10.225.118.9" --hoststate=DOWN --hoststateid=1 --lasthoststate=DOWN --lasthoststateid=1 --hoststatetype=SOFT --currentattempt=3 --maxattempts=5 --hosteventid=5075361 --hostproblemid=2470853 --hostoutput="CRITICAL - 10.225.118.9: rta nan, lost 100%" --longhostoutput="" --hostdowntime=0' timed out after 0.00 seconds

Is a Warning and timeout..

If I run this command in shell..
/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=host --host="MXCMXM01RTDCLFISP02" --hostaddress="10.225.118.9" --hoststate=DOWN --hoststateid=1 --lasthoststate=DOWN --lasthoststateid=1 --hoststatetype=SOFT --currentattempt=3 --maxattempts=5 --hosteventid=5075361 --hostproblemid=2470853 --hostoutput="CRITICAL - 10.225.118.9: rta nan, lost 100%" --longhostoutput="" --hostdowntime=0

The eventman show me the trap ..

PHP Notice: Undefined index: contact in /usr/local/nagiosxi/html/includes/utils-notifications.inc.php on line 0
PHP Notice: Undefined variable: _SESSION in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 1980
RUNNING COMMAND: /usr/bin/snmptrap -v 2c -c public 10.150.10.73:162 '' NAGIOS-NOTIFY-MIB::nHostEvent nHostname s "MXCMXM01RTDCLFISP02" nHostStateID i 1 nHostOutput s "CRITICAL - 10.225.118.9: rta nan, lost 100%" nHostAlias s "MXCMXM01RTDCLFISP02"
.............
PROCESSED 1 EVENTS
.....................

What happen with the timeout ?


Regards!

Re: Traps & eventman.log

Posted: Thu Oct 29, 2020 5:28 pm
by ssax
Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

Thank you!