Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Markhor
byMarkhor, November 6, 2013
I have made some chalges on lines between lines 68-88 to add PerfData :
if percent == True:
percentage_free = int( float(total_free) / float(memtotal) * 100 )
if percentage_free _threshold)
return CRITICAL
elif percentage_free %d MB used)|percent_free_ram=%d;%d;%d" % (percentage_free,total_used_megs,memtotal_megs,percentage_free,warning_threshold,critical_threshold)
return WARNING
else:
print "RAM OK: %d%% ram free|percent_free_ram=%d;%d;%d" % (percentage_free,percentage_free,warning_threshold,critical_threshold)
return OK
else:
if total_free return WARNING
else:
print "RAM OK: %dMB ram free|free_ram=%d;" % (total_free_megs,total_free_megs)
return OK
if percent == True:
percentage_free = int( float(total_free) / float(memtotal) * 100 )
if percentage_free _threshold)
return CRITICAL
elif percentage_free %d MB used)|percent_free_ram=%d;%d;%d" % (percentage_free,total_used_megs,memtotal_megs,percentage_free,warning_threshold,critical_threshold)
return WARNING
else:
print "RAM OK: %d%% ram free|percent_free_ram=%d;%d;%d" % (percentage_free,percentage_free,warning_threshold,critical_threshold)
return OK
else:
if total_free return WARNING
else:
print "RAM OK: %dMB ram free|free_ram=%d;" % (total_free_megs,total_free_megs)
return OK