Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@ytaborda17
Favorites0
Views
Projects0
I tried the plugin and it works fine, but it I try to use the seccond argument it always returns the same output "Backup failed: backup job X has not run in last 9999 hours". How can I fix this? Thanks in advance!
Reviewed 8 years ago
I used the manual installation in my CentOS server, downloaded the file, give permissions to execution, but then I had two issues, the first one in line 170 you need to add the path to the python script: STb="/usr/local/bin" the check tells you that, but then, depending on your installation, you may need to change the command in line 275 adn 280, in my case I had to change this: $($STb/speedtest --server=$SEs --simple) with this: $($STb/speedtest-cli --server=$SEs --simple) From there on, the check works beautibully. Thanks Jon Witts!
The output is like this: "System Uptime - up 16 Hours, 23, 2 users Minutes" so, I added this line: "strminutes1=${strminutes%%,*}' Minutes'" this way the output, comes this way "System Uptime - up 5 Hours, 36 Minutes" or "System Uptime - up 10 days, 10 Hours, 49 Minutes" Complete code: struptime=`uptime | awk '{print $2,$3,$4,$5}'` struptime1=${struptime%,} strdayshours=${struptime1%%:*}' Hours, ' strminutes=${struptime1##*:} strminutes1=${strminutes%%,*}' Minutes' echo "System Uptime -" $strdayshours$strminutes1 exit 0 Thanks a lot!
Reviewed 12 years ago