Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This lightweight script ping two hosts, and return OK only if a host is up and the other down.
Current Version
Last Release Date
December 23, 2014
Owner
emaintenance
License
Other
Compatible With
--------------------------------------------------------------------------------
THIS PLUGIN IS PROVIDED "AS IS", WITHOUT ANY WARRANTY, AND WITHOUT ANY SUPPORT.
This lightweight script ping two hosts, and return OK only if a host is up and the other down. Only one host must be online.
It make XOR with the two ping results. (truth table for the exclusive or)
Ping1 + Ping2 -> Plugin output down + down -> CRITICAL down + ok -> OK ok + down -> OK ok + ok -> CRITICAL
This check is write in bash (Linux). Test with : CentOS 5
USAGE : ./ping_xor.sh adress_ip1 adress_ip2
example : ./ping_xor.sh 192.168.1.10 192.168.2.33
LICENCE : CC BY-SA 3.0 http://creativecommons.org/licenses/by-sa/3.0/
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!