Make nagios script quieter
authorJoachim Breitner <mail@joachim-breitner.de>
Sun, 7 Dec 2014 09:59:45 +0000 (10:59 +0100)
committerJoachim Breitner <mail@joachim-breitner.de>
Sun, 7 Dec 2014 09:59:45 +0000 (10:59 +0100)
nagios-status.py

index d9040d7..6749764 100755 (executable)
@@ -27,7 +27,8 @@ problems = state['CRIT'] + state['WARN']
 
 if problems == 0:
     #print "<spaceout><icon>smiley</icon><thintext>%d</thintext><icon>smiley</icon></spaceout>" % state['OK']
-    print "<center><icon>smiley</icon></center>"
+    #print "<center><icon>smiley</icon></center>"
+    pass
 else:
     print "<spaceout><icon>skull</icon><thintext>%d</thintext><icon>skull</icon></spaceout>" % problems