Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Basically, I couldn't find any plugins that would take characters (numbers) from a web page and then translate that into a plugin that would work within nagios. I decided to create this simple bash script to get the information (simple wget command) from the IP address to Nagios. Feel free to use and change however you would like.
Current Version
1.0
Last Release Date
2017-03-05
Owner
Kris Anderson
Compatible With
#!/bin/bash
WARNING_LEVEL_TEMP=80 CRITICAL_LEVEL_TEMP=85
STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATE_DEPENDENT=4
# assumed usage: # ./check_temp.sh http://somewhere.com URL=$1 temp=$(wget $URL -q -O -)
echo "Temperature: $temp"
# Example: # if [ $content -gt 80 ] && [ $content -lt 60 ] # then # echo "less then 80" # fi
if [ $temp -ge $CRITICAL_LEVEL_TEMP ] then exit $STATE_CRITICAL; elif [ $temp -ge $WARNING_LEVEL_TEMP ] then exit $STATE_WARNING; else exit $STATE_OK; fi
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!