check if traffic moving or not (no traffic)
Posted: Sat Jan 17, 2015 4:16 pm
Dear Expert
Previously I have requested for feature: Low Bandwidth Threshold Alert and if not possible at least ZERO Traffic.
Me tried for Total Zero Traffic Alert (successful on testing environment), please go through (attached) and advice if its okay or any major contribution with your detail comments (me novice to perl , its my first script managed from here and there).
FYI, in Cisco sub-interfaces never goes down and if we monitor the IfOperStatus meaningless. Also if interface not directly connected it will never go down, if interface in UP and goes to hung, will never trigger any DOWN ALERT. So please let me know how this my script will work? Any adverse effect?
Command:
$USER1$/check_if_no_traffic.pl $ARG1$ $HOSTADDRESS$ $ARG2$
$ARG$1 : public
$ARG$2 : if-index of the interface/sub-interface
This will be added as a new services on required interfaces, is there any better way to incorporate in existing check_rrdtraf? If fifth parameter get include with value 0 then will check same manner? Sixth parameter will be community. Index will get after parsing first $ARG1$ _ifindex, so no need to add as a new services but just to modify check_rrdtraf.
If its trigger False Alarm in rare case, no issue, because our 24x7 NMS Monitoring Team will look into the matter when Alert is older enough (more than 10 minutes) and they know how to check from device.
Regards
Previously I have requested for feature: Low Bandwidth Threshold Alert and if not possible at least ZERO Traffic.
Me tried for Total Zero Traffic Alert (successful on testing environment), please go through (attached) and advice if its okay or any major contribution with your detail comments (me novice to perl , its my first script managed from here and there).
FYI, in Cisco sub-interfaces never goes down and if we monitor the IfOperStatus meaningless. Also if interface not directly connected it will never go down, if interface in UP and goes to hung, will never trigger any DOWN ALERT. So please let me know how this my script will work? Any adverse effect?
Command:
$USER1$/check_if_no_traffic.pl $ARG1$ $HOSTADDRESS$ $ARG2$
$ARG$1 : public
$ARG$2 : if-index of the interface/sub-interface
This will be added as a new services on required interfaces, is there any better way to incorporate in existing check_rrdtraf? If fifth parameter get include with value 0 then will check same manner? Sixth parameter will be community. Index will get after parsing first $ARG1$ _ifindex, so no need to add as a new services but just to modify check_rrdtraf.
If its trigger False Alarm in rare case, no issue, because our 24x7 NMS Monitoring Team will look into the matter when Alert is older enough (more than 10 minutes) and they know how to check from device.
Regards