Special thanks to Peter Szegedi, who helped me in connection with Nagios and NSCA configuration.
Nagios Alerting Plugin 3.0
Balázs Bakai (firstname.lastname@example.org)
3.0 - 2016.12.20
- remove not alphanumeric characters from the incident rule name
- add description using this plugin with RedHat7/Centos7 - xinetd based nsca support
- Nagios core, Nagios XI and OP5 support is tested with dynaTrace 6.3
2.0 - 2015.03.26
- Easier configuration
- The additional helper scripts are removed thanks to jsendnsca
- Supports local and remote Nagios server
- Timeouts added as parameter
1.0 - 2014.06.26
- Send "ok" notification to Nagios when the incident ends
- Use dynaTrace client to install (Settings/dynaTrace Servers/Plugins/Install Plugin) the attached plugin binary jar file and activate the plugin
- Click on the properties button and setup the NSCSA and Nagios related parameters of the plugin. (TRIPLE_DES NSCA Encryption is suggested)
- If you need more information select the FINE log level else the INFO log level. Logs are available at System Information/dynaTrace Server/Support Information/Log Files
- Add the Nagios Action Plugin of each of the incident rule you want to generate Nagios alerts for. (System Profile/Incidents/select an Incident Rule/Edit/Advanced Configuration/add/Nagios Alerting)
- Important to set up the execution list to: on incident begin and end, so dynaTrace can informs Nagios when an incident starts and finishes.
- The value of the Action Severity will be sent to the Nagios Server when the inident begins.
- dynaTrace Servere => Nagios Critical
- dynaTrace Warning => Nagios Warning
- dynaTrace Informational => Nagios OK
- The value of the Incident Severity will be shown on the dynaTrace Incident dashlet
- You can deviate from the default parameters pressing the edit button, however, TRIPLE_DES encryption is suggested to use.
RedHat7 (Centos7) xinetd - nsca support
- You have to define the IP address of the dynaTrace server at the only_from part of the /etc/xinetd.d/nsca configuration file.
- You have to comment out the server_address in the /usr/local/nsca/nsca.cfg file
Nagios Service/Host configuration
- On the Nagios side, you need to declare the host and the services which you will generate alerts for. The host is arbitrary as you will be able to configure it for each alert you will generate from dynaTrace. The service description on the other hand must match the name of the incident that will trigger the alert.