Module: check_mk
Branch: master
Commit: 08c05bd68777bce8a3d96453cca0544249d12aae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=08c05bd68777bc…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Nov 25 15:35:43 2015 +0100
Changed State of HW/SW Inventory check in case of no data found
---
modules/inventory.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/inventory.py b/modules/inventory.py
index 897eee0..ccada05 100644
--- a/modules/inventory.py
+++ b/modules/inventory.py
@@ -182,8 +182,8 @@ def do_inv_check(hostname):
inv_tree, old_timestamp = do_inv_for(hostname)
num_entries = count_nodes(g_inv_tree)
if not num_entries:
- sys.stdout.write("WARN - Found no data\n")
- sys.exit(1)
+ sys.stdout.write("OK - Found no data\n")
+ sys.exit(0)
infotext = "found %d entries" % num_entries
state = 0