Page 1 of 2

Storage is't being monitored after nagios core IP change

Posted: Tue Jun 27, 2017 4:47 am
by prabu
Issue: After changing the Nagios core server IP EMC Storage devices (VNX and Clariion) are not being monitored. All the other devices (Linux OS, Dell servers, Dell storage) are working as the source server.

OS where Nagios® Core™ 3.2.3 is installed : Oracle Linux 5.11

What is done so far:
We have migrated the nagios core server from one site to another using VMware converter. Technically this means that we have just changed the IP and the host name and it is in a different IP range.

Do I need to change some settings after changing the hostname and IP address of the Nagios core?

This is the current status of the VNX.
Service  Status Information
SAN Cache Status (No output returned from plugin) 
SAN Dirty Pages in Cache (No output returned from plugin) 
SAN Disk Check No disk were founded ! 
SAN Fault Check Cannot use the security file. Check the -secfilepath option. 
SP Info Check {SP ID:} {Agent Revision:} {FLARE Revision:} {PROM Revision:} {Model:, } {Memory:} {Serial Number:} 
SPA Percentage Busy OK: SPA % Busy is 0% 
SPA Processor Status Check UNKNOWN: No output from /opt/Navisphere/bin/navicli 
SPB Percentage Busy checked via SPA OK: SPB % Busy is 0% 
SPB Processor Status Check checked via SPA UNKNOWN: No output from /opt/Navisphere/bin/navicli 

Source status:
Service  Status Information
SAN Cache Status Read cache is enable, Write cache is enable, Write cache mirroring is enable. 
SAN Dirty Pages in Cache Dirty Pages In Cache is 66% 
SAN Disk Check 98 physical disks are OK. 6 Hotspares are ready. 
SAN Fault Check The array is operating normally. 
SP Info Check {SP ID:A} {Agent Revision:7.32.31 (3.21)} {FLARE Revision:05.32.000.5.221} {PROM Revision:7.20.00} {Model:VNX5300, Rackmount} {Memory:8.00GB} {Serial Number:CDM0012345678} 
SPA Percentage Busy OK: SPA % Busy is 13.42% 
SPA Processor Status Check SP A Present,Power ok,SPS ok,Cabling ok 
SPB Percentage Busy checked via SPA OK: SPB % Busy is 12.98% 
SPB Processor Status Check checked via SPA SP B Present,Power ok,SPS ok,Cabling ok 

Re: Storage is't being monitored after nagios core IP change

Posted: Tue Jun 27, 2017 11:09 am
by DiegoAnjos
How are you monitoring these storages?

If through SNMP, you must change the "allowed hosts" (or something similar to that) with the new Nagios IP address.

Re: Storage is't being monitored after nagios core IP change

Posted: Tue Jun 27, 2017 1:26 pm
by dwhitfield
Thanks @DiegoAnjos!

Also, not just SNMP, but also NRPE has an allowed host option.

Re: Storage is't being monitored after nagios core IP change

Posted: Wed Jun 28, 2017 11:44 am
by prabu
Thank you for your reply DiegoAnjos, dwhitfield!

VNX NAS is monitored via NRPE and it is working fine.
VNX block and hardware is monitored via SNMP which is not working. The /etc/snmp/snmpd.conf file has got only one line with the community string. There is no allow or deny rule is configured.

Can you please help me to find the command is being executed for the vnx storage snmp monitoring. I believe it is using a plugin. I tried to search the internet. But not able to understand the command.cfg.

Re: Storage is't being monitored after nagios core IP change

Posted: Wed Jun 28, 2017 2:18 pm
by dwhitfield
The plugin is probably in /usr/local/nagios/libexec. Can you upload the plugin? If it isn't there, can you upload your nagios.cfg? Also, if you can post the command definition that would be useful.

Re: Storage is't being monitored after nagios core IP change

Posted: Thu Jun 29, 2017 4:55 am
by prabu
Thank you for the reply dwhitfield.

I am attaching the following contents:
check_emc_clariion.pl
command_definitions from services.cfg
nagios.cfg

Hope this helps.

Re: Storage is't being monitored after nagios core IP change

Posted: Thu Jun 29, 2017 12:24 pm
by tgriep
Some of the errors in your first post looks like the security file that has the login information needed to login to the storage unit is either missing or that the account information is not valid.
Check the files in this folder to see if they are valid.

Code: Select all

/usr/local/nagios/libexec/check_emc_clariion_security_files
You may have to re-install the plugin and the following link are the instructions to so that.
https://exchange.nagios.org/directory/P ... 74/details

You may want to to this as the plugin if a newer version than you are currently running.

Re: Storage is't being monitored after nagios core IP change

Posted: Fri Jun 30, 2017 2:01 am
by prabu
I am trying to setup the plugin again. But getting the output with an error for "SPA Percentage Busy". Is it expected.
#/usr/local/nagios/libexec/check_emc_clariion.pl -H <IP address> --secfilepath /usr/local/nagios/libexec/check_emc_clariion_security_files -t sp_cbt_busy --sp A --warn 50 --crit 70
Argument "\n" isn't numeric in subtraction (-) at /usr/local/nagios/libexec/check_emc_clariion.pl line 847.
Argument "\n" isn't numeric in subtraction (-) at /usr/local/nagios/libexec/check_emc_clariion.pl line 848.
OK: SPA % Busy is 4.20%|'SPA % Busy'=4.20%;50;70;;

Same command with password is working without any error.
# /usr/local/nagios/libexec/check_emc_clariion.pl -H <IP address> -u readonly -p <password> -t sp_cbt_busy --sp A --warn 50 --crit 70
OK: SPA % Busy is 1.80%|'SPA % Busy'=1.80%;50;70;;

Re: Storage is't being monitored after nagios core IP change

Posted: Fri Jun 30, 2017 8:22 am
by mcapra
I suspect there might be some sort of encoding issue with the /usr/local/nagios/libexec/check_emc_clariion_security_files file. You might try running it through dos2unix which should be available via yum/apt.

Re: Storage is't being monitored after nagios core IP change

Posted: Fri Jun 30, 2017 10:43 am
by dwhitfield
Per @mcapra's suggestion, I don't have Oracle 5 specifically to test on, but I believe the command should be yum install dos2unix -y. On my install, it didn't have any dependencies.

Please let us know if you run into any difficulties.