Difference between revisions of "Monitoring openvz resources using nagios and snmp"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
 
(snmpd configuration)
Line 2: Line 2:
 
== snmpd configuration ==
 
== snmpd configuration ==
 
Debian Etch example:
 
Debian Etch example:
<code>
+
<pre>
 
apt-get install snmpd
 
apt-get install snmpd
</code>
+
</pre>
  
 
edit '''/etc/default/snmpd''' : remove ''-u snmp'' and repleace ''127.0.0.1'' witch your ip, Example:
 
edit '''/etc/default/snmpd''' : remove ''-u snmp'' and repleace ''127.0.0.1'' witch your ip, Example:
<code>
+
<pre>
 
export MIBDIRS=/usr/share/snmp/mibs
 
export MIBDIRS=/usr/share/snmp/mibs
 
SNMPDRUN=yes
 
SNMPDRUN=yes
Line 13: Line 13:
 
TRAPDRUN=no
 
TRAPDRUN=no
 
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
 
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
</code>
+
</pre>

Revision as of 07:47, 4 October 2006

snmpd configuration

Debian Etch example:

apt-get install snmpd

edit /etc/default/snmpd : remove -u snmp and repleace 127.0.0.1 witch your ip, Example:

export MIBDIRS=/usr/share/snmp/mibs
SNMPDRUN=yes
SNMPDOPTS='-Lsd -Lf /dev/null  -I -smux -p /var/run/snmpd.pid 207.46.250.119'
TRAPDRUN=no
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'