Cacti/SNMP host setup

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] Introduction

this howto is for allowing cacti to monitor a remote system using SNMP

[edit] Getting started

On the client machine you wish to monitor please enter:

emerge net-snmp

[edit] Configure SNMPd

[edit] SNMPv3

net-snmp-config --create-snmpv3-user -X my_passphrase -a "my_password" my_user

WARNING: SNMPv3 pass phrases must be at least 8 characters long!

More info on configuring SNMPv3

[edit] Fast config

net-snmp-config --create-snmpv3-user -X my_passphrase -a "mypassword" my_user
ln -s /usr/share/snmp/snmpd.conf /etc/snmp/snmpd.conf
/etc/init.d/snmpd start
/sbin/rc-update add snmpd default

[edit] SNMPv2

File: /etc/snmp/snmpd.conf
com2sec local     127.0.0.1/32    public
com2sec local     10.10.10.0/24   public

group MyROGroup v1         local
group MyROGroup v2c        local
group MyROGroup usm        local

view all    included  .1                               80

access MyROGroup ""      any       noauth    exact  all    none   none

syslocation MyLocation
syscontact Me <me@somewhere.org>

[edit] Starting SNMPd

/etc/init.d/snmpd start
/sbin/rc-update add snmpd default

[edit] Adding the host

Adding the snmp host should go something similar to this (after clicking add host)

[edit] Checking the install

After saving you should be able to read the following at the top:
Image:Cacti snmp 2.png

[edit] More

Personal tools