nagios-perfdata-0.2.2: Parse Nagios performance data.

Safe HaskellNone
LanguageHaskell2010

Data.Nagios.Perfdata.Template

Synopsis

Documentation

perfdataFromDefaultTemplate :: ByteString -> Either ParserError Perfdata Source

Extract perfdata from a Nagios perfdata item formatted according to the default template[0]. This is the format that is used in the perfdata spool files and consumed by pnp4nagios.

0
Default templates defined in the Nagios source (xdata/xpddefault.h). Service perfdata: "[SERVICEPERFDATA]t$TIMET$t$HOSTNAME$t$SERVICEDESC$t$SERVICEEXECUTIONTIME$t$SERVICELATENCY$t$SERVICEOUTPUT$t$SERVICEPERFDATA$" Host perfdata: "[HOSTPERFDATA]t$TIMET$t$HOSTNAME$t$HOSTEXECUTIONTIME$t$HOSTOUTPUT$t$HOSTPERFDATA$"