Using The Icingastats Utility
Prev | Chapter 8. Security and Performance Tuning | Next

## Using The Icingastats Utility

Introduction

A utility called icingastats is included in the Icinga distribution. It is compiled and installed along with the main Icinga daemon. The icingastats utility allows you to obtain various information about a running Icinga process that can be very helpful in tuning performance. You can obtain information either in human-readable or MRTG-compatible format.

Usage Information

You can run the icingastats utility with the --help option to get usage information.

Human-Readable Output

To obtain human-readable information on the performance of a running Icinga process, run the icingastats utility with the -c command line argument to specify your main configuration file location like such:

    [icinga@lanman ~]# /usr/local/icinga/bin/icingastats -c /usr/local/icinga/etc/icinga.cfg

    Icinga Stats 1.4
    Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org)
    Last Modified: 05-20-2009
    License: GPL

    CURRENT STATUS DATA
    ------------------------------------------------------
    Status File:                            /usr/local/icinga/var/status.dat
    Status File Age:                        0d 0h 0m 9s
    Status File Version:                    (null)

    Program Running Time:                   0d 5h 20m 39s
    Icinga PID:                             10119
    Used/High/Total Command Buffers:        0 / 0 / 64
    Used/High/Total Check Result Buffers:   0 / 7 / 512

    Total Services:                         95
    Services Checked:                       94
    Services Scheduled:                     91
    Services Actively Checked:              94
    Services Passively Checked:             1
    Total Service State Change:             0.000 / 78.950 / 1.026 %
    Active Service Latency:                 0.000 / 4.272 / 0.561 sec
    Active Service Execution Time:          0.000 / 60.007 / 2.066 sec
    Active Service State Change:            0.000 / 78.950 / 1.037 %
    Active Services Last 1/5/15/60 min:     4 / 68 / 91 / 91
    Passive Service State Change:           0.000 / 0.000 / 0.000 %
    Passive Services Last 1/5/15/60 min:    0 / 0 / 0 / 0
    Services Ok/Warn/Unk/Crit:              58 / 16 / 0 / 21
    Services Flapping:                      1
    Services In Downtime:                   0

    Total Hosts:                            24
    Hosts Checked:                          24
    Hosts Scheduled:                        24
    Hosts Actively Checked:                 24
    Host Passively Checked:                 0
    Total Host State Change:                0.000 / 9.210 / 0.384 %
    Active Host Latency:                    0.000 / 0.446 / 0.219 sec
    Active Host Execution Time:             1.019 / 10.034 / 2.764 sec
    Active Host State Change:               0.000 / 9.210 / 0.384 %
    Active Hosts Last 1/5/15/60 min:        5 / 22 / 24 / 24
    Passive Host State Change:              0.000 / 0.000 / 0.000 %
    Passive Hosts Last 1/5/15/60 min:       0 / 0 / 0 / 0
    Hosts Up/Down/Unreach:                  18 / 4 / 2
    Hosts Flapping:                         0
    Hosts In Downtime:                      0

    Active Host Checks Last 1/5/15 min:     9 / 52 / 164
       Scheduled:                           4 / 23 / 75
       On-demand:                           3 / 23 / 69
       Cached:                              2 / 6 / 20
    Passive Host Checks Last 1/5/15 min:    0 / 0 / 0
    Active Service Checks Last 1/5/15 min:  9 / 80 / 244
       Scheduled:                           9 / 80 / 244
       On-demand:                           0 / 0 / 0
       Cached:                              0 / 0 / 0
    Passive Service Checks Last 1/5/15 min: 0 / 0 / 0

    External Commands Last 1/5/15 min:      0 / 0 / 0

    [icinga@lanman ~]#

As you can see, the utility displays a number of different metrics pertaining to the Icinga process. Metrics which have multiple values are (unless otherwise specified) min, max and average values for that particular metric.

MRTG Integration

You can use the icingastats utility to display various Icinga metrics using MRTG (or other compatible program). To do so, run the icingastats utility using the --mrtg and --data arguments. The --data argument is used to specify what statistics should be graphed. Possible values for the --data argument can be found by running the icingastats utility with the --help option.

| Note
Information on using the icingastats utility to generate MRTG graphs for Icinga performance statistics can be found here.

Prev | Up | Next
Large Installation Tweaks | Home | Graphing Performance Info With MRTG

© 2009-2011 Icinga Development Team, http://www.icinga.org