Hi all.
I'm trying to monitor n4n.exe on a windows desktop but I keep getting "Could not parse arguements". Here's a screen shot of my attempted setup.
Problem using check_nt on windows desktop service
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Problem using check_nt on windows desktop service
You do not have the required permissions to view the files attached to this post.
Re: Problem using check_nt on windows desktop service
Make sure the name of the service that you use in your command is exactly the same as written under the Name Tab (in Services and Applications->Services under Computer Management).
Is n4n.exe listed there?
You can try with another service (that is listed), for example: "Print Spooler" just to see if it would parse the arguments.
Is n4n.exe listed there?
You can try with another service (that is listed), for example: "Print Spooler" just to see if it would parse the arguments.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Problem using check_nt on windows desktop service
Already checked. The service in particular is a TTY service that I'm just trying to monitor UP/DOWN on. A tech at my client's site has confirmed that the service is present and running.lmiltchev wrote:Make sure the name of the service that you use in your command is exactly the same as written under the Name Tab (in Services and Applications->Services under Computer Management).
Is n4n.exe listed there?
You can try with another service (that is listed), for example: "Print Spooler" just to see if it would parse the arguments.
Re: Problem using check_nt on windows desktop service
Can you run your check in command line and post the output, so we can review it?
You can follow this document, which explains how to test-check your commands from the command line:
http://support.nagios.com/wiki/index.ph ... mmand-line
You can follow this document, which explains how to test-check your commands from the command line:
http://support.nagios.com/wiki/index.ph ... mmand-line
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Problem using check_nt on windows desktop service
Socket timeout after 10 seconds.
Re: Problem using check_nt on windows desktop service
It would be helpful to see the full command-line call and the output from it (password removed of course).
The "socket timeout" points to a firewall issue somewhere, did you forget the port number?
Make sure you have the following settings in the nsc.ini file, and restart the nsclient service after any changes.
Check the nsclient.log file if you're able to get through to the windows machine but you're still getting an error.
Code: Select all
cd /usr/local/nagios/libexec
./check_nt -H <address> -p 12489 -v '-d SHOWALL' '-l n4n.exe' Make sure you have the following settings in the nsc.ini file, and restart the nsclient service after any changes.
Code: Select all
allow_arguments=1
debug=1
file=nsclient.log-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: Problem using check_nt on windows desktop service
My apologies. I tried the command that you listed from the libexec directory and it still says "Cannot parse command arguments". NSClient is picking up the other metrics properly (CPU, RAM, Disk) but it can't execute the command for the particular service (n4n.exe).
Re: Problem using check_nt on windows desktop service
I did some snooping around NSClient's documentation site. It's got some examples for checking service states, but it's using the check_nrpe command. See if this gets you what you need.
http://nsclient.org/nscp/wiki/CheckServiceState
http://nsclient.org/nscp/wiki/CheckServiceState