Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Parent/Master check #208

Open
DerDanilo opened this issue Feb 12, 2018 · 0 comments
Open

Feature request: Parent/Master check #208

DerDanilo opened this issue Feb 12, 2018 · 0 comments

Comments

@DerDanilo
Copy link

DerDanilo commented Feb 12, 2018

Currently one receives several alerts for checks on a node even if (by logic) the other service are not reachable if the host itself is not reachable. It should be possible to define a parent/master check, that if this one goes "down" does not trigger alerts for related other checks that cannot be checked by logic.

Example:

4 Alerts triggered

"/usr/lib/nagios/plugins/check_host host.mydomain.com",
"/usr/lib/nagios/plugins/check_ssh -p 1750 host.mydomain.com",
"/usr/lib/nagios/plugins/check_ftp host.mydomain.com -H host.mydomain.com -p 21 -w 5 -c 8 -t 10",
"/usr/lib/nagios/plugins/check_imap host.mydomain.com -H host.mydomain.com -p 993 -S -w 5 -c 8 -t 10",

The solution could be to have the parent/master check for a block defined in the JSON config files. Just move the children checks right below the master check. Maybe require an empty line after such a block if more parent <--> children checks are to be set for other things within the same file.

1 Alert triggered

"/usr/lib/nagios/plugins/check_host host.mydomain.com",
	"/usr/lib/nagios/plugins/check_ssh -p 1750 host.mydomain.com",
	"/usr/lib/nagios/plugins/check_ftp host.mydomain.com -H host.mydomain.com -p 21 -w 5 -c 8 -t 10",
	"/usr/lib/nagios/plugins/check_imap host.mydomain.com -H host.mydomain.com -p 993 -S -w 5 -c 8 -t 10",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant