org.blue.cgi
Class summary

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.blue.cgi.blue_servlet
              extended by org.blue.cgi.summary
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class summary
extends blue_servlet

See Also:
Serialized Form

Nested Class Summary
static class summary.alert_producer
           
static class summary.archived_event
           
 
Field Summary
static int AE_HARD_STATE
           
static int AE_HOST_ALERT
           
static int AE_HOST_DOWN
           
static int AE_HOST_PRODUCER
           
static int AE_HOST_UNREACHABLE
           
static int AE_HOST_UP
           
static int AE_SERVICE_ALERT
           
static int AE_SERVICE_CRITICAL
           
static int AE_SERVICE_OK
           
static int AE_SERVICE_PRODUCER
           
static int AE_SERVICE_UNKNOWN
           
static int AE_SERVICE_WARNING
           
static int AE_SOFT_STATE
           
static int alert_types
           
static int compute_time_from_parts
           
static int CSV_OUTPUT
           
static cgiauth_h.authdata current_authdata
           
static int display_header
           
static int display_type
           
static int earliest_archive
           
static int embedded
           
static int end_day
           
static int end_hour
           
static int end_minute
           
static int end_month
           
static int end_second
           
static int end_year
           
static java.util.ArrayList<summary.archived_event> event_list
           
static int generate_report
           
static int host_states
           
static int HTML_OUTPUT
           
static int item_limit
           
static int output_format
           
static java.util.ArrayList<summary.alert_producer> producer_list
           
static int REPORT_ALERT_TOTALS
           
static int REPORT_HOST_ALERT_TOTALS
           
static int REPORT_HOSTGROUP_ALERT_TOTALS
           
static int REPORT_NONE
           
static int REPORT_RECENT_ALERTS
           
static int REPORT_SERVICE_ALERT_TOTALS
           
static int REPORT_SERVICEGROUP_ALERT_TOTALS
           
static int REPORT_TOP_ALERTS
           
static int service_states
           
static int show_all_hostgroups
           
static int show_all_hosts
           
static int show_all_servicegroups
           
static int SREPORT_NONE
           
static int SREPORT_RECENT_ALERTS
           
static int SREPORT_RECENT_HOST_ALERTS
           
static int SREPORT_RECENT_SERVICE_ALERTS
           
static int SREPORT_TOP_HOST_ALERTS
           
static int SREPORT_TOP_SERVICE_ALERTS
           
static int standard_report
           
static int start_day
           
static int start_hour
           
static int start_minute
           
static int start_month
           
static int start_second
           
static int start_year
           
static int state_types
           
static long t1
           
static long t2
           
static objects_h.host target_host
           
static java.lang.String target_host_name
           
static objects_h.hostgroup target_hostgroup
           
static java.lang.String target_hostgroup_name
           
static objects_h.servicegroup target_servicegroup
           
static java.lang.String target_servicegroup_name
           
static int TIMEPERIOD_CUSTOM
           
static int TIMEPERIOD_LAST24HOURS
           
static int TIMEPERIOD_LAST31DAYS
           
static int TIMEPERIOD_LAST7DAYS
           
static int TIMEPERIOD_LASTMONTH
           
static int TIMEPERIOD_LASTQUARTER
           
static int TIMEPERIOD_LASTWEEK
           
static int TIMEPERIOD_LASTYEAR
           
static int TIMEPERIOD_THISMONTH
           
static int TIMEPERIOD_THISQUARTER
           
static int TIMEPERIOD_THISWEEK
           
static int TIMEPERIOD_THISYEAR
           
static int TIMEPERIOD_TODAY
           
static int timeperiod_type
           
static int TIMEPERIOD_YESTERDAY
           
static int total_items
           
 
Fields inherited from class org.blue.cgi.blue_servlet
request_string
 
Constructor Summary
summary()
           
 
Method Summary
static void add_archived_event(int event_type, long time_stamp, int entry_type, int state_type, java.lang.String host_name, java.lang.String svc_description, java.lang.String event_info)
           
static summary.alert_producer add_producer(int producer_type, java.lang.String host_name, java.lang.String service_description)
           
 void call_main()
           
static void compute_report_times()
           
static void convert_timeperiod_to_times(int type)
           
static void determine_standard_report_options()
           
static void display_alert_totals()
           
static void display_host_alert_totals()
           
static void display_hostgroup_alert_totals()
           
static void display_recent_alerts()
           
static void display_report()
           
static void display_service_alert_totals()
           
static void display_servicegroup_alert_totals()
           
static void display_specific_host_alert_totals(objects_h.host hst)
           
static void display_specific_hostgroup_alert_totals(objects_h.hostgroup grp)
           
static void display_specific_service_alert_totals(objects_h.service svc)
           
static void display_specific_servicegroup_alert_totals(objects_h.servicegroup grp)
           
static void display_top_alerts()
           
static void document_footer()
           
