Re: [Nagios-devel] Nagios Statistics

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Nagios Statistics

Post by Guest »

> This information comes from the log files, not the database (nagios.log
> and the archives). You would need to remove every log entry for the host
> in question. It could probably be done fairly easily with a perl or sed
> script but there's no built in facility in nagios.
>
> If you changed the name of the host that would have the same effect.

Then what are the database entries time_ok, time_warning, time_critical,
and time_unknown for exactly? Are they regularly calculated from the logs
or something? (or on startup?) I write a lot of external interfaces to
nagios's database, which access mysql directly. I pulled those fields
from there. They seem to be nice and accurate. ;) But they are accurate
since the "dawn of time" for that host. I was under the impression that
those servicestatus table entries (time_ok, etc) were kept up separately
from the logs.

Daniel

>
>
>
> --
> Marc
>
> -----Original Message-----
> >From: Daniel Henninger
> To: [email protected]
> Sent: Thu Dec 04 08:22:55 2003
> Subject: [Nagios-devel] Nagios Statistics
>
> Folk,
>
> I hope I'm not overlooking something in the documentation, but are there
> any plans to enable a "reset statistics" command? By this I mean, the
> time_ok, time_warning, time_critical, and time_unknown values in the
> database. In some cases, it would be very helpful to be able to easily
> reset those values to 0. (for instance, if we've had a problem host that
> was down 50% of the time, and just replaced it.. it might be nice to be
> able to reset the stats at that point to get a real feel for the uptime of
> the new host) I didn't see anything in the docs for this. I highly doubt
> Nagios would be pleased with me if I just up and replaced the value out
> >from under it in MySQL. (or maybe it would I don't know) If there isn't
> functionality for this, I might be able to spend some time to add it if
> there's any desire for this besides me. ;) (i'd like to be able to
> trigger the reset via external commands)
>
> Daniel
>
> --
> /\\\----------------------------------------------------------------------///\
> \ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// /
> \_\\\ North Carolina State University - Systems Programmer ///_/
> \\\ Information Technology ///
> """--------------------------------------------------------------"""
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
>

--
/\\\----------------------------------------------------------------------///\
\ \\\ Daniel Henninger http://www.vorpalcloud.org/ /// /
\_\\\ North Carolina State University - Systems Programmer ///_/
\\\ Information Technology ///
"""--------------------------------------------------------------"""





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked