Page 1 of 1

monitoring a single host for different tenant groups

Posted: Wed Jun 06, 2018 12:59 pm
by jwgill
I'm monitoring a host on a 24x7 basis with the server admins receiving emails about the host state changes 24x7 every 5 minutes. A secondary group also wants to know about the same host. During business hours (8 - 5), they want to know that the host is down within 15 minutes. After hours they want to only know about host changes every hour.

A third group defines business hours differently(7am - 9pm) than the second, and only wants 30 minute interval notifications during the business day.

Short of defining several hosts that monitor the same thing, but with different alerting criteria, is this possible? I really don't want to inflate the host count, or make multiple redundant calls to monitor the exact same things for each group.

Re: monitoring a single host for different tenant groups

Posted: Wed Jun 06, 2018 1:32 pm
by jwgill
To add to the information, I initially created multiple templates for each monitoring/alerting/group definition, and applied them with ordering to the host in question, but...

Re: monitoring a single host for different tenant groups

Posted: Wed Jun 06, 2018 3:44 pm
by npolovenko
Hello, @jwgill. I definitely like the logic you're suggesting but I don't think it's possible to set this up with regular notification settings in XI. It is theoretically possible to write a custom event handler script that would determine the alert time and send an email only when certain conditions are met. That would require some coding expertise. If you'd like our assistance with this custom feature you could contact the sales for a quote. Otherwise, here is a general manual explaining event handlers in XI.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf