benjaminsmith
I thought my event handler logic was simple
Has anyone reviewed my logic?
Does anyone have a working event handler that they can post
Thanks
Search found 644 matches
- Wed Aug 26, 2020 5:56 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
- Tue Aug 25, 2020 6:09 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Re: Event Handler for Restart-Service
Gormank Try testing as Nagios? su nagios It runs as the nagios account root@tgcs017:/usr/local/nagios/libexec# su nagios nagios@tgcs017:/usr/local/nagios/libexec$ ls chardetect check_dhcp check_esxi_hardware.py check_ifstatus check_mrtg check_ntp_time check_rpc check_tcp check_vmware_api.pl.backup2 ...
- Tue Aug 25, 2020 8:29 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Re: Event Handler for Restart-Service
I updates the restart_service.sh to this. #!/bin/sh case "$1" in OK) ;; WARNING) ;; UNKNOWN) ;; CRITICAL) case "$2" in SOFT) case "$3" in 3) /usr/local/nagios/libexec/check_nrpe -H "$2" -p 5666 -c restart_service -a "$3" ;; esac ;; HARD) /usr/local/n...
- Mon Aug 24, 2020 8:00 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Re: Event Handler for Restart-Service
When I run the command from the nagios server manually it works root@tgcs017:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_nrpe -H "TGKW002" -p 5666 -c restart_service -a "spooler" The Print Spooler service is stopping. The Print Spooler service was stopped successfu...
- Mon Aug 24, 2020 3:42 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Re: Event Handler for Restart-Service
OK I added the .sh and now I do not get the error above. But it still does not run the script see this log [1598300928] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;TGKW002;Check All Service;1598300916 [1598300928] SERVICE ALERT: TGKW002;Check All Service;CRITICAL;SOFT;1;CRITICAL: Spooler: stopped de...
- Mon Aug 24, 2020 2:33 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Re: Event Handler for Restart-Service
[1598297389] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;TGKW002;Check All Service;1598297386 [1598297389] SERVICE ALERT: TGKW002;Check All Service;CRITICAL;SOFT;1;CRITICAL: Spooler: stopped delayed () [1598297389] SERVICE EVENT HANDLER: TGKW002;Check All Service;CRITICAL;SOFT;1;restart_service [159...
- Fri Aug 21, 2020 2:59 pm
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Re: Event Handler for Restart-Service
Anyone with an idea?
- Thu Aug 20, 2020 8:10 am
- Forum: Open Source Nagios Projects
- Topic: Event Handler for Restart-Service
- Replies: 15
- Views: 6847
Event Handler for Restart-Service
Nagios Core 4.3.4 My Service define service { host_name Desktop2 service_description Check All Service check_command check_nrpe!checkservicestate! -a CheckAll exclude=RemoteRegistry exclude=sppsvc exclude=MapsBroker exclude=dbupdate exclude=DoSvc exclude=TrustedInstller exclude=gpsvc exclude=WbioSrv...
- Sun Jul 05, 2020 5:18 pm
- Forum: Open Source Nagios Projects
- Topic: MSW by Box293 Checks Issue
- Replies: 0
- Views: 834
MSW by Box293 Checks Issue
I have Nagios 4.3.4 Core Ubuntu CentOS Installed MSW on my Centos has 4 CPU's 16 GB of memory After restarting Nagios I randomly get these and other false errors from all the MSW checks Host pNic Usage vmnic1 - TGCSESXI-15 UNKNOWN 07-05-2020 15:59:01 0d 0h 22m 19s 1/3 Total number of concurrent chec...
- Tue Jun 09, 2020 4:49 pm
- Forum: Open Source Nagios Projects
- Topic: Windows 2019 Server OS Check
- Replies: 2
- Views: 1556
Re: Windows 2019 Server OS Check
Guys,
I wrote a PowerShell script to get the OS Version of the computer.
Changed my check to use the PowerShell script and now it reports the correct OS Version.
If anyone would like a copy of the script let me know.
This issue can be locked as self resolved.
Thank you
Tom
I wrote a PowerShell script to get the OS Version of the computer.
Changed my check to use the PowerShell script and now it reports the correct OS Version.
If anyone would like a copy of the script let me know.
This issue can be locked as self resolved.
Thank you
Tom