Hi List,

Let me add to this that you can use custom templates for your graphs in 
pnp4nagios.
http://docs.pnp4nagios.org/pnp-0.6/tpl
These are php files that construct a command line to rrdtool and that are given 
some parameters (from the pnp4nagios GUI).
You could create an „business_hours” CDEF where you construct the RPN notation 
in php with the timestamp values based on the time range that is to be 
displayed in the graph.
http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html
http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html
Something like:
CDEF:businesshours=TIME,1417676400,GT,1,0,IF,TIME,1417708800,LT,1,0,IF,MAX,1,UNKN,IF
… should make the value 1 inside business hours and unknown outside.
Then you use this CDEF to ignore the areas outside of your business hours.

HTH,
Michael Van Wesenbeeck

On 04 Dec 2014, at 13:45, Dhawal Doshy <[email protected]> wrote:

> We do this for "Business Hours" graphs, but it is essentially taking a
> similar approach as Allen mentioned.
> 
> Either talk to the rrds directly via rrdtool OR generate JSON output
> via PNP, we use the latter option. Either ways, once you have raw
> data, remove the unwanted data points and re-generate the graphs via
> any graphing utility (we use highcharts I think)..

_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to