check_msa2012i_gl argument problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
FHo
Posts: 1
Joined: Mon Jul 18, 2016 3:40 am

check_msa2012i_gl argument problem

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_msa2012i_gl argument problem

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked