PDA

View Full Version : check_centreon_snmp_traffic2


digitalman
08-29-2007, 11:22 PM
Hi,

Previously, I posted a plugin that can take traffic statistics using IP address instead interface number or name. This was make a big difference for me, since my Windows servers was a random index number in interfaces and the interface name cannot be changed (is defined by driver name of interface).

If you are using a shipped version of plugin, you must check and create manually each interface for each host in you server farm.

I modified the original plugin and sync with 1.4.1 version of check_centreon_snmp_traffic. This has the ability of check a interface by this IP address. You can use "-a -i $HOSTADDRESS" and configure the service for whole server farm. I added a option to allow report values in bytes instead bits (-B) too. It's worth for me.

If someone like this plugin, please, reply this post.

Best regards,
Alexandre

icedance
08-30-2007, 10:14 AM
Tested and adopted...
But just little thing

don't change all your oeron.conf that there is in the .zip
just change the last line.

So nice job and thx again

Edit : i forgot that during the buffer creation i have a error ... don't know why ... but after the second check all is fine

lowdata
08-30-2007, 12:13 PM
Hye. nice work right, but I meet problems with a router :

./check_centreon_snmp_traffic2 -H 192.168.65.1 -C public -a 192.168.65.1 -i 192.168.65.1
ERROR: Interface Status Request : Received noSuchName(2) error-status at error-index 1

But if I do this :

./check_centreon_snmp_traffic2 -H 192.168.65.1 -C public -a 192.168.65.1 -i 192.168.65.1 -i 620
Traffic In : 0.00 b/s (0.0 %), Out : 16.87 kb/s (0.0 %) - Total RX Bits In : 20.89 GB, Out : 18.88 Gb|traffic_in=0,0Bits/s traf

It returns me traffic in/out, but interface 620 is not the port of the IP address !

Do you know what's wrong ? thanks in advance.