RMON Group 1 Etherstats - Templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
stevew
Posts: 26
Joined: Tue Aug 17, 2004 12:39 pm
Location: London
Contact:

RMON Group 1 Etherstats - Templates

Post by stevew »

I (unfortunately) still deal with quite a few managed hubs (in this case the Cisco Fasthub 424M) that can't really be monitored via the interface MIB. However they do present good info in their RMON MIB.

These templates (and a query based on the "interface.xml" query) should allow for creating graphs for any device that supports the standard RMON Group 1 Ethernet statistics MIB (from RFC 2819).

Screenshot of graphs attached.
Files included:
cacti_data_query_rmon_interface_statistics.xml
cacti_data_template_rmon_mib_etherstats_broadcast_packets_in.xml
cacti_data_template_rmon_mib_etherstats_errors.xml
cacti_data_template_rmon_mib_etherstats_multicast_packets_in.xml
cacti_data_template_rmon_mib_etherstats_sizes.xml
cacti_data_template_rmon_mib_etherstats_total_packets_in.xml
cacti_graph_template_rmon_mib_etherstats_errors.xml
cacti_graph_template_rmon_mib_etherstats_multicast_broadcast_and_total.xml
cacti_graph_template_rmon_mib_etherstats_valid_sizes.xml
The design of the templates is not ideal and there's an unused field on the traffic data source template since it's copied straight from the bundled interfaces template.

