Page 1 of 1

how can add specified service to nagios monitor

Posted: Thu Jan 28, 2016 1:17 pm
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

Re: how can add specified service to nagios monitor

Posted: Thu Jan 28, 2016 3:18 pm
by baber
please help me

Re: how can add specified service to nagios monitor

Posted: Thu Jan 28, 2016 4:52 pm
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?

Re: how can add specified service to nagios monitor

Posted: Thu Jan 28, 2016 7:57 pm
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

Re: how can add specified service to nagios monitor

Posted: Fri Jan 29, 2016 10:37 am
by rkennedy
You should be able to use the check_service command with NSClient++.

Re: how can add specified service to nagios monitor

Posted: Sat Jan 30, 2016 4:08 am
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

Re: how can add specified service to nagios monitor

Posted: Mon Feb 01, 2016 10:28 am
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.|