

Some of the plugins allow you to target multiple processes, this is useful if you want a single Nagios service.

Apache tomcat error application queue connection nagios code#
check_snmp_process_ -H 10.25.13.15 -C public -n kworker -w 6 -c 6Įven though the word CRITICAL is not shown, the exit code returned by negate is 2 (CRITICAL). This example also uses the negate plugin to invert the returned result from the plugin (hence making CRITICAL an OK state).Ĭommand. This command does NOT use the -r argument, this allows for a regular expression match of the process name. Output: No process named vmtoolsd found : OK This command uses the -r argument, enforces an exact match of the process name.Ĭommand. The thresholds for the checks are triggered if the amount of processes found is less than or equal to the supplied values, you could however use the negate plugin to invert the returned result from the plugin (hence making CRITICAL an OK state). The check_snmp_process_ plugin allows you to target processes using SNMP. Output: CRITICAL: Process count for processes named vmtoolsd was 1 | 'process_count'=1 0 'cpu'=0.0% 'memory'=0.08% 'memory_vms'=0.31GB 'memory_rss'=0.01GB

Using the Nagios Plugin Threshold standards, the thresholds are triggered based on how they are defined. If 0 are running OR more than 1 is runningĬommand.
