LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-01-2008, 01:08 AM   #1
creatorrr
Member
 
Registered: Nov 2007
Posts: 40

Rep: Reputation: 15
Monitor Squid with Nagios


Hi All,

Anyone knows any squid plugin for monitoring on Nagios that actually works on Centos?

Thank You
 
Old 05-01-2008, 03:35 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You could use nrpe and a check command to telnet to the squid port to see if its still listening.

If you want some thing more then anybody else is welcome to point you in the right direction
 
Old 05-01-2008, 11:15 PM   #3
creatorrr
Member
 
Registered: Nov 2007
Posts: 40

Original Poster
Rep: Reputation: 15
I am kind of a beginner so i really need more info please.
Thank You
 
Old 05-02-2008, 05:05 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by datopdog View Post
You could use nrpe and a check command to telnet to the squid port to see if its still listening.
Instead I would check connectivity with a command like 'check_http -I proxyIp -p proxyPort -u http://somesiteaddre.ss/' instead. If the cache doesn't return outside the URI (maybe add a regex to get certain result) then you know there's something functionally wrong, while checking the port only tells you if the service is listening.


Quote:
Originally Posted by creatorrr View Post
I am kind of a beginner so i really need more info please.
If Nagios is new for you then I strongly suggest reading the docs, backing up the default configs and experiment with testing default services. This should not be mistaken for a "RTFM"-type answer, it's just that the common first error newbies make is to not read the docs. They really are not that hard to get through, you need the knowledge to run it anyway and it makes it easier for you to ask specific questions.
 
Old 05-04-2008, 06:22 PM   #5
creatorrr
Member
 
Registered: Nov 2007
Posts: 40

Original Poster
Rep: Reputation: 15
OK, I guess i will neeed to put more effort in explaining the problem if i want to get satisfactory answer.
I am running nagios on CentOS and i am monitoring windows and linux server and netowrk devices with no problem. What i want to know is if anyone of you is monitoring Squid Proxy with Nagios. The plugin for monitoring Squid does not come as a default with the installation of Nagios thus i was looking for some "custom" made Squid plugins. I have found couple but unfortenatelly they happen to be OS specific on none of those appeared to work with Centos. For example, the error message i am getting is "Return code of 126 is out of bounds - plugin may be missing".

So again, my question is if anyone of you know for some Nagios plugin for monitoring squid that would work on Red Hat or CentOS.

Thank You
 
Old 07-04-2008, 10:04 AM   #6
Linfan100
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
Monitoring Squid with Nagios (2)...

Not sure if this is still an ongoing problem, but perhaps this solution might prove useful to someone.

Like a number of people I had problems getting the 'check_squid' plugin to work with my Squid proxy, since I had it listening on port 8080. I found a number of suggestions involving using 'check_http' to check whether the service was running, but this didn't work regardless what I did.

In the end I found a workaround; I edited the 'http.cfg' file located in the /etc/nagios-plugins/config folder, and commented out the 'check_squid' definition. I saved this and the opened the 'tcp_udp.cfg' file in the same location and added the following lines:

define command{
command_name check_squid
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p 8080 -4
}

This now means that the port 8080 is being checked directly to see if it's active instead of HTTP traffic being sent to the proxy. Certainly seems to have worked for me. In this instance, Nagios was running on a test Ubuntu system, but it should work just as well on Centos/Red Hat, assuming the plugin config directory is in the same location.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios plug-in to monitor apache velvel Linux - Newbie 3 05-23-2008 12:47 PM
Nagios to monitor apache shankarLe Linux - Software 8 04-29-2008 01:58 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 02:47 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 0 07-18-2006 08:33 PM


All times are GMT -5. The time now is 04:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration