pnp_class Class Reference

Base class for PNP (graph) objects. More...

Inheritance diagram for pnp_class:
object_class combined_graph_class graph_collection_class graph_template_class

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.

Detailed Description

Base class for PNP (graph) objects.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 6 May 2013 for nacoma by  doxygen 1.6.1