SIDEBAR OPTIONS

Page tree

MicroSpunk LLC

Skip to end of metadata
Go to start of metadata

--------------------------------------------------------

Nagios(R) Report Card utility

Version: 7.6.78

Copyright (c) 2019 Timothy Ste. Marie, Microspunk LLC

--------------------------------------------------------

Usage: ./nagiosreportcard -p <path to Nagios log files> -b <Begin Date> -e <End Date>

       [--df <devicename filter> --sf <servicename filter>]

       [-a | -n] [-k | -l] [-r #] [-t #] [-u #] [-m <text filter>]


OPTIONS: Arguments that are used by Nagios Report Card Utility

   -b and -e MUST be supplied at a minimum.

   -p, if not supplied, will look in the following locations:

       /usr/lib/nagios/var/archives/

       /usr/local/nagios/var/archives/

   -r #, if not supplied, will SHOW ALL SUMMARY TOTALS and Alerts/Notifications.


   -h, --help    Show this help information. [optional]

   -d, --debug   Show debug output           [optional]

   -p, --path    Path to Nagios archive log files    [optional]

   -b            Begin Date for log files.

   -e            End Date for log files.


   The -a and -n parameters are mutually exclusive!

   -a            Show ALERTS Only            [optional]

   -n            Show NOTIFICATIONS Only     [optional]


   The -k and -l parameters are mutually exclusive!

   -k            Show Host items Only        [optional]

   -l            Show Service items Only     [optional]


   -t <integer>  Host Alert/Notification Filter    [optional]

      Bitwise integer for HOST Alert/Notification types

      Add the numbers together for the types of Alerts and Notifications to report upon.

      ***The DEFAULT is 34 if -t is not specified (ONLY show Critical Alerts/Notifications.

      ALERTS:

         0=SHOW ALL HOST ALERTS/NOTIFICATIONS

         1=Up

         2=Down

         4=Recovery

         8=Flapping

      NOTIFICATIONS:

         16=Up

         32=Down

         64=Unreachable


   -u <integer>  Service Alert/Notification Filter [optional]

      Bitwise integer for SERVICE Alert/Notification types.

      Add the numbers together for the types of Alerts and Notifications to report upon.

      ***The DEFAULT is 136 if -u is not specified (ONLY show Critical Alerts/Notifications.

      ALERTS:

         0=SHOW ALL SERVICE ALERTS/NOTIFICATIONS

         1=OK

         2=Warning

         4=Unknown

         8=Critical

         16=Flapping

      NOTIFICATIONS:

         32=Warning

         64=OK

         128=Critical


   -f            DeviceName Filter(case-insensitive text)  [optional]

   -s            ServiceName Filter(case-insensitive text) [optional]

                   ServiceName Filters will AUTOMATICALLY exclude all

                   Host Alerts and Host Notifications!


   -m            <Text to filter upon in the alert/notification>


   -r 0          Do NOT show Summary Totals.     Only show Alerts/Notifications.   [optional]

   -r 1          Only show Host Summary Totals.  DO NOT SHOW Alerts/Notifications. [optional]

   -r 2          Only show Date Summary Totals.  DO NOT SHOW Alerts/Notifications. [optional]

   -r 3          Only show Summary Totals.       DO NOT SHOW Alerts/Notifications. [optional]


Summary totals are output in the following format:

--------------------------------------------------

Host Summary

::HS:: Hostname, Host Alert Count, Host Notification Count, Service Alert Count, Service Notification Count, Total Issues


Date Summary

::DS:: Date Timestamp, Host Alert Count, Host Notification Count, Service Alert Count, Service Notification Count, Total Issues


Hour of Day Summary

::HOD:: Date Timestamp, Host Alert Count, Host Notification Count, Service Alert Count, Service Notification Count, Total Issues


Day of Week Summary

::DOW:: Date Timestamp, Host Alert Count, Host Notification Count, Service Alert Count, Service Notification Count, Total Issues


Week of Month Summary

::WOM:: Date Timestamp, Host Alert Count, Host Notification Count, Service Alert Count, Service Notification Count, Total Issues


  • No labels