Add command Icinga Director Dell Equallogic

Hi,
I have a icingaweb2 with Director 1.8 and I have a little problem.
I add a command to monitoring a Dell Equallogic PS4000 and this command don’t admit arguments, i have this error:
critical/config: Error: Validation failed for object ‘check_equallogic.sh’ of type ‘CheckCommand’; Attribute ‘command’: Attribute ‘command’ must be an array if the ‘arguments’ attribute is set. Location: in [stage]/zones.d/icingaweb2.montornes.local/commands.conf: 52:5-52:50 [stage]/zones.d/icingaweb2.montornes.local/commands.conf(50): object CheckCommand “check_equallogic.sh” { [stage]/zones.d/icingaweb2.montornes.local/commands.conf(51): import “plugin-check-command” [stage]/zones.d/icingaweb2.montornes.local/commands.conf(52): command = PluginDir + “/./check_equallogic.sh” ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [stage]/zones.d/icingaweb2.montornes.local/commands.conf(53): arguments += { [stage]/zones.d/icingaweb2.XXXXXXX.local/commands.conf(54): “-H” = { [2021-03-31 17:37:27 +0200] critical/config: 1 error [2021-03-31 17:37:27 +0200] critical/cli: Config validation failed. Re-run with ‘icinga2 daemon -C’ after fixing the config.

Can you help me?

Regards,

Hi,

that’s not much information to go on.
Please show the command configuration.

cheers :slight_smile:

HI,

This is command, Is my first Icinga configuration, I’m sure that i mistake something.

object CheckCommand "check_equallogic.sh" {
    import "plugin-check-command"
    command = PluginDir + "/./check_equallogic.sh"
    arguments += {
        "-C" = {
            description = "Community"
            order = 2
            repeat_key = false
            required = true
            value = "$ARG2$"
        }
        "-H" = {
            description = "hostname"
            order = 1
            repeat_key = false
            required = true
            value = "$host.name$"
        }
        "-t" = {
            description = "Check type"
            order = 3
            repeat_key = false
            required = true
            skip_key = true
            value = "$ARG1$"
        }
    }
    vars["$ARG1$"] = [ "disk" ]
}

Thanks!!!

Regards,

Hello Oliver,

here is how our config looks like for the eql check

object CheckCommand "check_equallogic" {
    import "plugin-check-command"
    command = [ PluginDir + "/check_equallogic.sh" ]
    timeout = 1m
    arguments += {
        "-C" = {
            description = "SNMP community"
            value = "$snmp_community$"
        }
        "-H" = {
            description = "DNS hostname or IP address of the Equallogic member"
            value = "$address$"
        }
        "-c" = {
            description = "Critical threshold"
            value = "$equallogic_critical$"
        }
        "-t" = {
            description = "Check Type"
            value = "$equallogic_checktype$"
        }
        "-v" = {
            description = "Volume name for single volume check"
            value = "$equallogic_volume$"
        }
        "-w" = {
            description = "Warning threshold"
            value = "$equallogic_warning$"
        }
    }
}

Maybe it will help you to find your mistake.

Regards,

2 Likes

It’s working!!! Thanks!!!