Storage is't being monitored after nagios core IP change
Storage is't being monitored after nagios core IP change
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
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
Last edited by prabu on Wed Jun 28, 2017 1:20 am, edited 1 time in total.
-
- Posts: 49
- Joined: Thu Feb 14, 2013 9:32 am
Re: Storage is't being monitored after nagios core IP change
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.
If through SNMP, you must change the "allowed hosts" (or something similar to that) with the new Nagios IP address.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Storage is't being monitored after nagios core IP change
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.
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.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Storage is't being monitored after nagios core IP change
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
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.
I am attaching the following contents:
check_emc_clariion.pl
command_definitions from services.cfg
nagios.cfg
Hope this helps.
- Attachments
-
- new_ip-nagios.cfg
- nagios.cfg
- (42.85 KiB) Downloaded 254 times
-
- new_ip-command_definitions-services.cfg
- command_definitions from services.cfg
- (3.04 KiB) Downloaded 272 times
-
- new_ip-check_emc_clariion.pl
- check_emc_clariion.pl
- (91.25 KiB) Downloaded 264 times
Re: Storage is't being monitored after nagios core IP change
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.
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.
Check the files in this folder to see if they are valid.
Code: Select all
/usr/local/nagios/libexec/check_emc_clariion_security_files
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Storage is't being monitored after nagios core IP change
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;;
#/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
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Storage is't being monitored after nagios core IP change
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.
Please let us know if you run into any difficulties.