libnrdpd.nrdp

Funcitons for submitting results to the NRDP endpiont.

libnrdpd.nrdp.submit(cfg, task, send_host=False)[source]

Submit a completed task to nagios via nrdp.

This will submit the request to all servers in the servers config.

Parameters
  • cfg (libnrdpd.config.Config) – libnrdpd Config object

  • task (libnrdpd.task.Task) – Completed task that needs to be sent to the central nagios server.

  • send_host (bool) – If True send a host check result as well.

Raises

libnrdpd.error.NotComplete – Raised when an uncompleted task is passed in.