The Codes are using when your Interface goes under 100000 Bits and indeed its use full
i Was Wonder to know how can i make reverse of it
it Means when we get attack and huge amount of traffic.
i wana how can i make this when we get 1000000000bits
and let me know it
Thanks in advance
?xml version=“1.0” ?>
13
20437
If_7_out_rate
8
If_7_out_rate() > -1
if(If_7_out_rate() = -1,“SNMP Read Error”,if(If_7_out_rate() > 1000000,“”,concatenate(“Warning Low outbound traffic rate on interface 7 the current rate = “,If_7_out_rate(),” Bits per second”)))
If_7_out_rate()
Bits/s
The function for if_7_out_rate needs to have an if_7_in_rate that creates the correct bit rate for inbound traffic.
Duplicate your current low output rate probe and save it as “high input 7” (something else) and replace the error line with
if(If_7_in_rate() = -1,"SNMP Read Error",if(If_7_in_rate() > 1000000000,"",concatenate("Warning high inbound traffic rate on interface 7 the current rate = ",if_7_in_rate()," Bits per second")))
If you do not have a function for if_7_in_rate you should be able to use the out octets subtree in snmpwalk to find the in octets oid to create it from.
hth,
Lebowski