1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

Merge pull request #626 from szepeviktor/patch-1

[monit] Not using memory is a warning condition
This commit is contained in:
Stig Sandbeck Mathisen 2015-08-29 15:06:10 +02:00
commit 297adeab31

View file

@ -54,6 +54,8 @@ if len(sys.argv) > 1 and sys.argv[1] == 'config':
for process in procs:
for stat in procs[process]:
print "monit_%s_%s.label %s.%s" % (process, stat, process, stat)
if stat == 'total_memory':
print "monit_%s_%s.warning 1:" % (process, stat)
sys.exit(0)
for process in procs: