See Also: Information on the CGIs
If you’re doing custom installs of Naemon for clients, you may want to have a custom header and/or footer displayed in the output of the CGIs. This is particularly useful for displaying support contact information, etc. to the end user.
It is important to note that, unless they are executable, custom header and footer files are not pre-processed in any way before they are displayed. The contents of the header and footer include files are simply read and displayed in the CGI output. That means they can only contain information a web browser can understand (HTML, JavaScript, etc.).
If the custom header and footer files are executable, then the files are executed and their output returned to the user, so they should output valid HTML. Using this you can run your own custom designed CGI to insert data into the naemon display. This has been used to insert graphs from rrdtool using ddraw and command menus into the naemon display pane. The executable customer header and footer files are run with the same CGI environment as the main naemon CGI, so your files can parse the query information, authenticated user information, etc. to produce appropriate output.
You can include custom headers and footers in the output of the CGIs by dropping some appropriately named HTML files in the ssi/ subdirectory of the Naemon HTML directory (i.e. /etc/naemon/ssi).
Custom headers are included immediately after the <BODY> tag in the CGI output, while custom footers are included immediately before the closing </BODY> tag.
There are two types of customer headers and footers:
You are not required to use any custom headers or footers. You can use only a global header if you wish. You can use only CGI-specific headers and a global footer if you wish. Whatever you want. Really.