check_areca via LAN (SNMP)?

Florian Lohoff f at zz.de
Fri Sep 7 10:05:02 CEST 2012


On Thu, Sep 06, 2012 at 03:59:06PM +0000, Sven Geggus wrote:
> Dear nagios users,
> 
> looking trough the Web I only found a check_areca plugin which uses the
> commandline tool for checking the controler state.
> 
> However, as my areca controller is providing an ethernet interface
> (ARC-1880) it should be better to do direct queries by LAN.
> 
> The controller does provide snmp which also seems to work (I can query the
> controller using "snmpwalk -c public -v 1 <areca-ip> iso.3.6.1" after I
> added "public" as
> Community in the Web Interface.
> 
> Unfortunately I was unable to figure out the correct key for RAID status
> monitoring, as the areca provided mib's seem to be somewhat broken.
> 
> I am almost certainly looking for iso.3.6.1.4.1.18928.1.2.5.1.1.5.0 but this
> is just an intelligent guess:
> 
>  ~/ # snmpget -c public -v 1 <areca-ip> iso.3.6.1.4.1.18928.1.2.5.1.1.5.0
> iso.3.6.1.4.1.18928.1.2.5.1.1.5.0 = STRING: "Normal"

I'd try to find the correct MIB - Google shows up with this:
http://opennms.530661.n2.nabble.com/Adding-an-Areca-MIB-td5676020.html
which points to 
http://www.areca.us/support/download/RaidCards/AP_Driver/snmp-mibs-sas.zip

An snmpwalk gets much more interesting when used with a MIB otherwise
its like reading the Matrix.

The MIB is buggy indeed (as most vendor supplied mibs). To silence the
net-snmp warning i changed this:

--- areca_sas.mib.orig	2012-09-07 10:01:33.937140405 +0200
+++ areca_sas.mib	2012-09-07 10:02:02.725380043 +0200
@@ -16,7 +16,7 @@
 ArecaGroup1			OBJECT IDENTIFIER ::= { Areca 1 }
 SASRaidSubsystem 		OBJECT IDENTIFIER ::= { ArecaGroup1 2 }
 SystemInformation		OBJECT IDENTIFIER ::= { SASRaidSubsystem 1 }
-HW_Monitor			OBJECT IDENTIFIER ::= { SASRaidSubsystem 2 }
+HWMonitor			OBJECT IDENTIFIER ::= { SASRaidSubsystem 2 }
 HddInformation			OBJECT IDENTIFIER ::= { SASRaidSubsystem 3 }
 RaidsetInformation		OBJECT IDENTIFIER ::= { SASRaidSubsystem 4 }
 VolumesetInformation		OBJECT IDENTIFIER ::= { SASRaidSubsystem 5 }
@@ -254,15 +254,15 @@
 
 -- definition of object types of H/W monitor
 
-ControllerBoard			OBJECT IDENTIFIER ::= { HW_Monitor 1 }
-HwEnclosure1			OBJECT IDENTIFIER ::= { HW_Monitor 2 }
-HwEnclosure2			OBJECT IDENTIFIER ::= { HW_Monitor 3 }
-HwEnclosure3			OBJECT IDENTIFIER ::= { HW_Monitor 4 }
-HwEnclosure4			OBJECT IDENTIFIER ::= { HW_Monitor 5 }
-HwEnclosure5			OBJECT IDENTIFIER ::= { HW_Monitor 6 }
-HwEnclosure6			OBJECT IDENTIFIER ::= { HW_Monitor 7 }
-HwEnclosure7			OBJECT IDENTIFIER ::= { HW_Monitor 8 }
-HwEnclosure8			OBJECT IDENTIFIER ::= { HW_Monitor 9 }
+ControllerBoard			OBJECT IDENTIFIER ::= { HWMonitor 1 }
+HwEnclosure1			OBJECT IDENTIFIER ::= { HWMonitor 2 }
+HwEnclosure2			OBJECT IDENTIFIER ::= { HWMonitor 3 }
+HwEnclosure3			OBJECT IDENTIFIER ::= { HWMonitor 4 }
+HwEnclosure4			OBJECT IDENTIFIER ::= { HWMonitor 5 }
+HwEnclosure5			OBJECT IDENTIFIER ::= { HWMonitor 6 }
+HwEnclosure6			OBJECT IDENTIFIER ::= { HWMonitor 7 }
+HwEnclosure7			OBJECT IDENTIFIER ::= { HWMonitor 8 }
+HwEnclosure8			OBJECT IDENTIFIER ::= { HWMonitor 9 }
 
 -- Controller Board
 hwControllerBoardInstalled	OBJECT-TYPE
@@ -4010,21 +4010,21 @@
 	::= 647
 	
 	
-hwVoltage1_3	TRAP-TYPE
+hwVoltage13	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 648
 	
-hwVoltage2_5	TRAP-TYPE
+hwVoltage25	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 649
 	
-hwVoltage1_25	TRAP-TYPE
+hwVoltage125	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
@@ -4094,7 +4094,7 @@
 		"%s."
 	::= 659
 
-hwTempController_R	TRAP-TYPE
+hwTempControllerR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
@@ -4102,35 +4102,35 @@
 	::= 660
 
 
-hwTempBackplane_R		TRAP-TYPE
+hwTempBackplaneR		TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 661
 
-hwVoltage15_R	TRAP-TYPE
+hwVoltage15R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 662
 
-hwVoltage3_R	TRAP-TYPE
+hwVoltage3R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 663
 
-hwVoltage5_R	TRAP-TYPE
+hwVoltage5R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 664
 
-hwVoltage12_R	TRAP-TYPE
+hwVoltage12R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
@@ -4138,77 +4138,77 @@
 	::= 665
 	
 	
-hwVoltage1_3_R	TRAP-TYPE
+hwVoltage13R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 666
 	
-hwVoltage2_5_R	TRAP-TYPE
+hwVoltage25R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 667
 	
-hwVoltage1_25_R	TRAP-TYPE
+hwVoltage125R	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 668
 
-hwPower1Failed_R	TRAP-TYPE
+hwPower1FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 669
 	
-hwFan1Failed_R	TRAP-TYPE
+hwFan1FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 670
 	
-hwPower2Failed_R	TRAP-TYPE
+hwPower2FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 671
 	
-hwFan2Failed_R	TRAP-TYPE
+hwFan2FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 672
 	
-hwPower3Failed_R	TRAP-TYPE
+hwPower3FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 673
 	
-hwFan3Failed_R	TRAP-TYPE
+hwFan3FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 674
 
-hwPower4Failed_R	TRAP-TYPE
+hwPower4FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION
 		"%s."
 	::= 675
 	
-hwFan4Failed_R	TRAP-TYPE
+hwFan4FailedR	TRAP-TYPE
 	ENTERPRISE	raidSubSysTraps
 	VARIABLES	{ eventString }
 	DESCRIPTION

Flo
-- 
Florian Lohoff                                                 f at zz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120907/768e4a2e/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list