Specify multiple ifIndex at once?
Posted: Tue May 08, 2012 7:32 pm
hi,
I have nagios setup to do a bunch checks of interfaces on my juniper EX switches, the check command is this. It checks interfaces flaps, errors, discards etc etc.
The problem I have is that the network is growing and whenever I connect a new device or switch I need to go to nagios at add a new service with the new interface ifindex. So for example i have this:
define service{
use basic-service ; Name of service template to use
host_name sydiprdswi05-10g
check_command check_snmp!-C internal -o ifInDiscards.553 -m IF-MIB -w 10 -c 20 --rate --rate
service_description xe-0/0/1 if in discard
}
the .553 is the snmp IfIndex for a specific interface. I then need to add that same check for all my other interfaces since the ifIndex is different.
So is there a way I can use a wildcard for the ifindex, or specific multiple ifIndex values in a single check?
thanks
I have nagios setup to do a bunch checks of interfaces on my juniper EX switches, the check command is this. It checks interfaces flaps, errors, discards etc etc.
The problem I have is that the network is growing and whenever I connect a new device or switch I need to go to nagios at add a new service with the new interface ifindex. So for example i have this:
define service{
use basic-service ; Name of service template to use
host_name sydiprdswi05-10g
check_command check_snmp!-C internal -o ifInDiscards.553 -m IF-MIB -w 10 -c 20 --rate --rate
service_description xe-0/0/1 if in discard
}
the .553 is the snmp IfIndex for a specific interface. I then need to add that same check for all my other interfaces since the ifIndex is different.
So is there a way I can use a wildcard for the ifindex, or specific multiple ifIndex values in a single check?
thanks