Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Wow, that changed things big time. Using snmpwalk locally this time resulted in 221 lines of output along the lines of SNMPv2-SMI::enterprises.3582.1.1.14.0 = INTEGER: -1 check_sasraid_megaraid says Megaraid OK - 2 logical disks, 6 physical drives, 1 controllers found I think I'll compare the two snmpd.conf files that I've got. Maybe learn something. Dude, you rock! Thanks again! Bo jmose...@corp.xanadoo.com wrote: > Attached is a sample snmpd.conf config. > > Just change COMMUNITY-STRING and the 192.168.1.0/24 settings to what works > for you. If you are still having problems, then it's most likely your RAID > card is not supported by the version of Perc agent you downloaded. > > (See attached file: snmpd.conf) > > James Moseley > > > > Bo Gusman wrote: > > Well, krikey! > > SELinux is disabled so that isn't in play. I will get in touch with > Dell, although their linux-poweredge mailing list (where I also asked > the same question as here) has returned null. > > I appreciate all of your help with this, James. Karma points for you! > > > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Well, krikey! SELinux is disabled so that isn't in play. I will get in touch with Dell, although their linux-poweredge mailing list (where I also asked the same question as here) has returned null. I appreciate all of your help with this, James. Karma points for you! Bo jmose...@corp.xanadoo.com wrote: > To be honest, I'm stumped. Have you disabled SELinux to see if that does > the trick? At this point in time it's a problem with SNMP, the Dell Perc > agent, and/or the controller. You might open a ticket with Dell to see if > there are any known compatibility issues with the software and your > specific card. > > > James Moseley > > > > > Bo Gusman wrote: > > Yep, percagent is clearly running per ps -ef. > > snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.3582 > > returns > > SNMPv2-SMI::enterprises.3582 = No more variables left in this MIB > View (It is past the end of the MIB tree) > > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Yep, percagent is clearly running per ps -ef. snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.3582 returns SNMPv2-SMI::enterprises.3582 = No more variables left in this MIB View (It is past the end of the MIB tree) jmose...@corp.xanadoo.com wrote: > First, have you verified that the perc agent is actually running on the > remote host? > > ps -ef | grep perc > > Furthermore, you're certainly not going to be able to connect to your > remote server via SNMP by using the default percsnmpd.conf file. > > If you are able to connect to your host using the original snmpd.conf file > with the added perc statements, then you are fine. > > Next, are you running SNMP v1 or v2? That's important as you have to > provide the correct version to the plugin. > > Lastly, what happens when you do an snmpwalk from the remote host using the > following? > > snmpwalk -c wiband -v 2c localhost .1.3.6.1.4.1.3582 > > You should get a bunch of valid, snmp output. If not, try using version 1. > If you do get valid output, then SNMP/percSNMP are setup correctly on that > host. > > > James Moseley > > > > > Bo Gusman wrote: > > Well, if I use the default snmpd.conf, I can connect to the host using > snmpwalk locally and from the nagios host, but I can't see anything > related to the perc array. It is this configuration that causes the perl > substr error when I run check_sasraid_megaraid. > > Renaming percsnmpd.conf -> snmpd.conf, I can't connect to the host at > all either using snmpwalk or the script. > > Both conf files have a line "pass .1.3.6.1.4.1.3582 /usr/sbin/percmain" > as the last line of the file, but I don't understand enough about snmp > (reading the docs is giving me a headache! :) to be able to connect the > dots. > > Would you share relevant snmpd.conf info for me, James? > > Much thanks for your patience and advice. > > > > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Well, if I use the default snmpd.conf, I can connect to the host using snmpwalk locally and from the nagios host, but I can't see anything related to the perc array. It is this configuration that causes the perl substr error when I run check_sasraid_megaraid. Renaming percsnmpd.conf -> snmpd.conf, I can't connect to the host at all either using snmpwalk or the script. Both conf files have a line "pass .1.3.6.1.4.1.3582 /usr/sbin/percmain" as the last line of the file, but I don't understand enough about snmp (reading the docs is giving me a headache! :) to be able to connect the dots. Would you share relevant snmpd.conf info for me, James? Much thanks for your patience and advice. Bo Bo Gusman wrote: > Progress, of sorts. > > I installed nagios on another CentOS box to ensure that you and I are > working from the same essential config. Had exactly the same perl errors > as before. Doing some debugging of the script, it occurred to me that > the first error > > substr outside of string at ./check_sasraid_megaraid.pl line 461. > > was a great big clue perhaps the script wasn't getting anything back from the > percsnmp daemon on the monitored box. > > Since I was running snmpd using the default snmpd.conf, I figured that since > I'm only going to use the percsnmpd, why not symlink percsnmpd.conf to > snmpd.conf and try again. This got me much further, though still with errors: > > snmp error: No response from remote host 'bullwinkle' > Megaraid UNKNON - could not retrieve snmp table blah blah > > OK, so I'm guessing that something is broken in my snmp config. Guess it's > time to try to figure that out. RTFM, as they say! > > Bo > > > > jmose...@corp.xanadoo.com wrote: > >> Doesn't matter if you're not using the plugin within Nagios yet. What >> matters is if you have all the perl utilities installed. >> >> If you haven't already, install the following: >> >> yum install nagios-plugins >> >> Then rerun the script. I have a CentOS 5.2 box with Perl, Nagios, and >> Nagios-plugins installed via yum and I don't have the problems you do >> running the script. >> >> >> James Moseley >> >> >> >> Bo Gusman wrote: >> >> Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via >> yum.) Perl is default install v 5.8.8. On the Nagios box (actually a >> VM) I'm using Groundwork Community Edition 5.3 VM as provided by >> groundwork. I've not actually connected the plugin to anything Nagios >> yet, I'm just running it from the command line. >> >> I did have to install Net::SNMP for perl from CPAN. >> >> Hmmm, what a puzzle. >> >> >> >> >> >> > > > -- > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ___ > Nagios-users mailing list > Nagios-users@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 > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Progress, of sorts. I installed nagios on another CentOS box to ensure that you and I are working from the same essential config. Had exactly the same perl errors as before. Doing some debugging of the script, it occurred to me that the first error substr outside of string at ./check_sasraid_megaraid.pl line 461. was a great big clue perhaps the script wasn't getting anything back from the percsnmp daemon on the monitored box. Since I was running snmpd using the default snmpd.conf, I figured that since I'm only going to use the percsnmpd, why not symlink percsnmpd.conf to snmpd.conf and try again. This got me much further, though still with errors: snmp error: No response from remote host 'bullwinkle' Megaraid UNKNON - could not retrieve snmp table blah blah OK, so I'm guessing that something is broken in my snmp config. Guess it's time to try to figure that out. RTFM, as they say! Bo jmose...@corp.xanadoo.com wrote: > Doesn't matter if you're not using the plugin within Nagios yet. What > matters is if you have all the perl utilities installed. > > If you haven't already, install the following: > > yum install nagios-plugins > > Then rerun the script. I have a CentOS 5.2 box with Perl, Nagios, and > Nagios-plugins installed via yum and I don't have the problems you do > running the script. > > > James Moseley > > > > Bo Gusman wrote: > > Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via > yum.) Perl is default install v 5.8.8. On the Nagios box (actually a > VM) I'm using Groundwork Community Edition 5.3 VM as provided by > groundwork. I've not actually connected the plugin to anything Nagios > yet, I'm just running it from the command line. > > I did have to install Net::SNMP for perl from CPAN. > > Hmmm, what a puzzle. > > > > > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Host OS is CentOS 5.x (originally 5.2 with ongoing updates applied via yum.) Perl is default install v 5.8.8. On the Nagios box (actually a VM) I'm using Groundwork Community Edition 5.3 VM as provided by groundwork. I've not actually connected the plugin to anything Nagios yet, I'm just running it from the command line. I did have to install Net::SNMP for perl from CPAN. Hmmm, what a puzzle. Bo jmose...@corp.xanadoo.com wrote: > My guess is you have an old version of perl or missing something else... > > How did you install perl and Nagios/Nagios plugins? I just tested this > plugin on a CentOS 5.3 box which had perl and nagios-plugins installed via > yum repository. Worked just fine. > > I'd install nagios-plugins from yum and see if that clears things up. If > it doesn't you might want to check which version of perl you are running > and upgrade it. > > > James Moseley > > > > > Bo Gusman wrote: > > > That said > > ./check_sasraid_megaraid.pl -H bullwinkle -C public -T > megaraid -s 2c > > all hell breaks loose: > > > substr outside of string at ./check_sasraid_megaraid.pl line 461. > Use of uninitialized value in split at ./check_sasraid_megaraid.pl > line 462. > > > > > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
grep -i raid /var/log/dmesg shows, for bullwinkle, Vendor: MegaRaid Model: LD 0 RAID1 69G Rev: 521X Vendor: MegaRaid Model: LD 1 RAID1 858G Rev: 521X same as the h/w browser. So the kernel thinks there's something there. That said ./check_sasraid_megaraid.pl -H bullwinkle -C public -T megaraid -s 2c all hell breaks loose: substr outside of string at ./check_sasraid_megaraid.pl line 461. Use of uninitialized value in split at ./check_sasraid_megaraid.pl line 462. Use of uninitialized value in concatenation (.) or string at ./check_sasraid_megaraid.pl line 482. Use of uninitialized value in concatenation (.) or string at ./check_sasraid_megaraid.pl line 482. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 485. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 486. substr outside of string at ./check_sasraid_megaraid.pl line 527. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 535. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 537. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 538. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 540. Use of uninitialized value in concatenation (.) or string at ./check_sasraid_megaraid.pl line 544. Use of uninitialized value in hash element at ./check_sasraid_megaraid.pl line 546. substr outside of string at ./check_sasraid_megaraid.pl line 586. Use of uninitialized value in split at ./check_sasraid_megaraid.pl line 587. Use of uninitialized value in concatenation (.) or string at ./check_sasraid_megaraid.pl line 590. Use of uninitialized value in concatenation (.) or string at ./check_sasraid_megaraid.pl line 595. hostname: bullwinkle community: public port: 161 timeout: 15 alert: CRITICAL phydrv_status: .1.3.6.1.4.1.3582.1.1.3.1.4 = endOfMibView | suffix = , controller = 0, channel = 0, drive = , lun = 0 logdrv_status: .1.3.6.1.4.1.3582.1.1.2.1.3 = endOfMibView | logdrv_id = Megaraid CRITICAL - phy drv() unknown code endOfMibView, log drv() unknown code endOfMibView - 1 logical disks, 0 physical drives, 1 controllers found The upshot of it appears to be the "unknown code endOfMibView", whatever that may be. Bo jmose...@corp.xanadoo.com wrote: > Since you are getting that error, I don't think the firewall is the > problem. If it were the firewall, I'd expect a timeout issue. > > First, make sure you are passing the proper community string and SNMP > version into the script: > > ./check_sasraid_megaraid.pl -H bullwinkle -C -T megaraid > -s <1 or 2c> > > If you still are getting that error, try 'perc4' as your -T argument. > > Lastly (or firstly, I suppose), check to make sure you actually have a > MegaRAID adapter: > > dmesg | grep -i raid > > If you do, you should see a line like: > > Vendor: MegaRAID Model: LD 0 RAID5 139G Rev: 513O > > > James Moseley > > > > Bo Gusman wrote: > > > The second is that when running > > ./check_sasraid_megaraid.pl -H bullwinkle -T megaraid --debug > > it fails: > > alert: CRITICAL > snmp error: Requested table is empty or does not exist > Megaraid UNKNOWN - could not retrieve snmp table > .1.3.6.1.4.1.3582.1.1.2.1.3 > > > > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Thanks for your reply, James. Your recipe for installation was perfect. I did encounter two problems, 1 of which I solved (though I don't understand why I needed to do it.) Initially running check_sasraid_megaraid from the command line on the Nagios box to get the help output complained "Can't find utils.pm in @INC" Comparing that script against many others in the nagios/libexec directory showed that many others used utils.pm (which was also in the nagios/libexec dir), and they found it just fine. I eventually added "use lib /usr/local/groundwork/nagios/libexec" to the script and that solved that particular problem. I'm not sure why this was necessary, given that all of the scripts (that I checked, in any case), including check_sasraid_megaraid were identical in usage of utils.pm. The second is that when running ./check_sasraid_megaraid.pl -H bullwinkle -T megaraid --debug it fails: alert: CRITICAL snmp error: Requested table is empty or does not exist Megaraid UNKNOWN - could not retrieve snmp table .1.3.6.1.4.1.3582.1.1.2.1.3 Initially I had opened ports 161 TCP so I thought that might be the problem, but changing them to UDP only changes the speed with which I get the failure (the timeout was operative before). I've checked that both percsnmpd and snmpd are running and snmpd.conf has the appropriate entry. Do you have other hints that may help me? Thanks again. Bo jmose...@corp.xanadoo.com wrote: > I use that plugin on a number of Dell servers. First, you've got to make > sure the RAID controller is either a MegaRAID or AACRAID controller. More > than likely, it's the former. > > The plugin itself is self explanatory - look at the help output. What you > need is to download the Perc SNMP agent from Dell. Ultimately, you'll > install the following RPM: > > percsnmp-4.09-1.i386.rpm > > which will install the percsnmpd daemon... > > All you need to do at that point is apply the following line to your > /etc/snmp/snmpd.conf file: > > # Dell MegaRAID data will be exported on port 161 by the main snmpd > pass .1.3.6.1.4.1.3582 /usr/sbin/percmain > > Then fire up the percsnmpd daemon and restart snmpd. > > > James Moseley > > > > > > Bo Gusman >.us> To >Nagios-users@lists.sourceforge.net > 04/30/2009 01:00 cc > PM >Subject >[Nagios-users] experience with >check_sasraid_megaraid for Dell >PERC 4? > > > > > > > > > > > Hi all. > > We've got two dell servers with PERC4 controllers running CentOS that > nagios is monitoring quite nicely with the exception of the raid arrays. > > Is there anyone that has experience with check_sasraid_megaraid as found > here: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 > > Advice, an overview, or a recipe would be very helpful! > > Thanks! > > Bo > > > -- > > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ___ > Nagios-users mailing list > Nagios-users@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 > > Bo Gusman wr
Re: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC4?
Thanks for your quick reply, Seth. I did look at this but it seems that it requires OpenManage to be installed on the monitored server. Is that right? That gives me some concern over performance - I've heard (but have no experience with) that OM is something of a resource hog - java based? Our servers are VM hosts for a variety of other things and I'm reluctant to add yet more load for the simple need to check that status of the RAID arrays. I appreciate your insight. Bo Seth Simmons wrote: > I haven't used that specifically, but I do use check_openmanage on all > my dell boxes (perc 3/4/5/6) > It works nicely and checks all hardware components, including > physical/logical drive status. > It will generate alerts if a physical drive fails and the volume becomes > degraded; along with any related errors in the esm log, if you use this > to monitor that also. > > http://folk.uio.no/trondham/software/check_openmanage.html > > > > -Original Message- > From: Bo Gusman [mailto:ml...@bogusville.us] > Sent: Thursday, April 30, 2009 2:01 PM > To: Nagios-users@lists.sourceforge.net > Subject: [Nagios-users] experience with check_sasraid_megaraid for Dell > PERC4? > > Hi all. > > We've got two dell servers with PERC4 controllers running CentOS that > nagios is monitoring quite nicely with the exception of the raid arrays. > > Is there anyone that has experience with check_sasraid_megaraid as found > > here: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 > > Advice, an overview, or a recipe would be very helpful! > > Thanks! > > Bo > > > > -- > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > ___ > Nagios-users mailing list > Nagios-users@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 > -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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
[Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4?
Hi all. We've got two dell servers with PERC4 controllers running CentOS that nagios is monitoring quite nicely with the exception of the raid arrays. Is there anyone that has experience with check_sasraid_megaraid as found here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 Advice, an overview, or a recipe would be very helpful! Thanks! Bo -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@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