check_nt!PROCSTATE problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Joakim.hag
Posts: 19
Joined: Thu Feb 07, 2013 9:41 am
Location: Sweden

check_nt!PROCSTATE problem

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt!PROCSTATE problem

Post 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.
Joakim.hag
Posts: 19
Joined: Thu Feb 07, 2013 9:41 am
Location: Sweden

Re: check_nt!PROCSTATE problem

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt!PROCSTATE problem

Post by slansing »

Okay great, we need the screenshot of that page of the process you are trying to monitor.
Joakim.hag
Posts: 19
Joined: Thu Feb 07, 2013 9:41 am
Location: Sweden

Re: check_nt!PROCSTATE problem

Post by Joakim.hag »

Hi,

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


/Joakim
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt!PROCSTATE problem

Post by slansing »

Great, thanks for letting us know! May I ask what version solved this for you?
Joakim.hag
Posts: 19
Joined: Thu Feb 07, 2013 9:41 am
Location: Sweden

Re: check_nt!PROCSTATE problem

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt!PROCSTATE problem

Post by slansing »

Thanks for letting us know!
Locked