I've recently taken over our Nagios XI environment. We are currently running 2012R1.2. I recently purchase the Enterprise license so that we can have access to the functionality it offers. I am also planning to upgrade to the latest version next week. While testing some of the reporting functionality, the event log report in particular, I received an error message:
Code: Select all
Error: Could not open log file '/var/log/nagios/nagios.log' for reading!
This got me to looking for my nagios.log file on my server. Currently, the only nagios.log file I can find is located here:
Code: Select all
[root@nagios01r6v /]# find / -xdev -iname 'nagios.log'
/usr/local/nagios/var/nagios.log
But my config file contains these entries:
Code: Select all
[root@nagios01r6v /]# grep "log" /usr/local/nagios/etc/nagios.cfg
log_event_handlers=0
log_archive_path=/var/log/nagios/archives
log_external_commands=0
log_file=/var/log/nagios/nagios.log
log_host_retries=1
log_initial_states=0
log_notifications=1
log_passive_checks=0
log_rotation_method=d
log_service_retries=1
use_syslog=0
The directory /var/log/nagios does not exist on my server. I suspect I need to change the log_archive_path and log_file variables to point to /usr/local/nagios but as I am unfamiliar with Nagios I wanted to get input from someone with more experience. Any suggestions or comments would be appreciated.