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
eventman.php issue
eventman.php issue
- Thanks,
Nate Drumm
Infrastructure Engineer
Nate Drumm
Infrastructure Engineer
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: eventman.php issue
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
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 takes over 15 min to run this command and the cron tries to run it 1 time per minute. Is this normal?
- Thanks,
Nate Drumm
Infrastructure Engineer
Nate Drumm
Infrastructure Engineer
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: eventman.php issue
It shouldn't be running longer than 1 minndrumm 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?
Do you see 15 of them running when you run this?
Code: Select all
ps -ef|grep eventman