Module: check_mk
Branch: master
Commit: 09517f3de0aa1a2b1707c8dbe1627740792d7d0b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=09517f3de0aa1a…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Sep 20 12:29:50 2012 +0200
Fixed output nastiness in services check
---
checks/services | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/services b/checks/services
index 1da7d23..2f9cd88 100644
--- a/checks/services
+++ b/checks/services
@@ -157,7 +157,7 @@ def check_windows_services(item, params, info):
best_info = state, start_type
best_running_on = running_on
infotext = nagios_state_names[best_state] + " - " + desc + ": %s
(start type is %s)" % best_info
- if best_running_on:
+ if best_running_on and best_state != 2: #if best state ist critical, there should no
message "running on"
infotext += " (running on: %s)" % best_running_on
return (best_state, infotext)