mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
parent
4f4ebbea92
commit
91a7d0afb1
@ -80,6 +80,23 @@ Icinga 2 allows you to import templates using the [import](#import) keyword. If
|
|||||||
contain additional attributes, your objects will automatically inherit them. You can override
|
contain additional attributes, your objects will automatically inherit them. You can override
|
||||||
or modify these attributes in the current object.
|
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
|
## <a id="check-command-definitions"></a> Where are the check command definitions
|
||||||
|
|
||||||
|
@ -62,6 +62,13 @@ def main():
|
|||||||
print obj.format(use_colors)
|
print obj.format(use_colors)
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print "Syntax: %s [--color] [file]" % (sys.argv[0])
|
print "Syntax: %s [--help|-h] [--color] [file]" % (sys.argv[0])
|
||||||
print ""
|
|
||||||
print "Displays a list of objects from the specified Icinga 2 objects file."
|
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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user