how can add specified service to nagios monitor

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

how can add specified service to nagios monitor

Post by baber »

HI

i have installed Nagios® Core™ Version 4.1.1 i have a question :

i have added a windows server to nagios host monitor i have installe vcenter on my windows server now i want know if want to add vcenter service to nagios for monitoring what do i have to do ? i have add vcenter service for monitor that is stop or run

best regards
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can add specified service to nagios monitor

Post by baber »

please help me
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: how can add specified service to nagios monitor

Post by hsmith »

baber wrote:please help me
Please do not bump your posts. We work between the hours of 9-5 CT Monday - Friday. We have a dashboard on our end that sorts posts by age, oldest fist. If you bump your post, all you're doing is moving your post to the bottom of the list, making it appear to be lower priority.
baber wrote:i have added a windows server to nagios host monitor i have installe vcenter on my windows server now i want know if want to add vcenter service to nagios for monitoring what do i have to do ? i have add vcenter service for monitor that is stop or run
Do you have any monitoring agents on your Windows machine?
Former Nagios Employee.
me.
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can add specified service to nagios monitor

Post by baber »

thanks

i just have installed NSClient++ on windows server 2008

now how can monitor other services on windows such as vcenter services and ....

best regards
Babak
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: how can add specified service to nagios monitor

Post by rkennedy »

You should be able to use the check_service command with NSClient++.
Former Nagios Employee
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can add specified service to nagios monitor

Post by baber »

thanks but would you please help me how can i use check_service command and where do i have to set commands

please do an example

i have use this in windows :

check_winservice.exe –service Netlogon --state stopped,paused,stop pendding,pause pendding,unknow –critical 0

this work and output is ok but how can i put this code in nagios core or how can i say to nagios use this code ?

best regards
Babak
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: how can add specified service to nagios monitor

Post by rkennedy »

You can read more information about check_service over at http://docs.nsclient.org/reference/CheckSystem.html. This will outline the parameters possible, and so that you can tailor it to your needs.

As an example for you, here is what the basic command looks like over the command line -

Code: Select all

[root@suse11 libexec]# ./check_nrpe -H 192.168.5.47 -c check_service -a "service=BranchCache"
OK: All 1 service(s) are ok.|
Former Nagios Employee
Locked