Pejman Moghadam / Scripts

snmpd recovery script

Public domain


#!/bin/bash
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin"
if ! ps ax | grep -v grep | egrep -q '/usr/sbin/snmpd'; then
  /etc/rc.d/rc.snmpd restart
fi

BY: Pejman Moghadam
TAG: bash-script, bash, snmp
DATE: 2011-09-21 14:14:50


Pejman Moghadam / Scripts [ TXT ]