lost and found ( for me ? )

cacti : monitor remote hosts via SNMP



centos6 ( remote host ) --- ubuntu12.04 ( cacti box )

assume you have finished installing cacti and configuring initial setup.

[ configure the remote host ( centos ) ]

install net-snmp

# yum install net-snmp net-snmp-utils


configure snmpd.conf to accept snmp requests from remote hosts.
# egrep -v ^# /etc/snmp/snmpd.conf | grep -v ^$
com2sec notConfigUser  default       public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1
access  notConfigGroup ""      any       noauth    exact  systemview none none
com2sec any any     public
group MyROGroup  any        mynetwork
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes


on the cacti box , confirm you can receive snmp replies from the centos box
# snmpbulkwalk -v2c -c public 192.168.10.223 system -m all
SNMPv2-MIB::sysDescr.0 = STRING: Linux centos6-64-vm1.localdomain 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-TC::linux
DISMAN-EXPRESSION-MIB::sysUpTimeInstance = Timeticks: (181129) 0:30:11.29
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: centos6-64-vm1.localdomain
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (3) 0:00:00.03
<snip>


[ configure cacti box ]

add the remote device
console -> create graphs -> create new host




enter the remote host information and then click “create”




click “create graphs for this host”






register graphs
console -> graph trees -> add




enter name and click create




click Add



select the host and click create
configuration of collecting resources and outputting graphs are separated.
So you need to register graphs to collect info and register graphs to output those graphs.


graphs -> cnetos6064-vm1 -> Host: centos6-64-vm1
you will see resource graphs of the remote host ( centos6-64-vm1 )



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.