Page 1 of 2

Monitor window service nagios xi

Posted: Thu Jun 16, 2016 11:29 am
by Naveed
Hello,

I have installed nrpe on windows server.

All my services are running fine on nagios dashboard.

Kindly do let me know that how I can add a service in nagios xi for windows server

Thank you!

Re: Monitor window service nagios xi

Posted: Thu Jun 16, 2016 12:02 pm
by rkennedy
Are you trying to monitor an additional windows service, or add an additional service in Nagios?

Re: Monitor window service nagios xi

Posted: Mon Jun 20, 2016 7:16 am
by Naveed
I am trying to monitor all windows services using check_nrpe...

Re: Monitor window service nagios xi

Posted: Mon Jun 20, 2016 1:31 pm
by rkennedy
You should be able to use this to accomplish what you're looking to do, by setting up a service check around it -

Code: Select all

[root@localhost libexec]# ./check_nrpe -H 192.168.5.47 -p 5666 -c CheckServiceState -a ShowAll=long "AdobeARMservice" "nscp"
OK: AdobeARMservice: running, nscp: running|'AdobeARMservice'=4;0;4 'nscp'=4;0;4

[root@localhost libexec]# ./check_nrpe -H 192.168.5.47 -p 5666 -c CheckServiceState -a ShowAll=long "AdobeARMservice" "nscp"
CRITICAL: AdobeARMservice: stopped, nscp: running|'AdobeARMservice'=1;0;4 'nscp'=4;0;4

Re: Monitor window service nagios xi

Posted: Mon Jun 20, 2016 1:35 pm
by Naveed
Thank you!

I am working on it, will update you in case of any assistance.

Much appreciated

Re: Monitor window service nagios xi

Posted: Mon Jun 20, 2016 1:37 pm
by rkennedy
No problem - let us know if you run into any issues and we'll work through them. In the above paste, the second was the result of shutting down the service. (just wanted you to see what it would look like)

Re: Monitor window service nagios xi

Posted: Tue Jun 21, 2016 3:21 pm
by Naveed
Tank you very much

I am doing good to monitor my services... Will ask you if need any help regarding that.

The problem which I am facing right now is how to delete a service in unknown state.
Even It does not show in CCM ===> services to delete from there...
Can you please suggest any solution?

Thank you in advance

Re: Monitor window service nagios xi

Posted: Tue Jun 21, 2016 4:21 pm
by bwallace
It is possible that you have multiple instances of nagios running or you have so called "ghost" hosts or services. Run through the steps outlined in this doc and let us know of the outcome, thanks.
https://support.nagios.com/kb/article.php?id=27

Re: Monitor window service nagios xi

Posted: Tue Jun 21, 2016 5:32 pm
by Naveed
Thank you very much!

The shared solution did not work for me.

I have killed all nagios processes, restart it but all in vain.

kindly suggest please.

Thank you!

Re: Monitor window service nagios xi

Posted: Tue Jun 21, 2016 9:26 pm
by Box293
Go into CCM
Tools > Write Config Files
Click the Delete button (it's non-destructive)
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Button
It will show an output of all the files it creates
Click the Verify button
The output should end with "Total Errors: 0"
Quick Tools > Apply Configuration
Click the Apply Configuration button

Does this fix your problem ?