Nagios XI Version : 2012R2.9
CentOS release 6.5 (Final) 64 bit
VMware image
We are trying to monitor an application process using WMI and the check_xi_service_winplus (this is what the wizard automatically selected when choosing to monitor a WMI host). We are running in $ARG3$ checkprocess and we are running in $ARG4$ -sCommandline -a "PROCESSNAMEHERE.EXE".
It correctly tells us how many instances of that process we have running but when it hits ZERO we want it to issue a warning and or an error so we can investigate.
I can't figure out anywhere to set something like that and I can't even find the checkprocess argument command in documentation.
Thanks!
WMI Host Wizard Process Monitoring (Won't issue error)
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: WMI Host Wizard Process Monitoring (Won't issue error)
You need a space between your flag and it's value "-s Commandline".
I'd recommend you test this from the command line before setting up checks, that way, we can give you commands to try as we troubleshoot your issue.
I'd recommend you test this from the command line before setting up checks, that way, we can give you commands to try as we troubleshoot your issue.
Re: WMI Host Wizard Process Monitoring (Won't issue error)
Sorry that was a typo. There is a space there. The command works properly but what I need it to do is when the process count drops below 1 (AKA not running) to trigger a warning or error alert in Nagios. When we shutdown the process it shows as 0 running instances but doesn't issue a warning.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: WMI Host Wizard Process Monitoring (Won't issue error)
in $ARG4$ add
Which means it will be critical if it is outside the range of 1 to infinity
So $ARG4$ should look like
Code: Select all
-c 1:So $ARG4$ should look like
Code: Select all
-s Commandline -a "PROCESSNAMEHERE.EXE" -c 1:Re: WMI Host Wizard Process Monitoring (Won't issue error)
Perfection! Thanks so much! 