Get rid of NAGIOS logs

Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Get rid of NAGIOS logs
# 1  
Old 09-04-2013
Get rid of NAGIOS logs


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

Sep  4 16:38:36 nxsdxq03 xinetd[20227]: START: nrpe pid=9420 from=
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???

Moderator's Comments:
Mod Comment edit by bakunin: this is rather an application issue. Transferring the thread to the respective forum.

Last edited by bakunin; 09-05-2013 at 12:34 AM..
# 2  
Old 09-09-2013
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 ??

@bakunin: its more syslog issue than am application issue, please move it back to original thread if possible or to linux newbies.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If I ran perl script again,old logs should move with today date and new logs should generate.

Appreciate help for the below issue. Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt.............. 1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies

2. Infrastructure Monitoring

Nagios check dependent on second nagios server

We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side. I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies

3. Infrastructure Monitoring

Checking nagios logs

Hi Nigios Gurus Just a silly question, is there any way that we can see on nagios who's login credential initiated some disable/enable service check? (1 Reply)
Discussion started by: javbegginer
1 Replies

4. Shell Programming and Scripting

Getting rid of ^M

I have a text file with hundreds of 32-character hash codes in it, each terminated with a linefeed (/l, or ^M). 185ead08e45a5cbb51e9f7b0b384aaa2 57643e1a17252a9fc746d49c3da04168 60cba11d09221d52aaabb5db30f408a2 2b75ee6e5c2efc31b4ee9a190d09a4df ...... etc. I want to create a file for each... (6 Replies)
Discussion started by: teledon
6 Replies

5. Linux

How to get rid of ^m

Hi all, I am new to unix....pls help me with this. I have a binary file generating output by passing arguments in bash.when i open the output file in VI i can see that ^m is included in between most of lines,as a result when i pass this file to my java application it dosent parse the data... (3 Replies)
Discussion started by: asheshrocky
3 Replies

6. UNIX for Dummies Questions & Answers

How to get rid of ^[[D

Hi All, Im selecting a large record from a table and putting it in a file in the unix box. The file has a hidden character "^[[D " present in it. Can any one help me in getting rid of the character Thanks in advance, (4 Replies)
Discussion started by: madhan@29
4 Replies

7. UNIX for Dummies Questions & Answers

how to get rid of ==>

ok the assignment question: That English paper you were writing on the works of Lewis Carroll is due in a few hours and you have forgeotten the name of the text file in which you has written a number of quotations to use in your paper. Luckily, you know that the file is somewhere in your... (1 Reply)
Discussion started by: mek86
1 Replies

8. Shell Programming and Scripting

Grep yesterday logs from weblogic logs

Hi, I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows: """"""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies

9. Shell Programming and Scripting

How to get rid of last line

I have to process a data file in Ab Initio. This data file is pipe delimited. BUt the file may have a Disclaimer line at the end. So before picking it for processing, I need to check if this line is there I need to remove it. ANy suggestions. Thanks Shalu (1 Reply)
Discussion started by: shalua
1 Replies

10. Solaris

getting rid of ^H

Hello everybody I have a very annoying problem on my Solaris (Unix in general) servers. When I open a shell and press the backspace button, it results in a ^H character being printed on screen. I can resolve it by typing stty erase <backspace>, but does anyone know how I can prevent the... (3 Replies)
Discussion started by: soliberus
3 Replies
Login or Register to Ask a Question