Search found 2 matches
- Thu Aug 06, 2020 2:38 pm
- Forum: Nagios XI
- Topic: Service returns OK status even when failing to run
- Replies: 3
- Views: 487
Re: Service returns OK status even when failing to run
Thank you very much. I did some quick testing and adding the try and catch to the nsclient.ini line did allow it to kick back an error. Ill have to deploy an updated ini to all my clients after I do some more testing. Here is the line i used: pending_reboot = cmd /c echo Try {scripts\test\pending_re...
- Wed Aug 05, 2020 2:04 pm
- Forum: Nagios XI
- Topic: Service returns OK status even when failing to run
- Replies: 3
- Views: 487
Service returns OK status even when failing to run
We have a service that runs a Powershell script on the Windows server it is assigned to. The service runs fine and it checks if a server is pending a reboot for windows updates. Nagios can trigger the script fine and gets a correct return if there is a pending reboot or not. If there is then the sta...