Newbie help. Setting up WMI monitoring on process.
Posted: Tue Mar 26, 2013 12:18 pm
Hi people!
Recently downloaded Nagios to have it monitoring my server at home. Setup the VM and have had it monitoring just a few basic hardware items no problem.
I recently decided to setup monitoring a process (i.e. explorer.exe) which went fine, until I noticed it didn't change it status from OK when the process wasn't running. The status information notes that the amount of found instances changes from 1 to 0. I tried adding a critical flag to the argument in the CCM edit page but it didn't work.
example:
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$
$ARG1$ username
$ARG2$ password
$ARG3$ checkprocess
$ARG4$ -s Commandline -a 'explorer.exe' -w '0' (note: I have tried many different way of doing the flag such as -w 0, -w=0, -w _ItemCount=0)
Could anyone give me advice on setting this up, if so I would be very grateful
Recently downloaded Nagios to have it monitoring my server at home. Setup the VM and have had it monitoring just a few basic hardware items no problem.
I recently decided to setup monitoring a process (i.e. explorer.exe) which went fine, until I noticed it didn't change it status from OK when the process wasn't running. The status information notes that the amount of found instances changes from 1 to 0. I tried adding a critical flag to the argument in the CCM edit page but it didn't work.
example:
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$
$ARG1$ username
$ARG2$ password
$ARG3$ checkprocess
$ARG4$ -s Commandline -a 'explorer.exe' -w '0' (note: I have tried many different way of doing the flag such as -w 0, -w=0, -w _ItemCount=0)
Could anyone give me advice on setting this up, if so I would be very grateful