pnp Class Reference

Help class for handling PNP related stuff such as checking if we should display a graph link or not. More...

Static Public Member Functions

static get_sources ($host=false, $service=false)
 Given a host and optionally a service, return all rrd sources.
static is_enabled ()
 Check if PNP is installed (enabled) on this machine.
static pnp_config ($key=false)
 Fetch PNP config options and stash in current session.
static clean ($string)
 Cleanses a string for use as a pnp object reference.
static url ($host, $service=false)
 Creates a pnp url for a host or service.

Detailed Description

Help class for handling PNP related stuff such as checking if we should display a graph link or not.


Member Function Documentation

static pnp::clean ( string  )  [static]

Cleanses a string for use as a pnp object reference.

Parameters:
$string The string to cleanse
Returns:
The mangled string
static pnp::get_sources ( host = false,
service = false 
) [static]

Given a host and optionally a service, return all rrd sources.

Parameters:
$host A host name
$service A service description
Returns:
An array of DS sources
static pnp::pnp_config ( key = false  )  [static]

Fetch PNP config options and stash in current session.

Returns the value of $key or entire config if no params

static pnp::url ( host,
service = false 
) [static]

Creates a pnp url for a host or service.

Parameters:
$host The host
$service The service
Returns:
A url usable from Ninja to get the desired pnp page

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

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1