Search:  
Gentoo Wiki

Cacti/SNMP_host_setup

Contents

Introduction

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

Getting started

On the client machine you wish to monitor please enter:

emerge net-snmp

Configure SNMPd

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

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

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>

Starting SNMPd

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

Adding the host

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

Checking the install

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

More

Retrieved from "http://www.gentoo-wiki.info/Cacti/SNMP_host_setup"

Last modified: Fri, 10 Oct 2008 00:57:00 +0000 Hits: 21,907