Monitoring amount and traffic type on a switch


Hi all!

I would like to monitor amount and type of traffic on a switch. Im fresh in nagios and snmp. Do u have any advice for me.
Im not familiar with snmp yet and dont know which mib to use to do this.
check_snmp looks to be working for SysUptime and port 1 (already in switch.cfg), so does check_mrtg.
Using latest Nagios and plugins on Centos 5.3.

Thx for advice in advance.


I’m using Nagios on CentOS 5.3. I’m monitoring 4 switches but only selected ports on each switch. What I did was just changing the name and number. I copied what was already there and changed it.
check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
and for each port you change ifOperStatus.x where x is the number of the port. F.ex. port 6 would be ifOperStatus.6. Don’t forget to change the Service description also.
What you seem to have accomplished but not me is to have the check_mrtg work. I haven’t been able to get that to work.


You need to have mrtg program installed and configured for your switch. Ask if u dont find anything at forums.