Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • 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



  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4399Themes and Skins13Add-ons753Documentation283Graphics 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
Other Tutorials And HOWTOs Nagios Setup on CentOS 5.3
0.0 (0)
79.3K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)Julien DESMAREST (6)Chad Columbus (4)Davide Lemma (4)deskwork_itunes142 (4)
See More
Newest Contributors
smolinux (1)juanfertor (1)zsoltaire (1)RavuAlHemio (1)sowoii (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Michael Mansour
MM

Michael Mansour

@micoots

User Stats

Member Since: December 28, 2017

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-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile