check_vnxe.sh unknown status in XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: check_vnxe.sh unknown status in XI

Post 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
Thanks so much,
Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_vnxe.sh unknown status in XI

Post 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 $?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: check_vnxe.sh unknown status in XI

Post 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?
Thanks so much,
Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_vnxe.sh unknown status in XI

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: check_vnxe.sh unknown status in XI

Post by hillhealthcenter »

Scott,

Thanks for your help. I appreciate the effort.
Thanks so much,
Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_vnxe.sh unknown status in XI

Post by scottwilkerson »

moved to ticket
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_vnxe.sh unknown status in XI

Post by scottwilkerson »

Case was resolved changing the command to the following

Code: Select all

sudo$USER1$/check_vnxe.sh '192.168.103.2' '******' '********' 'ssd'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked