Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-22-2012, 10:42 AM   #1
Registered: Mar 2011
Posts: 51
Blog Entries: 1

Rep: Reputation: 2
Problem in making cacti-0.8.8a to draw snmp graphs

Hi dears

I have a remote ubuntu vps server that I'm gonna have some network traffics graphs on some specific ports with cacti-0.8.8a . I did some linux side snmp config and it works well. here is the snmpwalk output on my local laptop:

$ snmpwalk -v1 -c secret Server_Ip .
iso. = INTEGER: -1217653456
iso. = STRING: "/opt/"
iso. = STRING: "out"
iso. = ""
iso. = INTEGER: 5
iso. = INTEGER: 1
iso. = INTEGER: 1
iso. = INTEGER: 4
iso. = INTEGER: 1
iso. = STRING: "1555690"
iso. = STRING: "1555690"
iso. = INTEGER: 1
iso. = INTEGER: 0
iso. = STRING: "1555690"

but here are the whole work

I installed net-snmp on it and putted this entry inside it

extend . traffic_out /opt/ out
the file contains this part of codes:

[ $1 ] || exit 42;

iptables -vxnL traffic_$1 | grep -v Chain | grep -v bytes | awk {'print $2'}
which is suppose to show the passed bytes of traffic_out chain and I assembled it before to count 80 port output bytes.

as I mentioned before snmpwalk works well and here is the snmpget output

$ snmpget -v1 -c secret Server_Ip iso.
iso. = STRING: "1555690"
as you can see, it shows the output well too.

in the cacti part, I added a device with these details:

Hostname -> Server_Ip
Host Template -> Generic Snmp-enabled Host
Downed Device Detection -> I tested all of them
snmp version -> selected 1 and entered right community and port number and left the others default

then saved the device and it gave me (this is the output of snmp get next as downed device detection)

SNMP Information
System:Linux 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr
16 09:39:35 UTC 2010 i686
Uptime: 532838 (0 days, 1 hours, 28 minutes)
Location: Germany (configure /etc/snmp/snmpd.local.conf)
Contact: Root root@localhost (configure /etc/snmp/snmpd.local.conf)
in the device list it shows the status down for "snmp get next" but I'm pretty sure that host and snmp is up, but for some of them like ping, it shoes up

after the device I tried to create graph and snmp generic oid as template. then I left the data source type as GAUGE and entered iso. as oid

for the "snmp get next" no graph appears so I entered

/usr/bin/rrdtool create \
/var/www/cacti/rra/oopse_snmp_oid_25.rrd \
--step 300  \
DS:snmp_oid:GAUGE:600:0:10000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
manually (got this in data source debug mode)

now the graph is empty for ever and the device status is down

for some of other types of Downed Device Detection, graph pictures appears, but those are empty ether.

I don't know what to do


cacti, monitoring, snmp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cacti like graphs for individual LAN PC's nishith Linux - Networking 1 09-07-2011 01:38 AM
how to draw graphs in fltk raulapati Linux - Software 1 12-10-2010 03:08 AM
Cacti MRTG gives the problem, do not shows the graphs of a new network device. akram Linux - Newbie 1 01-10-2010 03:01 PM
cacti + not displaying graphs aeby Linux - Server 1 08-28-2007 07:47 AM
how to draw graphs usink glade pranith Programming 1 10-25-2004 01:05 PM

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration