Table of Contents

Name

process_perfdata - binary replacement for process_perfdata.pl

Synopsis

process_perfdata [-D dir] -b service-perfdata.ts

Description

This is a quick’n’dirty binary replacement of process_perfdata.pl (part of pnp4nagios). Currently it doesn’t touch the XML files for the GUI. It just reads a file with Nagios performancedata, parses it line by line and calls rrdupdate if the values of a line are valid and a rrd-file exists.
It does not check for errors and works like the shoot-and-forget principle.
The filepath given to rrdupdate is the relative path HOSTNAME/SERVICEDESC.rrd. To switch to a directory before calling rrdupdate you can use the ’-D’ option.

Return Value

The return value is 1 if file can’t be opened or mmapped. The return value is 2 if changedir failed on "-D" given dir. On success 0 is the result.

Author

Frank Bergmann, http://www.tuxad.com


Table of Contents