Page 1 of 2

EMC Wizard

Posted: Wed May 23, 2012 8:45 am
by sikainfo
Hi there,
I've got easy running the plugin, but now here is the result all checks are working properly except SPB Percentage, return code of 255 is out of bounds (see attachment).
I'm running R 2.4, lastest Plugin downloaded and latest EMC-CLI downloaded.
Any Idea on this, thanks for help

Andy
EMC Error.jpg

Re: EMC Wizard

Posted: Wed May 23, 2012 9:25 am
by scottwilkerson
Have you tried running this command from the command line to see if it gives you a little clearer error message?

It would be something like

Code: Select all

/usr/local/nagios/libexec/check_emc_clariion.pl -H <HOSTADDRESS> -u <USERNAME> -p <PASSWORD> -t sp_cbt_busy --sp B --warn <WARNING> --crit <CRITICAL>

Re: EMC Wizard

Posted: Fri May 25, 2012 2:03 am
by sikainfo
Hi there,
it is very strange .....

I've tried to enter the command in a terminal, how you suggested, even with another subcommand which runs under Nagios Xi correctly.
In the terminal the commands just HANGS, no output and I had to stop them with ctrl.C

[nagios@chsismon1 libexec]$./check_emc_clariion.pl -H ......... -u nag.. -p mon... -t spc_cbt_busy --sp A --w 90 --c95
[nagios@chsismon1 libexec]$./check_emc_clariion.pl -H ........- -u nag.. -p mon... -t disk

Sorry no Idea her anymore .... :shock:

Andy

Re: EMC Wizard

Posted: Fri May 25, 2012 2:08 pm
by lmiltchev
Try to run the command again from a command line and then run:

Code: Select all

tail /var/log/messages
See if there is any useful info there that can point us to the right direction.

Re: EMC Wizard

Posted: Sat May 26, 2012 3:07 am
by sikainfo
Hi there,
upfront I would like to inform you, that I'm in vacation till the 11th. of June. So please do not expect answers of me till then.

the message i've found in /var/log/messages is the following:

May 26 09:49:32 chsismon1 nagios: Warning: Return code of 255 for check of service 'EMC CLARiiON - SPA Percentage Busy' on host 'CX-380 SPA' was out of bounds.

This is the same I see within Nagios XI, but I'm really wondering why the other check's are running without problems in Nagios XI, but in a normal shell they hang.

Thanks and cu in 2 weeks

Andy ;)

Re: EMC Wizard

Posted: Tue May 29, 2012 8:58 am
by scottwilkerson
I would look at round line 113 I see

Code: Select all

$VERSION  = '2011-07-04';
$NAVICLI = '/opt/Navisphere/bin/navicli';
$NAVISECCLI = '/opt/Navisphere/bin/naviseccli';
Can we make sure this is where the Navisphere clients live on the server

Re: EMC Wizard

Posted: Mon Jun 11, 2012 8:34 am
by sikainfo
Hi scott,
i'm back, your are right there is missing a file navicli here:

[root@chsismon1 nagiosxi]# cd /opt/Navisphere/bin/
[root@chsismon1 bin]# ll
total 11552
-rwxrwxr-x 1 root root 371019 Feb 23 02:18 admsnap
-rwxrwxr-x 1 root root 11453503 Feb 23 02:18 naviseccli
[root@chsismon1 bin]#

I had downloaded the Navisphere directly from EMC and installed according the instructions.
So what may I do here?

Greets Andy

Re: EMC Wizard

Posted: Mon Jun 11, 2012 9:43 am
by scottwilkerson
Can you try

Code: Select all

locate navicli
or

Code: Select all

find / -name navicli
To see if you have that file somewhere else on your system

Re: EMC Wizard

Posted: Tue Jun 12, 2012 4:31 am
by sikainfo
Hi Scott,

i've looked for the file, it's NOT on the system, I downloaded the newest version of NaviSphere-CLI from EMC and reinstalled it -> no navicli.
After that i looked in the script check_emc_clariion.pl and could see that the navicli is only used, when you do not provide a username and a password, e.g. unsecure connection.

Code: Select all

# check if user and password for Naviseccli is given
# If it is providen, then it passes in secure mode for the command to the array.
# else we are staying in navicli mode
if ( $opt_user && $opt_password ) {
	$secure = 1;
}
On all checks specifically the sp_cbt_busy I have provided username and password, so the script should user securce mode witch means the program naviseccli

So normally the missing navicli program should not harm.

If I run the perlscript check_emc_clariion.pl directly in a shell no matter with wich checktype no answer is coming back as you have see before.

In the meantime the version of NagiosXi is on the latest level 3.1

Re: EMC Wizard

Posted: Tue Jun 12, 2012 9:23 am
by scottwilkerson
Have you verified that there isn't a firewall or anything blocking the connection?

I'm not totally familiar with this plugin as we don't have an EMC Clariion system to test against