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
RAID Controllers check_cciss – HP and Compaq Smart Array Hardware status
4.3 (39)
222.5K
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 > Michael Mansour
MM

Michael Mansour

@micoots

User Stats

Favorites0

Views

Projects0

No Projects Found
check_squid_ng

Script works but not without modification for proxy authentication

Using the latest squid with CentOS 7.3.1611. Squid is configured to only allow proxy authenticated users to access it, which includes squidclient. The Nagios plugin script defines the call to squidclient as: @exec = ("-h", "Q$host", "-p", "Q$port", "-U", "Q$user", "-W", "Q$password", "mgr:info"); which is incorrect, since the -U and -W must be -u and -w for squidclient. So modifying to: @exec = ("-h", "Q$host", "-p", "Q$port", "-u", "Q$user", "-w", "Q$password", "mgr:info"); makes the script work. Note that the error output of: Use of uninitialized value in sprintf at /usr/share/perl5/vendor_perl/Nagios/Plugin/Performance.pm line 68. is only there because the script doesn't check whether it has access to the cache manager, so when it's blocked outputs that error. When it has access to the cache manage (when the proxy auth works) then the output will be properly returned. What this means, is if you are getting the error above, YOU ARE NOT authenticating successfully to the Squid proxy server. You can check this with a squidclient command of: squidclient -h 10.2.40.78 -p 3128 -u someuser -w somepasword mgr:info which will confirm whether you have access or not (change someuser and somepassword to whatever you have for the proxy auth). If the above squidclient command works for you and you don't get an "access denied" output, then the modification of the one line above will also work for you with the output being like: SQUID_NG OK - Squid have 2 clients and 0 ICP requests queued | 'HTTP requests'=3c;; 'sent ICP requests'=0c;; 'received ICP requests'=0c;;

Reviewed 8 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks