Hello,
How can I disable/hide following warnings:
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
Warning: Host 'xxxxxx' has no default contacts or contactgroups defined!
My Script updates around 3k hosts daily and log file being filled with those entries... and I don't have a need for these hosts to have a
default notification. So is there a way hide it or do a bulk update to set default contacts/groups?
Thanks!
Hide Warning "has no default contacts or contactgroups def
-
nagwindmon
- Posts: 92
- Joined: Mon Dec 01, 2014 3:39 pm
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Hide Warning "has no default contacts or contactgroups d
You can redirect output to /dev/null if you wish.
Previous Nagios employee
-
nagwindmon
- Posts: 92
- Joined: Mon Dec 01, 2014 3:39 pm
Re: Hide Warning "has no default contacts or contactgroups d
OK, I didn't know if those were being sent to stderr or stdout
If they're just stderr I can handle that?
If they're just stderr I can handle that?
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Hide Warning "has no default contacts or contactgroups d
Sure, if you aren't looking to validate the config neither stdout or stderr are required. It's all just informative.
Previous Nagios employee