This plugin allows dynaTrace to send alerts to a Nagios server using NSCA. Alerts can be posted locally or remotely to Nagios. This plugin based on the jsendnsca java library and tested with Nagios, OP5, Icinga.

 Special thanks to Peter Szegedi, who helped me in connection with Nagios and NSCA configuration.

Name

Nagios Alerting Plugin 3.0

Version

3.0.0 (2016.12.20)

dynaTrace Version

>= 6.0

Download

hu.bakaibalazs.dynatrace.nagios.NagiosAlerting_3.0.0.jar

Githubhttps://github.com/dynaTrace/Dynatrace-Nagios-Alerting-Plugin

License

LGPL v3

SupportNot Supported
Author

Balázs Bakai (balazs.bakai@telvice.hu)

www.bakaibalazs.hu

www.bakailab.hu

Telvice Kft.

Release Notes

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

Plugin installation

Incident Configuration

 

 

RedHat7 (Centos7) xinetd - nsca support

 

            #server_address=192.168.1.1

Nagios Service/Host configuration

# HOST DEFINITION
define host{ 

    use                            default-host-template 
    host_name                      dynaTrace_SystemProfileName 
    alias                          dynaTrace_SystemProfileName 
    address                        myfqdntodynatrace 
    stalking_options               n 
} 

# SERVICE TEMPLATE DEFINITION
# Template for the service : dynaTrace alerts from the command file

define service {
        name                       passive_checkservice
        use                        generic-service
        active_checks_enabled      0
        passive_checks_enabled     1
        normal_check_interval      1
        check_period               24x7
        check_interval             1
        retry_interval             1
        }

# SERVICE DEFINITION
# Define each dynaTrace alert that we want to be processed by Nagios

define service {
        use                        passive_checkservice
        host_name                  dynaTrace_SystemProfileName  ; MATCH THE HOST DEFINED EARLIER
        service_description        Warning: LastMinute Search   ; MATCH THE IINCIDENT NAME
        register                   1
        check_command              check_ping                   ; Not used  but mandatory command
}
 

Nagios Overview