static void document_header(int use_stylesheet)
           
static summary.alert_producer find_producer(int type, java.lang.String hname, java.lang.String sdesc)
           
static void free_event_list()
           
static void free_producer_list()
           
static void main(java.lang.String[] args)
           
static int process_cgivars()
           
static void read_archived_event_data()
           
static void scan_log_file_for_archived_event_data(java.lang.String filename)
           
 
Methods inherited from class org.blue.cgi.blue_servlet
doGet, doPost, init
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML_OUTPUT

public static final int HTML_OUTPUT
See Also:
Constant Field Values

CSV_OUTPUT

public static final int CSV_OUTPUT
See Also:
Constant Field Values

REPORT_NONE

public static final int REPORT_NONE
See Also:
Constant Field Values

REPORT_RECENT_ALERTS

public static final int REPORT_RECENT_ALERTS
See Also:
Constant Field Values

REPORT_ALERT_TOTALS

public static final int REPORT_ALERT_TOTALS
See Also:
Constant Field Values

REPORT_TOP_ALERTS

public static final int REPORT_TOP_ALERTS
See Also:
Constant Field Values

REPORT_HOSTGROUP_ALERT_TOTALS

public static final int REPORT_HOSTGROUP_ALERT_TOTALS
See Also:
Constant Field Values

REPORT_HOST_ALERT_TOTALS

public static final int REPORT_HOST_ALERT_TOTALS
See Also:
Constant Field Values

REPORT_SERVICE_ALERT_TOTALS

public static final int REPORT_SERVICE_ALERT_TOTALS
See Also:
Constant Field Values

REPORT_SERVICEGROUP_ALERT_TOTALS

public static final int REPORT_SERVICEGROUP_ALERT_TOTALS
See Also:
Constant Field Values

SREPORT_NONE

public static final int SREPORT_NONE
See Also:
Constant Field Values

SREPORT_RECENT_ALERTS

public static final int SREPORT_RECENT_ALERTS
See Also:
Constant Field Values

SREPORT_RECENT_HOST_ALERTS

public static final int SREPORT_RECENT_HOST_ALERTS
See Also:
Constant Field Values

SREPORT_RECENT_SERVICE_ALERTS

public static final int SREPORT_RECENT_SERVICE_ALERTS
See Also:
Constant Field Values

SREPORT_TOP_HOST_ALERTS

public static final int SREPORT_TOP_HOST_ALERTS
See Also:
Constant Field Values

SREPORT_TOP_SERVICE_ALERTS

public static final int SREPORT_TOP_SERVICE_ALERTS
See Also:
Constant Field Values

TIMEPERIOD_CUSTOM

public static final int TIMEPERIOD_CUSTOM
See Also:
Constant Field Values

TIMEPERIOD_TODAY

public static final int TIMEPERIOD_TODAY
See Also:
Constant Field Values

TIMEPERIOD_YESTERDAY

public static final int TIMEPERIOD_YESTERDAY
See Also:
Constant Field Values

TIMEPERIOD_THISWEEK

public static final int TIMEPERIOD_THISWEEK
See Also:
Constant Field Values

TIMEPERIOD_LASTWEEK

public static final int TIMEPERIOD_LASTWEEK
See Also:
Constant Field Values

TIMEPERIOD_THISMONTH

public static final int TIMEPERIOD_THISMONTH
See Also:
Constant Field Values

TIMEPERIOD_LASTMONTH

public static final int TIMEPERIOD_LASTMONTH
See Also:
Constant Field Values

TIMEPERIOD_THISQUARTER

public static final int TIMEPERIOD_THISQUARTER
See Also:
Constant Field Values

TIMEPERIOD_LASTQUARTER

public static final int TIMEPERIOD_LASTQUARTER
See Also:
Constant Field Values

TIMEPERIOD_THISYEAR

public static final int TIMEPERIOD_THISYEAR
See Also:
Constant Field Values

TIMEPERIOD_LASTYEAR

public static final int TIMEPERIOD_LASTYEAR
See Also:
Constant Field Values

TIMEPERIOD_LAST24HOURS

public static final int TIMEPERIOD_LAST24HOURS
See Also:
Constant Field Values

TIMEPERIOD_LAST7DAYS

public static final int TIMEPERIOD_LAST7DAYS
See Also:
Constant Field Values

TIMEPERIOD_LAST31DAYS

public static final int TIMEPERIOD_LAST31DAYS
See Also:
Constant Field Values

AE_SOFT_STATE

public static final int AE_SOFT_STATE
See Also:
Constant Field Values

AE_HARD_STATE

public static final int AE_HARD_STATE
See Also:
Constant Field Values

AE_HOST_ALERT

public static final int AE_HOST_ALERT
See Also:
Constant Field Values

AE_SERVICE_ALERT

public static final int AE_SERVICE_ALERT
See Also:
Constant Field Values

