Build precise queries to find exactly what you need
Press ESC to close
Although the script worked flawlessly locally, I had to edit it as follows to correct the logic:
if [[ “$eroutes” -eq “2” ]] then echo “OK – All 2 tunnels are up an running” exit $STATE_OK elif [[ “$eroutes” -gt “2” ]] then echo “WARNING – More than 2 ($eroutes) tunnels are up an running” exit $STATE_WARNING else echo “CRITICAL – Only $eroutes tunnels from 2 are up an running – $(location)” exit $STATE_CRITICAL fi
Besides this, I had to do the following to fetch the results via NRPE plugin remotely:
chown nagios /var/run/pluto/pluto.clt
Now I’m able to view the proper results over my NAGIOS monitoring console.
Hope this helps someone.
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!