Big Sister
|
Public Member Functions | |
Public Class Methods | |
retval | new (scalar this) |
Public Object Methods | |
retval | start () |
retval | run () |
retval | DESTROY () |
retval | init () |
retval | check_rulefile () |
retval | check_state () |
retval | common_check (scalar type, scalar i, scalar queue, scalar alarm) |
retval | check_alarms () |
retval | event (scalar event) |
retval | set_to (scalar host, scalar item, scalar color, scalar text) |
retval | set_maint_mode () |
retval | load_state () |
retval | flush_state () |
retval | make_dirty () |
retval | print_alarms (scalar fh, scalar what, list alarms) |
retval | read_state () |
retval | page (scalar vars, scalar what) |
retval | raise (scalar host, scalar item, scalar old_state, scalar new_state, scalar text, scalar time) |
retval | alarm (scalar vars, scalar repeat) |
retval | ack (scalar vars) |
retval | clear_alarm (scalar i) |
retval | compile (scalar check, scalar vars) |
retval | match_rule (scalar rule, scalar host, scalar item, scalar addrs, scalar groups) |
retval | load_rules () |
retval | abort () |
Stop this status monitor. | |
retval | is_maintenance (scalar host, scalar check) |
Public Functions | |
retval | time_in_range (scalar start, scalar end) |
retval | time_at (scalar daytime, scalar infuture, scalar now) |
Public Member Functions inherited from Statusmon::Statusmon | |
new () | |
setarg (scalar name, scalar val) | |
getarg (scalar name) | |
register (list masks) | |
Register for a list of events. | |
event (hashref cmd) | |
Statusmon objects get their event() method invoked each time an event of one of the register() registered types is seen. | |
post_event (hashref cmd, hashref org_event) | |
Post an event and forward it to all interested parties. | |
add_feature_provider (scalar feature) | |
Register as a feature provider. | |
Statusmon::Statusmon | get_feature_provider (scalar feature) |
Get a Statusmon::Statusmon object that registered as a feature provider for a specific feature. | |
scalar | get_statustext (int code) |
Get the text associated with a status code. | |
int | get_statuscode (scalar text) |
For a given status text return the corresponding status code. | |
int | get_current_status (scalar check) |
Returns the status of a check. | |
scalar | get_current_text (scalar check) |
Returns the current text of a check. | |
list | get_checks (scalar group) |
Return a list of defined checks for a host or group. | |
list | get_hosts () |
Returns a list of known hosts/groups. | |
loopback (scalar cmd) | |
Post a raw message and treat it like it was received from bbd. | |
int | background () |
Start a background process. |
retval Statusmon::bs_evgen::abort | ( | ) |
Stop this status monitor.
This method is invoked by background() in order to signal the backgrounded process that it is not performing status monitoring any more.
Reimplemented from Statusmon::Statusmon.
retval Statusmon::bs_evgen::ack | ( | scalar | vars | ) |
retval Statusmon::bs_evgen::alarm | ( | scalar | vars, |
scalar | repeat | ||
) |
retval Statusmon::bs_evgen::check_alarms | ( | ) |
retval Statusmon::bs_evgen::check_rulefile | ( | ) |
retval Statusmon::bs_evgen::check_state | ( | ) |
retval Statusmon::bs_evgen::clear_alarm | ( | scalar | i | ) |
retval Statusmon::bs_evgen::common_check | ( | scalar | type, |
scalar | i, | ||
scalar | queue, | ||
scalar | alarm | ||
) |
retval Statusmon::bs_evgen::compile | ( | scalar | check, |
scalar | vars | ||
) |
retval Statusmon::bs_evgen::DESTROY | ( | ) |
retval Statusmon::bs_evgen::event | ( | scalar | event | ) |
retval Statusmon::bs_evgen::flush_state | ( | ) |
retval Statusmon::bs_evgen::init | ( | ) |
Reimplemented from Statusmon::Statusmon.
retval Statusmon::bs_evgen::is_maintenance | ( | scalar | host, |
scalar | check | ||
) |
retval Statusmon::bs_evgen::load_rules | ( | ) |
retval Statusmon::bs_evgen::load_state | ( | ) |
retval Statusmon::bs_evgen::make_dirty | ( | ) |
retval Statusmon::bs_evgen::match_rule | ( | scalar | rule, |
scalar | host, | ||
scalar | item, | ||
scalar | addrs, | ||
scalar | groups | ||
) |
retval Statusmon::bs_evgen::new | ( | scalar | this | ) |
retval Statusmon::bs_evgen::page | ( | scalar | vars, |
scalar | what | ||
) |
retval Statusmon::bs_evgen::print_alarms | ( | scalar | fh, |
scalar | what, | ||
list | alarms | ||
) |
retval Statusmon::bs_evgen::raise | ( | scalar | host, |
scalar | item, | ||
scalar | old_state, | ||
scalar | new_state, | ||
scalar | text, | ||
scalar | time | ||
) |
retval Statusmon::bs_evgen::read_state | ( | ) |
retval Statusmon::bs_evgen::run | ( | ) |
retval Statusmon::bs_evgen::set_maint_mode | ( | ) |
retval Statusmon::bs_evgen::set_to | ( | scalar | host, |
scalar | item, | ||
scalar | color, | ||
scalar | text | ||
) |
retval Statusmon::bs_evgen::start | ( | ) |
Reimplemented from Statusmon::Statusmon.
retval Statusmon::bs_evgen::time_at | ( | scalar | daytime, |
scalar | infuture, | ||
scalar | now | ||
) |
retval Statusmon::bs_evgen::time_in_range | ( | scalar | start, |
scalar | end | ||
) |