Get Bandwith in a human readable form!

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

Moderators: Developers, Moderators

Post Reply
aedu
Posts: 1
Joined: Fri Jan 06, 2006 2:43 am

Get Bandwith in a human readable form!

Post by aedu »

hello

I'm new in cacti and try to monitor some cisco-routers. (For monitoring i use the given cisco-router templates.)
Now I wan't to show the bandwidth of the interface in the statistics.
With the variable |query_ifSpeed| I can get the bandwith, but i like it in a human readable form! That means i like to cut some 0 and put a scale unit behind.

Here the part in the ./resource/snmp_queries/interface.xml that get the bandwith from the node.

Code: Select all

<ifSpeed>
	<name>Speed</name>
	<method>walk</method>
	<source>value</source>
	<direction>input</direction>
	<oid>.1.3.6.1.2.1.2.2.1.5</oid>
</ifSpeed>
I saw that regex are allowd in the XML-file but I don't get a idee how I can solve my problem.

Regex: http://www.cacti.net/downloads/docs/htm ... y_xml.html

can anybody help me? - thank you
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

you can see some relative topics,espically about percentage usage.

http://forums.cacti.net/viewforum.php?f ... 3a44412387
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest