Page 1 of 1

Hide Warning "has no default contacts or contactgroups def

Posted: Tue Mar 28, 2017 2:42 pm
by nagwindmon
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!

Re: Hide Warning "has no default contacts or contactgroups d

Posted: Tue Mar 28, 2017 3:01 pm
by avandemore
You can redirect output to /dev/null if you wish.

Re: Hide Warning "has no default contacts or contactgroups d

Posted: Tue Mar 28, 2017 3:07 pm
by nagwindmon
OK, I didn't know if those were being sent to stderr or stdout
If they're just stderr I can handle that?

Re: Hide Warning "has no default contacts or contactgroups d

Posted: Tue Mar 28, 2017 3:10 pm
by avandemore
Sure, if you aren't looking to validate the config neither stdout or stderr are required. It's all just informative.