Hello
is there a way to monitor switch/router and get an alert when traffic on some port goes to 0. On some ports there must be constant traffic, doesnt matter how much, but if it goes to 0 then i should get an alert. Is that doable?
Thank you.
router port check for no traffic
-
kyang
Re: router port check for no traffic
Did you configure that switch or router with the network/switch config wizard in XI already?
I would use something called the negate plugin. Here is our documentation on using it also.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Right now I have a router and on port 1 bandwidth --> I'm getting 0Mbps out.
However, by putting the negate plugin path in front of it, it is now showing critical. This in front of the original command. --> /usr/local/nagios/libexec/negate -s
That means if traffic suddenly goes through this port again. Then It would be back to an OK state.
Is this what you were looking for?
I would use something called the negate plugin. Here is our documentation on using it also.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Right now I have a router and on port 1 bandwidth --> I'm getting 0Mbps out.
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.5.90_1.rrd -w 50.00,50.00 -c 80.00,80.00 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00
Code: Select all
/usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.5.90_1.rrd -w 50.00,50.00 -c 80.00,80.00 -l M
CRITICAL - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;50.00;80.00 out=0Mb/s;50.00;80.00Is this what you were looking for?
Re: router port check for no traffic
Yes, that is what i was looking for. Thank you!
-
kyang
Re: router port check for no traffic
Perfect!
Did you have any more questions or are we okay to lock this up?
Did you have any more questions or are we okay to lock this up?