Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SNMP Monitoring and Configuration for Networks and Linux Host Monitoring
# Note: This file lives on the observium server inside /etc/cron.d/
13 * * * * root host -t axfr | awk '$4 ~ "^A$" {print $1}' > /dev/shm/devices 2> /dev/null; /opt/observium/add_device.php /dev/shm/devices >> /dev/null 2>&1
# This file controls the activity of snmpd and snmptrapd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=/usr/share/snmp/mibs
# Lives on *CLIENTS* under /etc/default/snmpd
# snmpd control (yes means start daemon).
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/'
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/ -c /etc/snmp/snmpd.conf'
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/'
# Lives on *CLIENTS* under /etc/snmp/
agentAddress udp:161
view systemonly included .
view systemonly included .
rocommunity public default
rouser authOnlyUser
sysLocation Back of the World
sysServices 72
trapsink localhost public
iquerySecName internalUser
rouser internalUser
master agentx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.