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
nagios3stats(8) 						      nagios							   nagios3stats(8)

NAME
nagios3stats - report statistics information from the nagios system SYNOPSIS
nagios3stats [-hVL] [-c config] [-m] [-d] DESCRIPTION
nagios3stats Is a program designed to provide information on the running nagios system. It can provide a brief summary of information, or it can be used to export specific information about the nagios system into an MRTG-compatible format. For more information please consult the nagios online documentation available at http://www.nagios.org or the documentation available with your nagios server's web page. OPTIONS
-c|--config=FILE The main configuration file. On debian systems this defaults to /etc/nagios3/nagios.cfg -m|--mrtg Print output in MRTG-compatible format. For more details run nagios3stats with --help -d|--data=VARS Comma-seperated list of variables to output in MRTG format. For more details run nagios3stats with --help. -h|--help A helpful usage message -V|--version Print version information -L|--license Print license details FILES
/etc/nagios3 Default configuration directory for nagios3 AUTHOR
nagios3 is written and maintained by Ethan Galstad <nagios@nagios.org>. This manual page was written by sean finney <seanius@debian.org> for the Debian GNU/Linux operating system (but it may be freely used, modified, and redistributed by others). sean finney February 2006 nagios3stats(8)
All times are GMT -4. The time now is 03:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy