Module: check_mk
Branch: master
Commit: db96081500c854dd93e88a5435b476b1748b070b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=db96081500c854…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jun 22 14:01:37 2012 +0200
Fixed output of fileinfo check in case of unknown
---
checks/fileinfo | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/fileinfo b/checks/fileinfo
index 645b0d0..9fb3e57 100644
--- a/checks/fileinfo
+++ b/checks/fileinfo
@@ -81,7 +81,7 @@ def check_fileinfo(item, params, info):
for line in info[1:]:
if item == line[0]:
if line[1] == "missing":
- return (3, "File is missing")
+ return (3, "UNKNOWN - File is missing")
state = 0
size = int(line[1])
age = reftime - int(line[2])
@@ -90,7 +90,7 @@ def check_fileinfo(item, params, info):
("size", size, get_filesize_human_readable),
("age", age, get_age_human_readable) ]
if check_definition == False:
- return (3, "File not found");
+ return (3, "UNKNOWN - File not found")
return fileinfo_check_function(check_definition, params)
def check_fileinfogroups(item, params, info):