MRTG/RRD - callhelper

callhelper is a small C program. It makes it possible to install a mrtg config file as an executable script. This works by adding the line

#!/path/to/callhelper /path/to/14all.cgi
as the first line of the config file. The callhelper will then call 14all.cgi with the config file as argument.

If the argument to callhelper is not an absolute path the cgi will be looked up in the path ($PATH). If the argument is omitted a compiled in default value will be used. This default can be set by editing the C source before doing 'make'.

callhelper was introduced because you cannot use a script in a bang path like e.g.

(the unix kernel tries to execute the cgi directly which fails).