Hide Warning "has no default contacts or contactgroups def

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagwindmon
Posts: 92
Joined: Mon Dec 01, 2014 3:39 pm

Hide Warning "has no default contacts or contactgroups def

Post 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!
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

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

Post by avandemore »

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

Post 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?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

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

Post by avandemore »

Sure, if you aren't looking to validate the config neither stdout or stderr are required. It's all just informative.
Previous Nagios employee
Locked