Page 2 of 2
Re: setup email notification on Nagios Core
Posted: Thu Feb 09, 2017 10:49 am
by rkennedy
I don't see any reference to your cfg_dir or cfg_file directives in this which is odd. Are you managing it another way?
You should be able to add this to the nagios.cfg -
Code: Select all
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
(change paths if needed - then restart nagios service after)
Re: setup email notification on Nagios Core
Posted: Thu Feb 09, 2017 8:46 pm
by huytq1786
rkennedy wrote:I don't see any reference to your cfg_dir or cfg_file directives in this which is odd. Are you managing it another way?
You should be able to add this to the nagios.cfg -
Code: Select all
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
(change paths if needed - then restart nagios service after)
Thank you Kennedy.
What is you mean? you want me to post contacts.cfg and commands.cfg, right?
Re: setup email notification on Nagios Core
Posted: Fri Feb 10, 2017 1:15 pm
by rkennedy
No, it doesn't look like you're including the configuration files in your nagios.cfg, so I'm unsure how the system would read them. You'll want to add those two lines to your configuration, and then restart the nagios service.
Re: setup email notification on Nagios Core
Posted: Fri Feb 10, 2017 8:25 pm
by huytq1786
huytq1786 wrote:rkennedy wrote:I don't see any reference to your cfg_dir or cfg_file directives in this which is odd. Are you managing it another way?
You should be able to add this to the nagios.cfg -
Code: Select all
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
(change paths if needed - then restart nagios service after)
Thank you Kennedy.
What is you mean? you want me to post contacts.cfg and commands.cfg, right?
I already added 2 commands to the nagios.cfg. But still cannot got any email notification
Re: setup email notification on Nagios Core
Posted: Mon Feb 13, 2017 11:34 am
by rkennedy
Did you run service nagios restart after doing so? Please post your /usr/local/nagios/var/objects.cache and /usr/local/nagios/var/status.dat for us to review.
Re: setup email notification on Nagios Core
Posted: Wed Mar 01, 2017 2:08 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did
@rkennedy's post clear things up? Or has the issue been resolved?