Module: check_mk
Branch: master
Commit: 421256a73f215ae9e0988ad6f1d494a82f9055d0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=421256a73f215a…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Oct 8 16:10:33 2013 +0200
Fixed little typo
---
agents/special/agent_fritz | 9 ++++++++-
doc/skeleton_check | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/agents/special/agent_fritz b/agents/special/agent_fritz
index 140524b..8160b42 100755
--- a/agents/special/agent_fritz
+++ b/agents/special/agent_fritz
@@ -13,7 +13,14 @@ sid = login_page.findtext('SID')
block = login_page.findtext('BlockTime')
if sid == "0000000000000000":
challenge = login_page.findtext('Challenge')
- response = challenge + '-' + hashlib.md5(challenge + '-' + password
).hexdigest()
+ challenge = "123456z"
+ password = ".abc"
+ rep = challenge + '-' + password
+ rep = rep.encode('utf-16le')
+ print rep
+ response = challenge + '-' + hashlib.md5(rep).hexdigest()
+
+ print response
login_page = etree.parse(url+"?username=%s&response=%s" % (username,
response)).getroot()
print url+"?username=%s&response=%s" % (username, response)
diff --git a/doc/skeleton_check b/doc/skeleton_check
index 53b76c7..d539282 100644
--- a/doc/skeleton_check
+++ b/doc/skeleton_check
@@ -32,7 +32,7 @@ def inventory_foobar(info):
return []
def check_foobar(item, _no_params, info):
- return 3, "UNKNOWN - Check no implemented"
+ return 3, "UNKNOWN - Check not implemented"
check_info["foobar"] = {
"check_function" : check_foobar,