Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a group of machines all running the same checks.

Within this group there are dev machines and prod machines.

I only want to be alerted to the checks after hours when the machines are prod machines.

With the minimum amount of changes what is the simplest way to achieve this?

Thanks.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

That depends on how you configure it. Service notification time inherits from host notification time, and you can make hosts use a template. That's how I tend to set up these things.

share|improve this answer
    
Thanks I'll take a look at that. –  user610209 May 24 '13 at 18:57
    
I found this - nagios.sourceforge.net/docs/3_0/objectinheritance.html so I think I'll use the host template. Thanks. –  user610209 May 24 '13 at 23:34
add comment

I'm not used to work with Nagios, but wouldn't it be better if you grouped your hosts by "prod" and "dev" machines instead of "same checks" machines? That way you could set one notification rule for the whole group instead of doing it individually.

I know that you can define multiple groups for a host in Zabbix but I don't know if that would work in Nagios.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.