Page 1 of 3

Reporting Explorer is not running, when it is.

Posted: Wed Mar 07, 2018 1:45 pm
by mhedtcke
Hi there. I am pretty new to Nagios. I have a server running the latest version of NSClient. It is reporting incorrectly that explorer isnt running. I am remoted into the server looking at the process manager with explorer running.

Everything else appears to be reporting properly (CPU, Memory, Up time, Storage).

Any ideas why this is happening?

Re: Reporting Explorer is not running, when it is.

Posted: Wed Mar 07, 2018 2:17 pm
by scottwilkerson
What is the command that you are having nagios execute?

Please share the service description, the command definition

and results of running the command from the command line on the Nagios Server

Re: Reporting Explorer is not running, when it is.

Posted: Wed Mar 07, 2018 3:33 pm
by mhedtcke
Here is all of the references of DC01

define service{
use generic-service,nagiosgraph
host_name dc01
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}

define service{
use generic-service,nagiosgraph
host_name dc01
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}

define service{
use generic-service,nagiosgraph
host_name dc01
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}

define service{
use generic-service,nagiosgraph
host_name dc01
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}

define service{
use generic-service,nagiosgraph
host_name dc01
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
}

define service{
use generic-service,nagiosgraph
host_name dc01
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
}

define service{
use generic-service,nagiosgraph
host_name dc01
service_description Explorer
check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
}

Re: Reporting Explorer is not running, when it is.

Posted: Wed Mar 07, 2018 5:27 pm
by scottwilkerson
these too please
scottwilkerson wrote:the command definition

and results of running the command from the command line on the Nagios Server
by command definition I mean for check_nt

Thanks

Re: Reporting Explorer is not running, when it is.

Posted: Mon Mar 12, 2018 8:39 am
by mhedtcke
I'm sorry. I'm not sure what you mean by that. I see the check_nt plugin on the server but I'm not sure how to see it's config.

Re: Reporting Explorer is not running, when it is.

Posted: Mon Mar 12, 2018 9:57 am
by scottwilkerson
I mean how it is defined in the nagios configuration files. Maybe you have one named commands.cfg?

Re: Reporting Explorer is not running, when it is.

Posted: Mon Mar 12, 2018 10:25 am
by mhedtcke
Got it. Thanks, here you go. Thanks for being patient with me.

define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}

Re: Reporting Explorer is not running, when it is.

Posted: Tue Mar 13, 2018 8:54 am
by scottwilkerson
Can you run the following from the command line on the nagios server replacing IP_ADDRESS with the IP of dc01 and change the path of the plugin if your plugins are in a different directory, and then return the output

Code: Select all

/usr/local/nagios/libexec/check_nt -H IP_ADDRESS -p 12489 -v PROCSTATE -d SHOWALL -l Explorer.exe

Re: Reporting Explorer is not running, when it is.

Posted: Tue Mar 13, 2018 2:53 pm
by mhedtcke
nagios01@nagios01:~$ /usr/local/nagios/libexec/check_nt -H 192.168.39.40 -p 12489 -v PROCSTATE -d SHOWALL -l Explorer.exe
Explorer.exe: not running

I RDP'ed into the server to ensure it was running and it is.

Re: Reporting Explorer is not running, when it is.

Posted: Tue Mar 13, 2018 4:35 pm
by npolovenko
@mhedtcke, It's case sensetive, try with -l explorer.exe.