community.general.nrdp (2.5.9) — callback

post task result to a nagios server through nrdp

Authors: Remi VERCHERE (@rverchere)

Install collection

Install with ansible-galaxy collection install community.general:==2.5.9


Add to requirements.yml

  collections:
    - name: community.general
      version: 2.5.9

Description

this callback send playbook result to nagios

nagios shall use NRDP to recive passive events

the passive check is sent to a dedicated host/service for ansible

Inputs

    
url:
    description: url of the nrdp server
    env:
    - name: NRDP_URL
    ini:
    - key: url
      section: callback_nrdp
    required: true

token:
    description: token to be allowed to push nrdp events
    env:
    - name: NRDP_TOKEN
    ini:
    - key: token
      section: callback_nrdp
    required: true

hostname:
    description: hostname where the passive check is linked to
    env:
    - name: NRDP_HOSTNAME
    ini:
    - key: hostname
      section: callback_nrdp
    required: true

servicename:
    description: service where the passive check is linked to
    env:
    - name: NRDP_SERVICENAME
    ini:
    - key: servicename
      section: callback_nrdp
    required: true

validate_certs:
    aliases:
    - validate_nrdp_certs
    default: false
    description: (bool) validate the SSL certificate of the nrdp server. (For HTTPS url)
    env:
    - name: NRDP_VALIDATE_CERTS
    ini:
    - key: validate_nrdp_certs
      section: callback_nrdp
    - key: validate_certs
      section: callback_nrdp