From 2d3ad7991a94082f2a7fbfa91b099ba52003d692 Mon Sep 17 00:00:00 2001 From: ranl Date: Sun, 29 Dec 2013 13:45:52 +0200 Subject: [PATCH] check_activemq doc --- nagios/check_activemq.py | 5 ++++- zabbix/scripts/activemq-monitor.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nagios/check_activemq.py b/nagios/check_activemq.py index 904e39c..088f21a 100755 --- a/nagios/check_activemq.py +++ b/nagios/check_activemq.py @@ -29,8 +29,11 @@ def prepareOpts(): } def err( string ): print 'Error: {0}'.format( string ) - parser.print_help() print __doc__ + parser.print_help() + print '\nTypes:' + for k in cmds: + print ' {0}: {1}'.format(k ,cmds[k]) exit(1) parser = OptionParser() diff --git a/zabbix/scripts/activemq-monitor.py b/zabbix/scripts/activemq-monitor.py index 9f25cc2..ae07bcd 100755 --- a/zabbix/scripts/activemq-monitor.py +++ b/zabbix/scripts/activemq-monitor.py @@ -22,8 +22,8 @@ def prepareOpts(): def err( string ): print 'Error: {0}'.format( string ) - parser.print_help() print __doc__ + parser.print_help() exit(1) parser = OptionParser()