Hi Guys I’ve attached the copy of check_route plugin I have. It doesn’t seem to work though, I was hoping someone would have a good copy that will work.
What I need is a plugin that will do a traceroute on an ip address and examine the 2nd hop and see which gateway its going through. If it doesn’t go through the “good” gateway, then it sends a critical alert.
Currently what I’m receiving when I run this plugin is:
./check_route 10.228.200.10 2 10.228.210.4 10.228.220.4
: 4: unexpected operator
: ==: unexpected operator
traceroute to 10.228.200.10 (10.228.200.10), 64 hops max, 52 byte packets
: ==: unexpected operator
: 1: unexpected operator
: 10.228.200.10: unexpected operator
: 10.228.200.10: unexpected operator
TRACE Critical : Current Route to: 10.228.200.10 via: 10.228.200.10
Thanks!