AE_HOST_PRODUCER

public static final int AE_HOST_PRODUCER
See Also:
Constant Field Values

AE_SERVICE_PRODUCER

public static final int AE_SERVICE_PRODUCER
See Also:
Constant Field Values

AE_HOST_DOWN

public static final int AE_HOST_DOWN
See Also:
Constant Field Values

AE_HOST_UNREACHABLE

public static final int AE_HOST_UNREACHABLE
See Also:
Constant Field Values

AE_HOST_UP

public static final int AE_HOST_UP
See Also:
Constant Field Values

AE_SERVICE_WARNING

public static final int AE_SERVICE_WARNING
See Also:
Constant Field Values

AE_SERVICE_UNKNOWN

public static final int AE_SERVICE_UNKNOWN
See Also:
Constant Field Values

AE_SERVICE_CRITICAL

public static final int AE_SERVICE_CRITICAL
See Also:
Constant Field Values

AE_SERVICE_OK

public static final int AE_SERVICE_OK
See Also:
Constant Field Values

event_list

public static java.util.ArrayList<summary.archived_event> event_list

producer_list

public static java.util.ArrayList<summary.alert_producer> producer_list

current_authdata

public static cgiauth_h.authdata current_authdata

t1

public static long t1

t2

public static long t2

start_second

public static int start_second

start_minute

public static int start_minute

start_hour

public static int start_hour

start_day

public static int start_day

start_month

public static int start_month

start_year

public static int start_year

end_second

public static int end_second

end_minute

public static int end_minute

end_hour

public static int end_hour

end_day

public static int end_day

end_month

public static int end_month

end_year

public static int end_year

compute_time_from_parts

public static int compute_time_from_parts

timeperiod_type

public static int timeperiod_type

state_types

public static int state_types

alert_types

public static int alert_types

host_states

public static int host_states

service_states

public static int service_states

show_all_hostgroups

public static int show_all_hostgroups

show_all_servicegroups

public static int show_all_servicegroups

show_all_hosts

public static int show_all_hosts

target_hostgroup_name

public static java.lang.String target_hostgroup_name

target_servicegroup_name

public static java.lang.String target_servicegroup_name

target_host_name

public static java.lang.String target_host_name

target_hostgroup

public static objects_h.hostgroup target_hostgroup

target_servicegroup

public static objects_h.servicegroup target_servicegroup

target_host

public static objects_h.host target_host

earliest_archive

public static int earliest_archive

item_limit

public static int item_limit

total_items

public static int total_items

embedded

public static int embedded

display_header

public static int display_header

output_format

public static int output_format

display_type

public static int display_type

standard_report

public static int standard_report

generate_report

public static int generate_report
Constructor Detail

summary

public summary()
Method Detail

call_main

public void call_main()
Specified by:
call_main in class blue_servlet

main

public static void main(java.lang.String[] args)

document_header

public static void document_header(int use_stylesheet)

document_footer

public static void document_footer()

process_cgivars

public static int process_cgivars()

read_archived_event_data

public static void read_archived_event_data()

scan_log_file_for_archived_event_data

public static void scan_log_file_for_archived_event_data(java.lang.String filename)

convert_timeperiod_to_times

public static void convert_timeperiod_to_times(int type)

compute_report_times

public static void compute_report_times()

free_event_list

public static void free_event_list()

add_archived_event

public static void add_archived_event(int event_type,
                                      long time_stamp,
                                      int entry_type,
                                      int state_type,
                                      java.lang.String host_name,
                                      java.lang.String svc_description,
                                      java.lang.String event_info)

determine_standard_report_options

public static void determine_standard_report_options()

display_report

public static void display_report()

display_recent_alerts

public static void display_recent_alerts()

display_alert_totals

public static void display_alert_totals()

display_hostgroup_alert_totals

public static void display_hostgroup_alert_totals()

display_specific_hostgroup_alert_totals

public static void display_specific_hostgroup_alert_totals(objects_h.hostgroup grp)

display_host_alert_totals

public static void display_host_alert_totals()

display_specific_host_alert_totals

public static void display_specific_host_alert_totals(objects_h.host hst)

display_servicegroup_alert_totals

public static void display_servicegroup_alert_totals()

display_specific_servicegroup_alert_totals

public static void display_specific_servicegroup_alert_totals(objects_h.servicegroup grp)

display_service_alert_totals

public static void display_service_alert_totals()

display_specific_service_alert_totals

public static void display_specific_service_alert_totals(objects_h.service svc)

find_producer

public static summary.alert_producer find_producer(int type,
                                                   java.lang.String hname,
                                                   java.lang.String sdesc)

add_producer

public static summary.alert_producer add_producer(int producer_type,
                                                  java.lang.String host_name,
                                                  java.lang.String service_description)

free_producer_list

public static void free_producer_list()

display_top_alerts

public static void display_top_alerts()