[solved] None SNMP Traffic Reading

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
jasem200
Posts: 6
Joined: Fri Jun 11, 2010 7:47 am
Location: Hamburg
Contact:

[solved] None SNMP Traffic Reading

Post by jasem200 »

Hi

i've a script that read my bandwidth from IPE which has no snmp option, and the script output like this
[root@MRTG1 ~]# /usr/local/bin/getstat -h IPE-Address -x -i NetworkSubnet
21876970361
0
0
IP address: NetworkSubnet
[root@MRTG1 ~]#

right now i just put this line into MRTG Target and i get drawing for my bandwidth same as if i use snmp.

i wanted to use this script with my Cacti but i got into loop with no solution as i dont understant what are those numbers, and how to calculate them.
so i created a script that gives me only the first line.
21876970361
and create data input, template, and graph template then assign them to my subnet.
i got drawing but was totally wrong
as MRTG shows that Current speed is 340.1 kb/s and Cacti shows 174.97 G
in my graph template i use Turn Byte into Bits option same as i found on Snmp Interface Graph Template.

please advice me how to make cacti read my traffic correctly from this command line output.
attached exported template for my data,host and graph and a drawing from Cacti VS MRTG.

i wish someone can explain those numbers and how to use them in cacti

Thanks
Attachments
cacti_graph_template_getstat_-_ipe.xml.zip
(2.84 KiB) Downloaded 56 times
MRTG-Graph.png
MRTG-Graph.png (11.38 KiB) Viewed 1020 times
Cacti-Graph.png
Cacti-Graph.png (14.35 KiB) Viewed 1020 times
cacti_host_template_mrtg_-_ipe.xml
(8.83 KiB) Downloaded 58 times
cacti_data_template_getstat_-_ipe.xml
(3.71 KiB) Downloaded 80 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: None SNMP Traffic Reading

Post by BSOD2600 »

Lots of useful documentation in http://docs.cacti.net.

Looks like you probably used a DS type of gauge instead of counter. Look at the existing snmp -traffic templates to get an idea how it should be set up -- with the exception that your data is via script instead of snmp.
jasem200
Posts: 6
Joined: Fri Jun 11, 2010 7:47 am
Location: Hamburg
Contact:

Re: None SNMP Traffic Reading

Post by jasem200 »

i don't know what to say but you are my hero.

it works like charm

thanks a lot
jasem200
Posts: 6
Joined: Fri Jun 11, 2010 7:47 am
Location: Hamburg
Contact:

Re: [solved] None SNMP Traffic Reading

Post by jasem200 »

everything works fine but i have a small issue

i've some IPs which have max bandwidth 8Mb or 512k ,,,,, and sometimes network graph grow unexpectedly to Pb or Tb which is wrong, and daily or monthly graph will always show empty with one bar upto 2Tb, and the correct value will not be shown because it is very small to max number. i would like to set max bandwidth for graph that doesn't exceed it same as in MRTG. i set the Max Value to 512000 same as in my MRTg but i'm not sure whither this right or wrong

please advise
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [solved] None SNMP Traffic Reading

Post by gandalf »

Two options:
- either use spikekill or
- define a reasonal data source MAX value for this very interface
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest