Fixed typos and rearranged help a bit

This commit is contained in:
2024-08-23 16:37:46 -04:00
parent d178ceaa79
commit d776a8e239
2 changed files with 16 additions and 6 deletions
+4 -6
View File
@@ -34,7 +34,7 @@ APIinfo["config/servicegroup"]=".[]"
APIinfo["config/command"]=".[]"
APIinfo["config/contact"]=".contact[]"
APIinfo["config/contactgroup"]=".[]"
APIinfo["config/timeperiod"]=""
APIinfo["config/timeperiod"]=".[]"
APIinfo["objects/hoststatus"]=".hoststatus[]"
APIinfo["objects/servicestatus"]=".servicestatus[]"
@@ -139,15 +139,15 @@ print_help() {
Ex: name=in:localhost,nagios,testhost - Displays any matching name with the comma-separated list.
Note: Multiple --col selectors are not valid at this time
-cnn current_notification_number=<n>
--cname command_name]=<...>
--cline command_line]=<...>
--cname command_name=<...>
--cline command_line=<...>
--ctrace Take the --cname given, get its --cline, and replace arguments to show a valid command (whew!)
-cg|--contactgroup contact_groups=<value>
-cn|--configname config_name=<value>
... comment | downtime | contact | host | service | hostgroup | ...
--create doCreate="true"
--apply If we're creating something, then Apply Configuration
-D <Nagios Config Directive>=<value>
-D <Nagios Config Directive>=<value> This will take anything listed as a Nagios configuration directive and search for it
-f|--fields JQ-valid list of fields to show=<value>
--file load JSON from=<value>
--helpopt Show help for command options
@@ -178,8 +178,6 @@ print_help() {
--stype 0, 1 (SOFT or HARD)
--test Don't call the API, just show what would happen
-v|--verbose verbose=\$((\$verbose + 1))
[...] [...]=<...> NOTE: This will take anything listed as a Nagios configuration directive and search for it
HELP_EOF
exit
}