EMC Wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
sikainfo
Posts: 105
Joined: Thu Mar 29, 2012 3:26 am

EMC Wizard

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: EMC Wizard

Post 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>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
sikainfo
Posts: 105
Joined: Thu Mar 29, 2012 3:26 am

Re: EMC Wizard

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: EMC Wizard

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
sikainfo
Posts: 105
Joined: Thu Mar 29, 2012 3:26 am

Re: EMC Wizard

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

Re: EMC Wizard

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
sikainfo
Posts: 105
Joined: Thu Mar 29, 2012 3:26 am

Re: EMC Wizard

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

Re: EMC Wizard

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
sikainfo
Posts: 105
Joined: Thu Mar 29, 2012 3:26 am

Re: EMC Wizard

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

Re: EMC Wizard

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked