Created
April 24, 2015 15:02
-
-
Save andrewbolster/79fbf6fa7c06d6a4ac91 to your computer and use it in GitHub Desktop.
SNMP Monitoring and Configuration for Networks and Linux Host Monitoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: This file lives on the observium server inside /etc/cron.d/ | |
13 * * * * root host -t axfr anrg.liv.ac.uk | 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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
export MIBS=UCD-SNMP-MIB | |
# Lives on *CLIENTS* under /etc/default/snmpd | |
# snmpd control (yes means start daemon). | |
SNMPDRUN=yes | |
# snmpd options (use syslog, close stdin/out/err). | |
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid' | |
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -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. | |
TRAPDRUN=yes | |
# snmptrapd options (use syslog). | |
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lives on *CLIENTS* under /etc/snmp/ | |
agentAddress udp:161 | |
view systemonly included .1.3.6.1.2.1.1 | |
view systemonly included .1.3.6.1.2.1.25.1 | |
rocommunity public default | |
rouser authOnlyUser | |
sysLocation Back of the World | |
sysContact [email protected] | |
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