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()