LinuxQuestions.org
Visit Jeremy's Blog.
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 09-04-2013, 07:43 PM   #1
isourabh.wadhwa
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Rep: Reputation: 0
get rid of NAGIOS logs


Hi,

in my enviroment we get nagios logs reported. these are like this:

Code:
Sep  4 16:38:36 nxsdxq03 xinetd[20227]: START: nrpe pid=9420 from=10.40.111.152
Sep  4 16:38:36 nxsdxq03 nrpe[9420]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Sep  4 16:38:36 nxsdxq03 xinetd[20227]: EXIT: nrpe status=0 pid=9420 duration=0( sec)
Sep  4 16:44:46 nxinfp04 nrpe[13077]: Unknown option specified in config file '/usr/local/nagios/etc/nrpe.cfg' - Line 222
We want to get rid of INFO, START and EXIT logs.

for START and EXIT logs I know I can do one of these things:

• Add the line “log_on_success = “ in /etc/xinetd.d/nrpe file
• Commenting “log_on_success = PID HOST DURATION EXIT” line in /etc/xinetd.conf file.


for INFO logs I am not sure what we can do and really want your help.


I dont want any INFO, START or EXIT log in my messages file but I want all other nrpe logs.

I know about adding "use_syslog=0” in “/usr/local/nagios/etc/nrpe.cfg” file. but that would stop all the nrpe logs.

any way to just stop the INFO logs???
 
Old 09-09-2013, 01:04 AM   #2
isourabh.wadhwa
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
hey guys,

I guess i found a solution for my problem ..

:msg$, contains, "<string you dont want to see>" ~

You do have to take care of its placement in /etc/rsyslog.conf.

but the problem is i dont have rsyslog configured in my enviroment. is there something like this in syslog.conf ??
 
  


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
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios :: Forbidden You dont have a permission to access /nagios/cgi-bin/ bala.linuxtech Linux - Software 4 07-07-2013 03:19 AM
nagios not working (http://localhost/nagios or http://ip/nagios) 404 error connect2janu Linux - Server 1 11-18-2012 02:06 AM
LXer: April Nagios Training Dates Include Advanced Nagios Class LXer Syndicated Linux News 0 03-18-2011 09:30 AM
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

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

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

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