I've never actually imported a template myself - so hopefully this is everything you need.
Attachments
rmon_templates.tar.gz
Updated 27th July
(15.6 KiB) Downloaded 6372 times
Screenshot of all 4 graphs
Screenshot of all 4 graphs
rmonGraphs.jpg (98.14 KiB) Viewed 67408 times
Last edited by stevew on Wed Jul 27, 2005 3:23 am, edited 1 time in total.
[url=http://www.welham.net/]Steve W[/url]
lvr
Posts: 3
Joined: Sat Nov 22, 2003 4:47 am

Re: RMON Group 1 Etherstats - Templates

Post by lvr »

Hi,

when i try to import files, I have errors on several files which are binary files instead of xml

what 's wrong ?

thanks
Luc
stevew wrote:I (unfortunately) still deal with quite a few managed hubs (in this case the Cisco Fasthub 424M) that can't really be monitored via the interface MIB. However they do present good info in their RMON MIB.

These templates (and a query based on the "interface.xml" query) should allow for creating graphs for any device that supports the standard RMON Group 1 Ethernet statistics MIB (from RFC 2819).

Screenshot of graphs attached.
Files included:
cacti_data_query_rmon_interface_statistics.xml
cacti_data_template_rmon_mib_etherstats_broadcast_packets_in.xml
cacti_data_template_rmon_mib_etherstats_errors.xml
cacti_data_template_rmon_mib_etherstats_multicast_packets_in.xml
cacti_data_template_rmon_mib_etherstats_sizes.xml
cacti_data_template_rmon_mib_etherstats_total_packets_in.xml
cacti_graph_template_rmon_mib_etherstats_errors.xml
cacti_graph_template_rmon_mib_etherstats_multicast_broadcast_and_total.xml
cacti_graph_template_rmon_mib_etherstats_valid_sizes.xml
The design of the templates is not ideal and there's an unused field on the traffic data source template since it's copied straight from the bundled interfaces template.

I've never actually imported a template myself - so hopefully this is everything you need.
User avatar
stevew
Posts: 26
Joined: Tue Aug 17, 2004 12:39 pm
Location: London
Contact:

Post by stevew »

Hi Luc,

I've just imported all successfully - except the data query which isn't in good condition. I'll post a new copy tomorrow when I get to work.

Which templates are you having trouble with?

Steve
[url=http://www.welham.net/]Steve W[/url]
User avatar
stevew
Posts: 26
Joined: Tue Aug 17, 2004 12:39 pm
Location: London
Contact:

Post by stevew »

I have recreated the tarball on a different system and updated it in the original post.
[url=http://www.welham.net/]Steve W[/url]
tman
Cacti User
Posts: 97
Joined: Thu Oct 14, 2004 4:14 pm

Post by tman »

I'm very interested in this Cacti script, and have imported all the files into v0.8.6f on Windows. All imported ok, but the data query for the RMON Stats says 'Could not locate XML file'.

The query file (as imported) is named;

cacti_data_query_rmon_interface_statistics.xml

Yet the script being referenced in the data query is;

rmon-grp1-etherstats.xml

I have tried renaming the script, but Cacti still says it cannot be located.

Any ideas?
a2line59
Posts: 45
Joined: Mon May 23, 2005 8:20 am
Location: France

Post by a2line59 »

i had the same problem than tman but when i changed file name, it was OK
me i have another problem
i create a device and in associated data queries, i choose "Rmon Interface Statistics"
in status of this data query i have Success [0 items , 0 rows]. I think this result is not normal
when i want to create a graph, i have these lines :
Warning: reset(): Passed variable is not an array or object in cacti_path\graphs_new.php on line 534

Warning: Variable passed to each() is not an array or object in cacti_path\graphs_new.php on line 535
Data Query [RMON - Interface Statistics]

Warning: reset(): Passed variable is not an array or object in cacti_path\graphs_new.php on line 610

Warning: Variable passed to each() is not an array or object in cacti_path\graphs_new.php on line 611

and :
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.

if i choose to run this data query in debug mode, page load but nothing happen

i use cacti 0.8.6f on a windows XP
tman
Cacti User
Posts: 97
Joined: Thu Oct 14, 2004 4:14 pm

Post by tman »

Ok, sorted out the XML file location problem, but when I add the data query to the device, I now get the following errors;


Notice: Undefined index: oid_index in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 156

Notice: Undefined index: oid_index in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 159

Warning: Variable passed to each() is not an array or object in C:\Inetpub\wwwroot\cacti\lib\data_query.php on line 513

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\cacti\lib\data_query.php:156) in C:\Inetpub\wwwroot\cacti\host.php on line 110

Not quite the same as a2line59, but it isn't working!

I'm running a fully patched 0.8.6f by the way.
Sarge
Posts: 11
Joined: Wed Sep 14, 2005 3:48 am

Not only for HUBS

Post by Sarge »

RMON is not only for HUBS, it provides much more info on switched Ethernet ports than the generic interface MIB.

Started experimenting with this package, info comes soon...

Best Regards,

Sarge
Sarge
Posts: 11
Joined: Wed Sep 14, 2005 3:48 am

Broken...

Post by Sarge »

This package seems like broken.

I am going to play a little around it, it may be resurrected.

Best Regards,

Sarge
Sarge
Posts: 11
Joined: Wed Sep 14, 2005 3:48 am

Getting the picture...

Post by Sarge »

Renaming cacti_data_query_rmon_interface_statistics.xml to the referenced file does not help, because that file is not the file supposed to be placed at <path_cacti>/resource/snmp_queries/rmon-grp1-etherstats.xml . It has a totally different structure...

Unfortunately our friend stevew forget to include the real rmon-grp1-etherstats.xml in the package...

Are you here stevew???

sarge
Sarge
Posts: 11
Joined: Wed Sep 14, 2005 3:48 am

Problem solved...

Post by Sarge »

All of the scripts work, but you need to manually copy the attached file to <path_cacti>/resource/snmp_queries/rmon-grp1-etherstats.xml.

Errors, All/Multicast/Broadcast, and packet distribution work for me. I have not tested inBits, it is just stupid to use if you have data from the Interface MIB to plot (for example on switches).

Errors show collisions and fragments on half-duplex switch ports, which is the way half-duplex Ethernet works (these are not errors but the way of life for half-duplex), other errors are considered real errors, if you see any you should find the cause.

Packet distribution seems to be consistent also...

Feedback is welcomed,

Sarge
Attachments
rmon-grp1-etherstats.xml
The correct XML file...
(5.49 KiB) Downloaded 6409 times
tman
Cacti User
Posts: 97
Joined: Thu Oct 14, 2004 4:14 pm

Post by tman »

Good work Sarge. I was a bit narked when these templates wouldn't initially work, but your mods have allowed me to import them all fine.

I have one problem with this now, and it appears to be just these templates, in that the RRD files won't create for them! Weird or what. I've added another (different) script after these, associated it with a host, and the RRD file appeared ok. I'm really not sure why they won't for this!
Sarge
Posts: 11
Joined: Wed Sep 14, 2005 3:48 am

RRDs are not created for RMON data sources...

Post by Sarge »

RRDs are created for me. In that sense even stevew's scripts are OK, just the data collector was missing.

Another extra info, consider using CACTID collector, not the PHP based one. There is a lot of data to collect, and cactid is much more efficient...

Sarge
monkranter
Posts: 4
Joined: Wed Sep 07, 2005 11:47 am

Post by monkranter »

Every time I try to import these files I get the following error message:
Error: XML: Cacti version does not exist.
Anybody see this before?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

monkranter wrote:Every time I try to import these files I get the following error message:
Error: XML: Cacti version does not exist.
Anybody see this before?
Hi

you have to use at least the same version than stevew

What version of Cacti are you using ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests