pnp4nagios icon indicating copy to clipboard operation
pnp4nagios copied to clipboard

added template helper stack_outline.php

Open georgehansper opened this issue 10 years ago • 0 comments

The file stack_outline.php is a template helper.

It makes it very easy to combine multiple Data Sources into a single graph, either stacked or not. Templates can be reduced to 2 lines of php, like this:

$opt[1] = "--vertical-label "bytes" --title "Disk usage for $hostname" -l 0 "; require('stack_outline.php');

The above example is included in the comments.

I can provide further, more sophisticated usage examples.

georgehansper avatar Feb 20 '15 00:02 georgehansper