Problem using check_nt on windows desktop service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Problem using check_nt on windows desktop service

Post by cwscribner »

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.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem using check_nt on windows desktop service

Post by lmiltchev »

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.
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

Post by cwscribner »

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.
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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem using check_nt on windows desktop service

Post by lmiltchev »

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
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

Post by cwscribner »

Socket timeout after 10 seconds.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem using check_nt on windows desktop service

Post by mguthrie »

It would be helpful to see the full command-line call and the output from it (password removed of course).

Code: Select all

cd /usr/local/nagios/libexec
./check_nt -H <address> -p 12489 -v '-d SHOWALL' '-l n4n.exe' 
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.

Code: Select all

allow_arguments=1
debug=1
file=nsclient.log
Check the nsclient.log file if you're able to get through to the windows machine but you're still getting an error.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Problem using check_nt on windows desktop service

Post by cwscribner »

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).
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Problem using check_nt on windows desktop service

Post by mguthrie »

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
Locked