check_winservice

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
cfgfile
Posts: 2
Joined: Fri Jan 13, 2017 1:54 am

check_winservice

Post by cfgfile »

Hi,

How do I run check_winservice from nagios? I have successfully run it from target windows server but trying to invoke it with either command not found or nagios help prompt.
Attachments
sample output
sample output
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: check_winservice

Post by gormank »

Since it looks like you're using nsclient you'd want to add a command to nsclient.ini under scripts something like the following:

[/settings/external scripts/scripts]
check_winservice = scripts\\check_winservice.exe $ARGS$

Then create a service in Nagios to run the command with the desired arguments on the Windows host.

That said, nsclient has an internal check_service command that can be used to check Windows services.
Locked