Host contacts referenced for services on that host?
Posted: Fri Jul 08, 2016 9:22 am
I recently set up a few passive checks using NSCA. No problems there -- I'm not doing anything high-concept, so the myriad tutorials for how to set it up were entirely sufficient. That said, the passive service checks are, right now, configured to only go to me, since I wanted to give them a bit of a shakedown before setting them up to (say) wake people up in the middle of the night.
However, last night, a notification for one of these passive services went out to the contactgroup for the host that the service is on. I've spent a little time looking over the inheritance procedure in Nagios objects, and I don't get the impression that services should be automatically inheriting attributes from the host. From things like the generic-service template (or, as the case may be, the passive-service template, which itself uses generic-service), certainly, but not the host. And, double-checking the logs, it was the service which had an issue -- this wasn't a host-down situation at all.
I'm clearly misunderstanding something, so I come to this august body. Should a service on a host be inheriting anything from the host attributes? And if so, is there a way to disable any part of the inheritance? In general, I only want contacts or contactgroups specifically enumerated in the service check to be notified. Or is this an indication that I've got a configuration item somewhere that I shouldn't?
However, last night, a notification for one of these passive services went out to the contactgroup for the host that the service is on. I've spent a little time looking over the inheritance procedure in Nagios objects, and I don't get the impression that services should be automatically inheriting attributes from the host. From things like the generic-service template (or, as the case may be, the passive-service template, which itself uses generic-service), certainly, but not the host. And, double-checking the logs, it was the service which had an issue -- this wasn't a host-down situation at all.
I'm clearly misunderstanding something, so I come to this august body. Should a service on a host be inheriting anything from the host attributes? And if so, is there a way to disable any part of the inheritance? In general, I only want contacts or contactgroups specifically enumerated in the service check to be notified. Or is this an indication that I've got a configuration item somewhere that I shouldn't?