-
Notifications
You must be signed in to change notification settings - Fork 206
Open
Description
Describe the bug
The help-text for "icingacli" suggests to achieve information about an external command by calling
icingacli director command show dummy
echo $?
0
But for "non-External"-commands it is working as expected:
icingacli director command show Invoke-IcingaCheckTCP
/** zones.d/director-global/commands.conf **/
object CheckCommand "Invoke-IcingaCheckTCP" {
import "PowerShell Base"
[...]
excerpt from "help":
icingacli director command help
[...]
Use this command to show, create, modify or delete Icinga Command objects
Available actions:
clone Clone an existing object
create Create a new object
delete Delete a specific object
exists Whether a specific object exists
set Modify an existing objects properties
show Show a specific object
I've already used this command successfully long time ago and as far as I remember it was working fine also for "External Commands".
To Reproduce
on a (root-)shell:
icingacli director command show dummy
=> empty output
calling "commands" to list all objects of this type also works for external commands:
icingacli director commands list
Invoke-IcingaCheckBiosSerial
Invoke-IcingaCheckCPU
Invoke-IcingaCheckCertificate
Invoke-IcingaCheckCheckSum
Invoke-IcingaCheckClusterSharedVolume
[...]
Expected behavior
Also objects defined as "External Commands" should be handled by all commands like
icingacli director command exist dummy
Command 'dummy' exists
"create" and "delete" are creating resp. deleting "Commands"-objects, not "External Commands".
(didn't try "set...")
Your Environment
- Director version (System - About): 1.11.5
- Icinga Web 2 version and modules (System - About): 2.12.5
- Icinga 2 version (
icinga2 --version): 2.15.1 - Operating System and version: SLES 15 SP7
- Webserver, PHP versions: Apache/2.4.62, PHP 8.3.23
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels