Skip to content

neingeist/run-nagios-passive-check-and-submit

Repository files navigation

Run a Nagios passive check and submit its result via the Nagios CGI. Use with cron.

Examples:

run-nagios-passive-check-and-submit myhost "My fancy service" /usr/lib/nagios/plugins/check_dummy 1
run-nagios-passive-check-and-submit --host myhost /usr/bin/echo OK

Requires Python >= 2.7

Build Status

Screenhot of a few runs

Configuration

You need credentials for the Nagios web interface to submit the check results via the Nagios CGI. Put those in a configuration file:

~/.config/run-nagios-passive-check-and-submit.yaml:

---
nagios_url:  https://nagios.example.com/cgi-bin/nagios3/cmd.cgi
nagios_user: myuser
nagios_pass: VeRySeCuRe
ca_bundle:   /etc/ssl/certs/ca-bundle.crt

About

Run a Nagios passive check and submit its result via the Nagios CGI

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages