Hello,
I have a problem with monitoring one of my windows machines. When I'm trying to monitor a process Nagios says the process is down but its not.
My service definition:
define service{
use generic-service
host_name winserver
service_description Pervasive PSQL 11.12 Component - ntbtrv64.exe
check_command check_nt!PROCSTATE!-d SHOWALL -l ntbtrv64.exe
}
administrator@srvNagios:/usr/local/nagios/libexec$ ./check_nt -H IP -s password -p 12489 -v PROCSTATE -d SHOWALL -l ntbtrv64.exe
ntbtrv64.exe: not running
the process name in windows task manager is: ntbtrv64.exe
Nagios status of the service: Status Information: ntbtrv64.exe: not running
All the other checks are working fine like disk space, memory usage and services.
It's a Windows 2012 with NSClient++
Thanks in advance /Joakim
check_nt!PROCSTATE problem
-
- Posts: 19
- Joined: Thu Feb 07, 2013 9:41 am
- Location: Sweden
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nt!PROCSTATE problem
Lets first test this with a known process:
Then, please send us a screenshot of the process's properties window.
Code: Select all
/usr/local/nagios/libexec/check_nt -H IP -p 12489 -v PROCSTATE -d SHOWALL -l nsclient++.exe
-
- Posts: 19
- Joined: Thu Feb 07, 2013 9:41 am
- Location: Sweden
Re: check_nt!PROCSTATE problem
Hi,
Thanks for the reply.
administrator@srvNagios:/usr/local/nagios/libexec$ ./check_nt -H 192.168.2.182 -s PASSWORD -p 12489 -v PROCSTATE -d SHOWALL -l nsclient++.exe
nsclient++.exe: not running
administrator@srvNagios:/usr/local/nagios/libexec$ ./check_nt -H 192.168.2.182 -s PASSWORD -p 12489 -v PROCSTATE -d SHOWALL -l nscp.exe
nscp.exe: Running
Thanks /Joakim
Thanks for the reply.
administrator@srvNagios:/usr/local/nagios/libexec$ ./check_nt -H 192.168.2.182 -s PASSWORD -p 12489 -v PROCSTATE -d SHOWALL -l nsclient++.exe
nsclient++.exe: not running
administrator@srvNagios:/usr/local/nagios/libexec$ ./check_nt -H 192.168.2.182 -s PASSWORD -p 12489 -v PROCSTATE -d SHOWALL -l nscp.exe
nscp.exe: Running
Thanks /Joakim
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nt!PROCSTATE problem
Okay great, we need the screenshot of that page of the process you are trying to monitor.
-
- Posts: 19
- Joined: Thu Feb 07, 2013 9:41 am
- Location: Sweden
Re: check_nt!PROCSTATE problem
Hi,
Thank you for your reply. I solved it by updating the NSclient. It also solved memory leaks on NSClient.
/Joakim
Thank you for your reply. I solved it by updating the NSclient. It also solved memory leaks on NSClient.
/Joakim
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nt!PROCSTATE problem
Great, thanks for letting us know! May I ask what version solved this for you?
-
- Posts: 19
- Joined: Thu Feb 07, 2013 9:41 am
- Location: Sweden
Re: check_nt!PROCSTATE problem
NSCP-0.4.1.90-x64slansing wrote:Great, thanks for letting us know! May I ask what version solved this for you?
/Joakim
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nt!PROCSTATE problem
Thanks for letting us know!