Page 3 of 3

Re: check_vnxe.sh unknown status in XI

Posted: Mon Jun 25, 2018 9:11 am
by hillhealthcenter
Hi Scott,

This is the output that I get in XI when I wrap the arguments in single quotes:

Code: Select all

UNKNOWN - Unisphere CLI returned an error, unable to perform check.
UNKNOWN - ssd module not detected

Re: check_vnxe.sh unknown status in XI

Posted: Mon Jun 25, 2018 9:59 am
by scottwilkerson
I really don't have any suggestions other than contacting the author.
Please send all comments/feedback to the author, Charles Bender, at [email protected]
We don't have this system, but looking at the script this is not returning properly

Code: Select all

$ucli -silent -d $host -user $user -password $password $check_path show -output csv > $temp
As a temp suggestion, you could try adding the following just above that line to make sure everything is passing correctly

Code: Select all

echo "$ucli -silent -d $host -user $user -password $password $check_path show -output csv"
Then when nagios runs the command it should output the command that is trying to run on the remote system that is failing.
They you can run what it outputs, then run the following command right after it

Code: Select all

echo $?

Re: check_vnxe.sh unknown status in XI

Posted: Mon Jun 25, 2018 2:03 pm
by hillhealthcenter
I sent Charles an email and I'm waiting for a reply from him.

I made the tweaks you suggested and here's the output:

Code: Select all

/opt/emc/uemcli/bin/uemcli -silent -d 192.168.103.2 -user nagios -password C0rnell? /env/ssd show -output csv
0
UNKNOWN - ssd module not detected
I'd like to have this issue turned into an official support case. It's important to us that we get this to work. Is there different script that we should be looking at?

Re: check_vnxe.sh unknown status in XI

Posted: Mon Jun 25, 2018 2:09 pm
by scottwilkerson
We do not distribute anything for the Unisphere CLI so I'm not really familiar with it
Can you run the following

Code: Select all

sudo su nagios -c '/opt/emc/uemcli/bin/uemcli -silent -d 192.168.103.2 -user nagios -password C0rnell? /env/ssd show -output csv && echo $?'
Also if you want to switch to an official support case please open ticket here and link to this thread in the ticket:
https://support.nagios.com/tickets/

Re: check_vnxe.sh unknown status in XI

Posted: Mon Jun 25, 2018 2:43 pm
by hillhealthcenter
Scott,

Thanks for your help. I appreciate the effort.

Re: check_vnxe.sh unknown status in XI

Posted: Mon Jun 25, 2018 2:49 pm
by scottwilkerson
moved to ticket

Re: check_vnxe.sh unknown status in XI

Posted: Tue Jun 26, 2018 7:18 am
by scottwilkerson
Case was resolved changing the command to the following

Code: Select all

sudo$USER1$/check_vnxe.sh '192.168.103.2' '******' '********' 'ssd'