Page 1 of 1

check_nt!PROCSTATE problem

Posted: Wed Apr 10, 2013 3:27 am
by Joakim.hag
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

Re: check_nt!PROCSTATE problem

Posted: Wed Apr 10, 2013 2:01 pm
by slansing
Lets first test this with a known process:

Code: Select all

/usr/local/nagios/libexec/check_nt -H IP -p 12489 -v PROCSTATE -d SHOWALL -l nsclient++.exe
Then, please send us a screenshot of the process's properties window.

Re: check_nt!PROCSTATE problem

Posted: Thu Apr 11, 2013 4:31 am
by Joakim.hag
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


Image

Re: check_nt!PROCSTATE problem

Posted: Thu Apr 11, 2013 1:19 pm
by slansing
Okay great, we need the screenshot of that page of the process you are trying to monitor.

Re: check_nt!PROCSTATE problem

Posted: Mon Apr 15, 2013 9:54 am
by Joakim.hag
Hi,

Thank you for your reply. I solved it by updating the NSclient. It also solved memory leaks on NSClient.


/Joakim

Re: check_nt!PROCSTATE problem

Posted: Mon Apr 15, 2013 10:26 am
by slansing
Great, thanks for letting us know! May I ask what version solved this for you?

Re: check_nt!PROCSTATE problem

Posted: Tue Apr 16, 2013 4:48 am
by Joakim.hag
slansing wrote:Great, thanks for letting us know! May I ask what version solved this for you?
NSCP-0.4.1.90-x64

/Joakim

Re: check_nt!PROCSTATE problem

Posted: Tue Apr 16, 2013 10:45 am
by slansing
Thanks for letting us know!