Package: mailping
Version: 0.0.4-2
Severity: normal
Tags: patch
Version 1.4.5-3 of munin, which is the current version in squeeze, does
call the plugin slightly different than the version in lenny
(1.2.6-10~lenny2): For fetching the current counters, it is called
without arguments, instead of an empty argument.
This leads to the following error messages in munin-node.log:
2011/02/18-16:33:33 [6514] Error output from mailping-latency:
2011/02/18-16:33:33 [6514] mailping-latency: usage: mailping-latency
[config|'']
2011/02/18-16:33:33 [6514] Service 'mailping-latency' exited with status 1/0.
2011/02/18-16:33:40 [6514] Error output from mailping-success:
2011/02/18-16:33:40 [6514] mailping-success: usage: mailping-success
[config|'']
2011/02/18-16:33:40 [6514] Service 'mailping-success' exited with status 1/0.
To fix it, the following patch could be used:
diff --git a/munin-plugins/mailping-latency b/munin-plugins/mailping-latency
index 7014a8b..fb26cd0 100755
--- a/munin-plugins/mailping-latency
+++ b/munin-plugins/mailping-latency
@@ -67,6 +67,8 @@ if __name__ == '__main__':
config()
elif len(sys.argv[1:]) == 1 and sys.argv[1] == '':
dump()
+ elif len(sys.argv[1:]) == 0:
+ dump()
else:
print >>sys.stderr, "%(progname)s: usage: %(progname)s [config|'']" \
% { 'progname': os.path.basename(sys.argv[0]),
diff --git a/munin-plugins/mailping-success b/munin-plugins/mailping-success
index 0f6da9c..5a287f0 100755
--- a/munin-plugins/mailping-success
+++ b/munin-plugins/mailping-success
@@ -67,6 +67,8 @@ if __name__ == '__main__':
config()
elif len(sys.argv[1:]) == 1 and sys.argv[1] == '':
dump()
+ elif len(sys.argv[1:]) == 0:
+ dump()
else:
print >>sys.stderr, "%(progname)s: usage: %(progname)s [config|'']" \
% { 'progname': os.path.basename(sys.argv[0]),
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]