Page 1 of 1

check_msa2012i_gl argument problem

Posted: Mon Jul 18, 2016 3:51 am
by FHo
Hi @ al
i have a problem to give an argument to the command
my commands..cfg

Code: Select all

define command{
command_name check_msa
command_line  $USER1$/check_msa2012i_g1 -u $USER9$ -p $USER10$ -H $HOSTADDRESS$ -t $ARG1$
}
the service is

Code: Select all

define service{
       use                               generic-service,srv-pnp
       host_name                    KKOH-ST-01
       service_description       disk
       check_command           check_msa!disks
       }

the output direct startet
./check_msa2012i_g1 -u monitoring -p 'password' -h 10.10.10.10 -t disks
OK: Discos 1 2 3 4 5 6 7 8 9 10 11 24: OK

in the webfrontend is:
Usage: check_msa [-u ] [-p ] -h -t

If not provided, default manage username and password will be used.
The following types of checks are available:

channel - checks the status of the hosts ports
redundancy - checks the status of the controllers redundancy
disks - checks various informations about the physical disks
enclosure - checks the status of enclosure's components
frus - checks the status of all field-replaceable units
sensors - checks all sensors of the storage
vdisks - checks the status of the virtual disks

anyone know my mistake?

thanks a lot

Re: check_msa2012i_gl argument problem

Posted: Mon Jul 18, 2016 10:29 am
by tgriep
It looks like the plugin wants a lower case h in the command, try changing the command from

Code: Select all

-H
to

Code: Select all

-h
And see if that works for you.