Page 1 of 1

eventman.php issue

Posted: Fri Jan 11, 2019 11:40 am
by ndrumm
Hello,

We are running the below command after repairing the databases and it runs for around 20 minutes and then only processes 1 event. Please let me know what more information I can provide to assist with resolving this quickly.

/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
PHP Notice: Undefined variable: settings in /usr/local/nagiosxi/html/includes/components/mtr/mtr.inc.php on line 533
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/cron/eventman.php:0
PHP 2. do_eventman_jobs() /usr/local/nagiosxi/cron/eventman.php:22
PHP 3. process_events() /usr/local/nagiosxi/cron/eventman.php:58
PHP 4. process_event_record() /usr/local/nagiosxi/cron/eventman.php:108
PHP 5. process_event() /usr/local/nagiosxi/cron/eventman.php:131
PHP 6. do_callbacks() /usr/local/nagiosxi/cron/eventman.php:168
PHP 7. mtr_component_eventhandler() /usr/local/nagiosxi/html/includes/utilsl.inc.php:3416
*** GLOBAL HANDLER (snmptrapsender)...
Array
(
[event_id] => 72614934
[event_source] => 2
[event_type] => 1
[event_time] => 2019-01-11 08:44:11
[event_meta] => Array
(
[handler-type] => service
[host] => ket-grdicmpd-001
[service] => Drive Space
[hostaddress] => 10.5.64.226
[hoststate] => UP
[hoststateid] => 0
[hosteventid] => 5539970
[hostproblemid] => 0
[servicestate] => CRITICAL
[servicestateid] => 2
[lastservicestate] => CRITICAL
[lastservicestateid] => 2
[servicestatetype] => SOFT
[currentattempt] => 3
[maxattempts] => 4
[serviceeventid] => 6176441
[serviceproblemid] => 2781912
[serviceoutput] => (Return code of 255 is out of bounds)
[longserviceoutput] =>
[servicedowntime] => 0
)

[logging_enabled] => 0
)
SNMP TRAP SENDER NOT CONFIGURED!

PROCESSED 1 EVENTS

Re: eventman.php issue

Posted: Fri Jan 11, 2019 2:15 pm
by scottwilkerson
There doesn't seem to be an issue here. The php notice is just showing because you must have enabled notice logging, the rest is typical, you would only have 1 event in there was only 1 notification sent.

Re: eventman.php issue

Posted: Fri Jan 11, 2019 3:38 pm
by ndrumm
Hi Scott,

It takes over 15 min to run this command and the cron tries to run it 1 time per minute. Is this normal?

Re: eventman.php issue

Posted: Fri Jan 11, 2019 3:57 pm
by scottwilkerson
ndrumm wrote:Hi Scott,

It takes over 15 min to run this command and the cron tries to run it 1 time per minute. Is this normal?
It shouldn't be running longer than 1 min

Do you see 15 of them running when you run this?

Code: Select all

ps -ef|grep eventman