Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

Ibizista

Reviews(1)
byIbizista, May 31, 2016
1 of 1 people found this review helpful
I dont have any idea about python, but with this little modify, you can get perfdata

if maxLoad >= critical:
# If load is higher than warning threshold.
print "CRITICAL - relative load is %s" %maxLoad + "%" + "|relativeload=%s;%d;%d" % (maxLoad, warning, critical)
sys.exit(2)
elif maxLoad >= warning:
print "WARNING - relative load is %s" %maxLoad + "%" + "|relativeload=%s;%d;%d" % (maxLoad, warning, critical)
sys.exit(1)
elif maxLoad
Owner's reply

Thanks for suggesting the improvements. Those have been incorporated into the script now.