Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
dsteiner
bydsteiner, June 24, 2012
The script is working fine with nagios 3.x respective icinga 1.7.1. But I had to change following line:
print "|time="+sprintf("%.2f", totalTime)+"s, size="+"#{reports['totalSize']/1000}"+"KB;#{timeWarn};#{timeCritical};0;#{REQUEST_TIMEOUT}"
to
print "|time="+sprintf("%.2f", totalTime)+"s;#{timeWarn};#{timeCritical};0;#{REQUEST_TIMEOUT}, size="+"#{reports['totalSize']/1000}"+"KB"
The performance was not showing the warning values on the proper location.
print "|time="+sprintf("%.2f", totalTime)+"s, size="+"#{reports['totalSize']/1000}"+"KB;#{timeWarn};#{timeCritical};0;#{REQUEST_TIMEOUT}"
to
print "|time="+sprintf("%.2f", totalTime)+"s;#{timeWarn};#{timeCritical};0;#{REQUEST_TIMEOUT}, size="+"#{reports['totalSize']/1000}"+"KB"
The performance was not showing the warning values on the proper location.