Nagios Exchange
  • Home
  • Directory
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
Plugins4387Themes and Skins11Add-ons732Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Nagios XI Documentation Nagios XI – Monitoring Linux Using NRPE and Linux Server Monitoring Wizard
0.0 (0)
5.3K
RSS Feed
Newest Listings Updated Listings
Top Contributors
LAMY (7)Julien DESMAREST (6)deskwork_itunes142 (4)Davide Lemma (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More
Home > Chris Reece
CR

Chris Reece

@car

User Stats

Favorites0

Views

Projects0

No Projects Found
check_hds_ams.pl

Looks good so far

This also works on our AMS2300s. Thanks for saving me some valuable time and effort. I had a couple of minor troubles, hopefully they'll help someone. Firstly, I had trouble because I assumed that our AMS' community string would be "public". D'oh. I found it under Storage Nav -> Arrays -> (array) -> Settings -> SNMP Agent ->Environment Settings Secondly, the script suffers a runtime failure when it attempts to report a failure: Use of uninitialized value in string eq at check_hds_ams line 191. which, unless I've misunderstood, appears to be a broken test in a home-rolled join() function. The following seems to be a fix: --- /tmp/check_hds_ams.pl 2010-12-14 14:39:30.000000000 +1300 +++ check_hds_ams 2010-12-14 19:11:29.000000000 +1300 @@ -186,9 +186,6 @@ } } # separate messages by commas to be human friendly - for my $err (@errs) { - $result .= $err; - $result .= ", " unless $errs[-1] eq $_; - } + $result .= join ", ", @errs; return $result; }

Reviewed 15 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks