I would like to graph the total number of active nodes on my network. I'm looking for a MIB or template that will do this. We currently use Enterasys N-series routers. I've found a couple of MIBS that almost do what I want. One is "dot1qFdbDynamicCount=1.3.6.1.2.1.17.7.1.2.1.1.2" which will tell me the active FDB entries in each VLAN. Which is ok, but how do I use Cacti to add them all up and chart the result for multiple routers with varying VLAN IDs?
Another is "ctAliasTableStatsActiveEntries=1.3.6.1.4.1.52.4.1.3.7.1.1.3.2" and "ctAliasTableStatsTotalEntries=1.3.6.1.4.1.52.4.1.3.7.1.1.3.1" which are always identical, for some reason, and they both report the total number of node entries since the last reboot or alias table clear not the total currently active.
Anyone have any suggestions. It seems like a straight forward statistic; to count the total number of active devices on your network. Any help is appreciated.
MIB and/or template that will count active devices
Moderators: Developers, Moderators
Re: MIB and/or template that will count active devices
Just in my thought. Probably it's not what you want.
If I were you -- I'll use IP-MIB::ipNetToMediaTable (.1.3.6.1.2.1.4.22.1.*).
It's not accurate because they are like ARP "cache",
but somewhat it maybe convenient for knowing approximate value and its changes in particular period.
P.S. Please examine mactrack plugin.
If I were you -- I'll use IP-MIB::ipNetToMediaTable (.1.3.6.1.2.1.4.22.1.*).
It's not accurate because they are like ARP "cache",
but somewhat it maybe convenient for knowing approximate value and its changes in particular period.
P.S. Please examine mactrack plugin.
Re: MIB and/or template that will count active devices
I figured it out. I wrote a perl script to collect MAC address counts per VLAN and sum them up. Then added a Data Input Method to cacti. Thanks for your help. I've gotten mactrack to work with Enterasys routers, but like you said it was not exactly what I was looking for, but mactrack is useful. I'll have to play with it more.
#!/usr/bin/perl
my @output = `snmpwalk -Ov -Oq -v1 -c xxxxxxx $ARGV[$0] 1.3.6.1.2.1.17.7.1.2.1.1.2`;
my $sum = 0;
for ( @output ) {
$sum += $_;
}
print "$sum\n";
exit;
#!/usr/bin/perl
my @output = `snmpwalk -Ov -Oq -v1 -c xxxxxxx $ARGV[$0] 1.3.6.1.2.1.17.7.1.2.1.1.2`;
my $sum = 0;
for ( @output ) {
$sum += $_;
}
print "$sum\n";
exit;
Who is online
Users browsing this forum: No registered users and 7 guests