[Nagios-devel] Status Log Data and two small questions

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

[Nagios-devel] Status Log Data and two small questions

Post by Guest »

This is a multi-part message in MIME format.
--------------040207020106090100020200
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I've been working on a plugin where I need to know the exact structure
of the status.log file, as in what each ;-delimited value stands for.
So I went into the code and found out, and I figured it would be a good
reference to share with the list. It could come in very handy for
debugging, plugin development, custom CGI's, etc. So here is a list of
what the status.log actually means. I attached it as a text file and
printed it out at the bottom of the email. If I have the time to write
a Perl function that can easily grab data from a line of the status log
(like representing the line as a hash), I'll email that to the list as well.

I noticed two fields that I'm curious about. There is a
failure_prediction_enabled setting for hosts and services. Is this
something that was going to be created but hasn't yet and the hook for
the status log is there, or is there any failure prediction occurring?

Also, the field that says if something is in downtime is called the
scheduled_downtime_depth. Can this be something other than 0 or 1? How
is downtime depth determined?

Thanks, and here is the list of values:

-Russell

Host Lines:

[Time of last update] HOST;
Host Name (string);
Status (OK/DOWN/UNREACHABLE);
Last Check Time (long time);
Last State Change (long time);
Acknowledged (0/1);
Time Up (long time);
Time Down (long time);
Time Unreachable (long time);
Last Notification Time (long time);
Current Notification Number (#);
Notifications Enabled (0/1);
Event Handlers Enabled (0/1);
Checks Enabled (0/1);
Flap Detection Enabled (0/1);
Host is Flapping (0/1);
Percent State Change (###.##);
Scheduled downtime depth (# - 0/1 ???);
Failure Prediction Enabled (0/1);
Process Performance Data(0/1);
Plugin Output (string)

Service Lines:

[Time of last update] SERVICE;
Host Name (string);
Service Description (string);
Status (OK/WARNING/CRITICAL/UNKNOWN);
Retry number (#/#);
State Type (SOFT/HARD);
Last check time (long time);
Next check time (long time);
Check type (ACTIVE/PASSIVE);
Checks enabled (0/1);
Accept Passive Checks (0/1);
Event Handlers Enabled (0/1);
Last state change (long time);
Problem acknowledged (0/1);
Last Hard State (OK/WARNING/CRITICAL/UNKNOWN);
Time OK (long time);
Time Unknown (long time);
Time Warning (long time);
Time Critical (long time);
Last Notification Time (long time);
Current Notification Number (#);
Notifications Enabled (0/1);
Latency (#);
Execution Time (#);
Flap Detection Enabled (0/1);
Service is Flapping (0/1);
Percent State Change (###.##);
Scheduled Downtime Depth (# - 0/1 ???);
Failure Prediction Enabled (0/1 ???);
Process Performance Date (0/1);
Obsess Over Service (0/1);
Plugin Output (string)

Program line (second line of log):

[Current Time] PROGRAM;
Program Start Time (long time);
Nagios PID (#);
Daemon Mode (0/1);
Last Command Check (long time);
Last Log Rotation (long time);
Notifications Enabled (0/1);
Execute Service Checks (0/1);
Accept Passive Service Checks (0/1);
Enable Event Handlers (0/1);
Obsess Over Services (0/1);
Enable Flap Detection (0/1);
Enable Failure Prediction (0/1 ???);
Process Performance Data (0/1)

--
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038


--------------040207020106090100020200
Content-Type: text/plain;
name="logfields.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="logfields.txt"

Host Lines:

[Time of last update] HOST;
Host Name (string);
Status (OK/DOWN/UNREACHABLE);
Last Check Time (long time);
Last State Change (long time);
Acknowledged (0/1);
Time Up (long time);
Time Down (long time);
Time Unreachable (long time);
Last Notification Time (long time);
Current Notification Number (#);
Notifications Enabled (0/1);
Event Handlers Enabled (0/1);
Checks Enabled (0/1);
Flap Detection Enabled (0/1);
Host is Flapping (0/1);
Percent State Change (###.##);
Scheduled downtime depth (# - 0/1 ???);
Failure Predict

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: russell@quadrix.com
Locked