External commands and nagios.log
Keller, Mark D
Keller.Mark at con-way.com
Tue Jun 30 23:51:19 CEST 2009
Ah, thank you for that point. I guess I was misinterpreting the meaning of those options.
I did what you said and now the logs are looking to be way smaller. I also trimmed out the passive and external command check lines from my previous logs. The history reporting is working way faster now and is actually usable.
Thanks for the help!
Mark
-----Original Message-----
From: Marc Powell [mailto:marc at ena.com]
Sent: Tuesday, June 30, 2009 2:01 PM
To: Nagios Users Mail-list
Subject: Re: [Nagios-users] External commands and nagios.log
On Jun 30, 2009, at 3:17 PM, Keller, Mark D wrote:
> Just looking at yesterdays logs, I have 1,491,321 lines for external
> commands and about the same for passive checks. We have do about
> 5300 service checks every five minutes which comes out to around
> 1,500,000. So they seem to match. Unless I am missing something.
>
> Service checks by far dominant the log. We have a distributed server
> send all service checks passively to the front end. Then NSCA sends
> them through an external command. So for each service entry I get a
> log like the following:
>
> [1246345229] EXTERNAL COMMAND:
> PROCESS_SERVICE_CHECK_RESULT;myserver;Load;0;OK -
> [1246345230] PASSIVE SERVICE CHECK: myserver;Load;0;OK - load
> average: 0.19, 0.09, 0.08
These are the previously mentions passive service checks, not external
commands. Logging treats them differently even though the mechanism to
get both to nagios is the same.
> At this point I would just be happy to not log any of the external
> command entries. Still the log may be big, but much smaller.
>
> I can't seem to get any of the following options in nagios.cfg to
> make a difference. They all log no matter what they are set to:
> log_passive_checks
This is the one you want set to 0. Make sure that nagios is restarted
and that you only have one nagios daemon running. These are the
settings I use --
log_file=/usr/local/nagios/var/nagios.log
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
log_passive_checks=0
--
Marc
------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list