Monitor window service nagios xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Monitor window service nagios xi

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor window service nagios xi

Post by rkennedy »

Are you trying to monitor an additional windows service, or add an additional service in Nagios?
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Monitor window service nagios xi

Post by Naveed »

I am trying to monitor all windows services using check_nrpe...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor window service nagios xi

Post 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
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Monitor window service nagios xi

Post by Naveed »

Thank you!

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

Much appreciated
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor window service nagios xi

Post 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)
Former Nagios Employee
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Monitor window service nagios xi

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Monitor window service nagios xi

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
Naveed
Posts: 285
Joined: Mon May 30, 2016 10:10 am

Re: Monitor window service nagios xi

Post 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!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitor window service nagios xi

Post 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 ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked