Outils personnels

Cacti xen

De TcWeb.

snmp

quelques notes pour déployer rapidement du snmp sur des machines virtuelles Xen

installer snmpd

 apt-get install snmpd

modifier le fichier de conf /etc/snmp/snmpd.conf

#       sec.name  source          community
#com2sec paranoid  default         public
#com2sec readonly  default         public
com2sec readonly  192.168.1.0/24         public
...
#disk / 10000
disk /

modifier le fichier /etc/default/snmpd

#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'

reboot de snmpd

/etc/init.d/snmpd restart

dans cacti faire un nouveau host basé sur le schéma "ucd/net SNMP host"

apache

a2enmod status

Modifier /etc/apache2/mods-available/status.conf


<IfModule mod_status.c>
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the ".example.com" to allow
# access from other hosts.
#
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost ip6-localhost
    Allow from 192.168.1.3
</Location>

ExtendedStatus on

</IfModule>
Views
  • Page
  • Discussion
  • Voir le texte source
  • Historique