To set up Nagios on Linux, follow these steps.
Download the
nagios2jsonplugin.Build and install as described in the documentation:
Run
make.Rename the built binary to 'nagios2json.cgi' (this step may not be needed).
Copy the built binary to the Nagios "cgi-bin" folder (for example,
/usr/lib/nagios/cgi-bin).
Streaming Configuration
Follow the instructions in the TNT4J-Streams documentation.
Edit the
tnt-data-source.xmlparser configuration file and update your Nagios server IP (URL), username, and password, and thenagios2jsonparameters (e.g.,servicestatustypes=31).
<step name="Step 1"
url="http://[YOUR_NAGIOS_SERVER_IP]/nagios/cgi-bin/nagios2json.cgi?servicestatustypes=31"
method="GET"
username="myNagiosUserName"
password="myNagiosUserSecretPassword">
<schedule-cron expression="0/15 * * * * ? *" />
</step>
- If needed, change the field mappings for the reported data to suit your needs.
Sample Report Data
Sample report data is available in the report.json file.