.TH nagios-check-process 1 "January 2008" "ngtx" .SH NAME nagios-check-process \- count instances of a process .SH SYNOPSIS .B nagios-check-process \fIPROCESS-NAME \fR [...] .SH DESCRIPTION This program counts processes with the name specified as first argument. If no process with given name is running then it prints 9999. The process name is searched for in all /proc/*/stat files. .br Any additional arguments are silently ignored and can be used as a mark for i.e. searching a snmpwalk output with less. .br The primary purpose is the usage as nagios remote plugin with net-snmp. Just add to snmpd.conf a single line like this: .IP extend .1.3.6.1.4.1.2021.59 cron /usr/local/sbin/nagios-check-process cron PROCSCRON .PP .SH "RETURN VALUE" The return value is 1 if opendir /proc failed. On success 0 is returned. .SH EXAMPLES nagios-check-process cron .SH AUTHOR Frank Bergmann, http://www.tuxad.com