Windows Process monitoring Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Windows Process monitoring Issue

Post by sreinhardt »

Just to verify since it doesn't seem very clear on the other posts, I may be reading this incorrectly too. Are you doing other nsclient checks on this machine that are working? A quick way to test if the port is open is below:

nmap [Host IP] -p 12489
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows Process monitoring Issue

Post by lmiltchev »

Run the following commands and show the output of them:

Code: Select all

./check_nt -H <host_IP> -s <password> -p 12489 -v CLIENTVERSION
./check_nt -H <host_IP> -s <password> -p 12489 -v PROCSTATE -l rtAgent941.exe *32 -d SHOWALL
Be sure to check out our Knowledgebase for helpful articles and solutions!
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Windows Process monitoring Issue

Post by USPHNetAdmins »

I tried the command from the Nagios server and got "Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option). I used the following command:
/usr/local/nagios/libexec/check_nrpe - H 172.16.10.51 -c CheckProcState -a ShowAll rtagent941.exe=started

I also tried the config file and once I restarted the nclient++ service, all the check failed on that server and not just the rtagent process I am trying to monitor. I did change the IP of the allowed server, but that did not make a difference.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Windows Process monitoring Issue

Post by yancy »

USPHNetAdmins,

Run the config wizard using the "NRPE" wizards and choose windows. That will fix the issue of all checks not showing up by useing NRPE to monitor the host. (Also NRPE is better maintained)

In the [NRPE] setting of the config NSC.ini, make sure the following is set:

;# COMMAND ARGUMENT PROCESSING
; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.
;allow_arguments=1

-Yancy
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Windows Process monitoring Issue

Post by USPHNetAdmins »

Yancy,

Here is what I did.

1.) I uninstalled the NSCLIENT++ from the server and reinstall the latest stable x64 version.
2.) I then checked the NSC.ini and found that it was set to 0 and not 1.
3.) I deleted the server from Nagios and added it back using the Windows Server Wizard which was updated to the latest version.
4.) All the other items are being monitored, but this one process still shows as "No data was received from host".

The only thing left to try is reboot the server, but I will have to schedule some off time for that as it is a production server.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Windows Process monitoring Issue

Post by sreinhardt »

There are potentially many other issues, and rebooting it likely will have little to no effect. Again, are you able to scan the ports with nmap to be sure that they are open.

nmap -p 12489 [Hostname\IP]
nmap -p 5666 [Hostname\IP]
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
USPHNetAdmins
Posts: 17
Joined: Tue Jul 02, 2013 9:55 am

Re: Windows Process monitoring Issue

Post by USPHNetAdmins »

Yes, when I scan the ports with nmap, they are both open. As noted before, other processes being monitored on the same server work fine. It is just this one process.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Windows Process monitoring Issue

Post by abrist »

Lets check a different procstate, one that we know the name of and that exists:

Code: Select all

./check_nt -H <host_IP> -s <password> -p 12489 -v PROCSTATE -l explorer.exe -d SHOWALL
What errors do you receive for the command above?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked