Build precise queries to find exactly what you need
Press ESC to close
Well, to be blunt, nice try. The script is fair at best, but has lots of issues.
1. The submitted script was written in a Windows editor, and as such, has lots of ^M at the end of its lines, and so, in Linux it won’t execute unless this is fixed.
2. There is a line there that sources a file called utils.sh, which wasn’t submitted and if you look at some of the functions the script is using (like print_revision and support, which simply don’t exist in the submitted script.
3. The grep that you are using for UPDATESTATUS, simply doesn’t work, since you had it at -A 1 but ‘version’ doesn’t exist in line 1 of that grep, for me I had to change it to something like -A 10 in order to find the ‘version’ and be able to grep it.
4. There is an ‘if test ${ALARMVAL}’, which calls for $5 … again, which isn’t being given to the script at any point… so what is $5 for/suppose to be?
— Having said all that, the script does give you a head start if you are going to need it and if you have time to edit it to match and work for you.
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!