Base class for PNP (graph) objects. More...
Public Member Functions | |
get_object_by_name ($name) | |
returns an object as identified by its nagios-name | |
can_user_delete ($obj_type) | |
Determine if a user is authorized to delete a specified object. | |
Static Public Member Functions | |
static | can_user_read ($obj_type, $id) |
Determine if a user is authorized to read from a specified object. | |
static | can_user_write ($obj_type, $id) |
Determine if a user is authorized to write to a specified object. | |
Data Fields | |
const | PERFDATA_DIR = "/opt/monitor/op5/pnp/perfdata/" |
Location of PNP perfdata. | |
Protected Member Functions | |
get_available_graphs () | |
Get all hosts and services that has graphs. | |
Static Protected Member Functions | |
static | objname_to_pnp ($obj) |
Given an object (host or service), perform seddery to return its name in the file system according to PNP. |
Base class for PNP (graph) objects.
pnp_class::get_available_graphs | ( | ) | [protected] |
Get all hosts and services that has graphs.
Uses livestatus, which is wrong, because livestatus reflects state, not config, but due to hostgroup services, using config would be even more wrong. Anyway, PNP won't have configured any graphs unless you've saved.
This can be expensive, so will cache.