Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
ytaborda17
byytaborda17, March 21, 2018
0 of 2 people found this review helpful
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!
How can I fix this?
Thanks in advance!
Owner's reply
I just tried it and it worked ok. Please make sure you are following the examples in the script comments. I also updated the script to reflect recent changes in the NCPA plugins syntax.
byytaborda17, November 30, 2017
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!
$($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!
"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!