This is an update of process.monitor. It adds SNMP v.3 support and an option to only monitor specific processes (I've also renamed it "netsnmp-proc.monitor" for consistency with the other SNMP monitors I've added V3 support to).
# Monitor processes via SNMP # (based on process.monitor by Brian Moore) # # Modified Dec 2001 by Dan Urist <[EMAIL PROTECTED]> # Changes: added usage, SNMP v.3 support, -P processes option # unique-ified errors # # Usage: # [-h] # Usage # [-t Timeout] # Timeout in ms (default: 1000000) # [-r Retries] # Retries before failure (default: 5) # [-v SNMPversion] # 1,2,2c or 3 (default: 1) # [-c Community] # For SNMP v.1,2,2c (default: public) # [-u snmpuser] # For SNMP v.3 (default: initial) # [-l seclevel] # For SNMP v.3 (default: noAuthNoPriv) # [-A authpassphrase] # For SNMP v.3 # [-P process[,process...]] # Specific processes to monitor # # with value 2 for SNMP error # host [host ...] # # # This script will exit with value 1 if any prErrorFlag is greater than 0. # The summary output line will be the host names and processes that failed # in the format host1:proc1,proc2;host2:proc3... # The detail lines are what UCD snmp returns for a prErrMessage. If # there is an SNMP error (either a problem with the SNMP libraries, or # a problem communicating via SNMP with the destination host), this # script will exit with a warning value of 2. # If the -P process list option is used, only the listed processes will be # monitored. # (See attached file: netsnmp-proc.monitor) -- Dan Urist [EMAIL PROTECTED] [EMAIL PROTECTED]
netsnmp-proc.monitor
Description: Binary data
