Re: System Monitoring OTRS/NAGIOS
Posted: Fri Jan 15, 2016 2:42 pm
Bugger, i forgot to add that! Will go do it now
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
nathan@ubuntu:/usr/local/nagios/var$ tail nagios.log
[1453322874] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code= 0;
[1453322874] wproc: stderr line 01: execvp(/usr/local/nagios/libexec/eventhand lers/notify_otrs.sh, ...) failed. errno is 2: No such file or directory
[1453322874] wproc: SERVICE EVENTHANDLER job 8 from worker Core Worker 2889 is a non-check helper but exited with return code 2
[1453322874] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code= 0;
[1453322874] wproc: stderr line 01: execvp(/usr/local/nagios/libexec/eventhand lers/host_notify_otrs.sh, ...) failed. errno is 2: No such file or directory
[1453322874] wproc: NOTIFY job 8 from worker Core Worker 2890 is a non-check hel per but exited with return code 127
[1453322874] wproc: host=marvin; service=CPU Load; contact=nagiosadmin
[1453322874] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_cod e=0;
[1453322874] wproc: stderr line 01: /bin/sh: 1: /bin/mail: not found
[1453322874] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
nathan@ubuntu:/usr/local/nagios/var$
Code: Select all
[1453325108] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;marvin;CPU Load;1453325107
[1453325108] SERVICE ALERT: marvin;CPU Load;CRITICAL;SOFT;1;CPU Load 97% (5 min average)
[1453325108] SERVICE EVENT HANDLER: marvin;CPU Load;CRITICAL;SOFT;1;host-notify-otrs
[1453325108] wproc: SERVICE EVENTHANDLER job 2 from worker Core Worker 3460 is a non-check helper but exited with return code 2
[1453325108] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code=0;
[1453325108] wproc: stderr line 01: execvp(/usr/local/nagios/libexec/eventhandlers/host_notify_otrs.sh, ...) failed. errno is 2: No such file or directory
nathan@ubuntu:/usr/local/nagios/var$ cd ..
nathan@ubuntu:/usr/local/nagios$ cd libexec/eventhandler/
nathan@ubuntu:/usr/local/nagios/libexec/eventhandler$ ls
host_notify_otrs.sh host_otrs_event_ok.sh notify_otrs.sh otrs_event_ok.sh
nathan@ubuntu:/usr/local/nagios/libexec/eventhandler$
Code: Select all
ls -l /usr/local/nagios/libexec/eventhandlers/
Code: Select all
1453325867] wproc: NOTIFY job 2 from worker Core Worker 3632 is a non-check helper but exited with return $
[1453325867] wproc: host=marvin; service=CPU Load; contact=nagiosadmin
[1453325867] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
[1453325867] wproc: stderr line 01: /bin/sh: 1: /bin/mail: not found
[1453325867] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe
[1453326194] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;marvin;CPU Load;1453326193
[1453326194] SERVICE ALERT: marvin;CPU Load;CRITICAL;SOFT;1;CPU Load 97% (5 min average)
[1453326194] SERVICE EVENT HANDLER: marvin;CPU Load;CRITICAL;SOFT;1;host-notify-otrs