LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2012, 08:39 AM   #1
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 116

Rep: Reputation: 15
Squid service monitor with rsyslog


Hi All,

I have configured rsyslog server on one of the CentOS machines.

I am trying to monitor Squid service running on a Ubuntu box using this CentOS machine.

Can we edit the syslog to just send squid service failure alerts to a remote syslog server ?

I have googled around but did not find much.

Regards,
 
Old 01-23-2012, 08:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Sure, plenty of hits out there.... http://wiki.rsyslog.com/index.php/Fi...y_program_name will get your squid messages separate (although note you can probably use it's facility value directly, it's possibly unique within your system) and then sending it on is a doddle - http://rsyslog.com/storing-and-forwa...mote-messages/

Also note that from squid 2.7 squid can apparently directly send UDP syslog messages to the network, bypassing the system syslog completely if desired.
 
1 members found this post helpful.
Old 01-23-2012, 12:26 PM   #3
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 116

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the reply. I will Certainly try it out.

Eventually I am receiving the Squid alerts on the rsyslog server. But the thing is it is capturing every service. I wanted to filter that.

Majority of our Ubuntu boxes are being squid servers and not much other services are running on them, so If I can get all the messages that is in a way not too much.

And while i was going through the rsyslog, I came across a module ommail where it can send emails based on rules.

When I added that to the rsyslog.conf, it gave error. though the service started, the module didn't load.

This module ommail is to be separately installed?

If I can set up mail notification based on Squid service failures, then there is nothing like it!.

Thanks again for your reply.

Regards,
 
Old 01-24-2012, 12:40 PM   #4
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 116

Original Poster
Rep: Reputation: 15
This issue is solved.

I upgraded the CentOS, rsyslog4.6 version has ommail inbuit and it is working.

Regards,
 
  


Reply



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
[SOLVED] squid service fernfrancis Linux - Newbie 16 05-25-2010 12:08 AM
installing squid : service squid start --> error jonaskellens Linux - Software 2 09-05-2008 03:06 AM
Squid, Limited Service sarmadys Linux - Networking 4 11-06-2006 06:22 AM
Squid as a service jason.rohde Linux - Networking 1 08-22-2005 11:36 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration