Runtime Error for host and service notification
Posted: Sat Dec 17, 2016 12:18 am
Running Nagios XI 5.3.4
Have gone through the "How to Configure Email And Text Notifications" document.
Have tested a test email and successfully received it.
If I use the 'notify-host-by-email' or the 'notify-service-by-email' Notification Commands, the emails work. If I try to use the xi_host_notification_handler or the xi_service_notification_handler Notification Commands, the emails do not get sent.
The event log reports the following:
From the Eventman.log file:
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 488
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 489
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 488
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 488
.................
PROCESSED 0 EVENTS
Have gone through the "How to Configure Email And Text Notifications" document.
Have tested a test email and successfully received it.
If I use the 'notify-host-by-email' or the 'notify-service-by-email' Notification Commands, the emails work. If I try to use the xi_host_notification_handler or the xi_service_notification_handler Notification Commands, the emails do not get sent.
The event log reports the following:
Code: Select all
[1481951226] SERVICE NOTIFICATION: bilo;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: garc;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: mosj;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: WieJ;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: harj;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: almv;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: nobj;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951226] SERVICE NOTIFICATION: sped;Cenvrpprd1.oya.ad;Memory Usage;CUSTOM (OK);xi_service_notification_handler;OK - Physical Memory: Total: 24GB - Used: 9.813GB (41%) - Free: 14.187GB (59%);Vince A;test test test
[1481951228] wproc: NOTIFY job 25 from worker Core Worker 9912 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=garc
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 27 from worker Core Worker 9911 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=sped
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 26 from worker Core Worker 9913 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=mosj
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 26 from worker Core Worker 9910 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=harrj
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 27 from worker Core Worker 9913 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=nobj
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 25 from worker Core Worker 9910 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=bilo
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 26 from worker Core Worker 9912 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=almv
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
[1481951228] wproc: NOTIFY job 26 from worker Core Worker 9911 is a non-check helper but exited with return code 255
[1481951228] wproc: host=Cenvrpprd1.oya.ad; service=Memory Usage; contact=WieJ
[1481951228] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1481951228] wproc: stderr line 01: No entry for terminal type "unknown";
[1481951228] wproc: stderr line 02: using dumb terminal settings.
From the Eventman.log file:
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 488
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 489
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 488
PHP Notice: Undefined index: nagiosxi in /usr/local/nagiosxi/html/includes/db.inc.php on line 488
.................
PROCESSED 0 EVENTS