contain additional attributes, your objects will automatically inherit them. You can override
or modify these attributes in the current object.
+The `icinga2-list-objects` tool can be used to list all configuration objects and their
+attributes. The tool also shows where each of the attributes was modified:
+
+ # icinga2-list-objects
+ Object 'apt' of type 'CheckCommand':
+ * templates = ['apt', 'plugin-check-command']
+ % modified in /usr/share/icinga2/include/command-plugins.conf, lines 458:1-462:1
+ % modified in /usr/share/icinga2/include/command.conf, lines 34:1-36:1
+ * __name = 'apt'
+ * command = ['/usr/lib/nagios/plugins/check_apt']
+ % modified in /usr/share/icinga2/include/command-plugins.conf, lines 461:2-461:39
+ * methods
+ % modified in /usr/share/icinga2/include/command.conf, lines 35:2-35:32
+ * execute = 'PluginCheck'
+ % modified in /usr/share/icinga2/include/command.conf, lines 35:2-35:32
+ * type = 'CheckCommand'
+ [...]
## <a id="check-command-definitions"></a> Where are the check command definitions
print obj.format(use_colors)
def usage():
- print "Syntax: %s [--color] [file]" % (sys.argv[0])
- print ""
+ print "Syntax: %s [--help|-h] [--color] [file]" % (sys.argv[0])
print "Displays a list of objects from the specified Icinga 2 objects file."
+ print ""
+ print "Arguments:"
+ print " --help or -h Displays this help message."
+ print " --color Enables using color codes even if standard output"
+ print " is not a terminal."
+ print ""
+ print "You can specify an alternative path for the Icinga 2 objects file. By"
+ print "default '" + LocalStateDir + "/cache/icinga2/icinga2.debug' is used."