Sponsored Content
Full Discussion: Get rid of NAGIOS logs
Special Forums UNIX and Linux Applications Get rid of NAGIOS logs Post 302850453 by stunn3r on Wednesday 4th of September 2013 08:46:24 PM
Old 09-04-2013
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???

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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
GETBUILDLOG(1)                                                General Commands Manual                                               GETBUILDLOG(1)

NAME
getbuildlog - download build logs from Debian auto-builders SYNOPSIS
getbuildlog package [version-pattern] [architecture-pattern] DESCRIPTION
getbuildlog downloads build logs of package from Debian auto-builders. It downloads build logs of all versions and for all architectures if version-pattern and architecture-pattern are not specified or empty, otherwise only build logs whose versions match version-pattern and build logs whose architectures match architecture-pattern will be downloaded. The version and architecture patterns are interpreted as extended regular expressions as described in grep(1). If version-pattern is "last" then only the logs for the most recent version of package found on buildd.debian.org will be downloaded. If version-pattern is "last-all" then the logs for the most recent version found on each build log index will be downloaded. OPTIONS
-h, --help Show usage information and examples. -V, --version Show version and copyright information. EXAMPLES
getbuildlog hello 2.2-1 amd64 Download amd64 build log for hello version 2.2-1. getbuildlog glibc "" mips.* Download mips(el) build logs of all glibc versions. getbuildlog wesnoth .*bpo.* Download all build logs of backported wesnoth versions. AUTHOR
Written by Frank S. Thomas <fst@debian.org>. DEBIAN Debian Utilities GETBUILDLOG(1)
All times are GMT -4. The time now is 08:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy