Hi
@pbroste,
Thanks for the feedback.
On the second inquiry on '/usr/local/nagiosxi/var/sysstat.log' growth issue. You will want to make sure that this is added to the /etc/logrotate.d/nagiosxi.
Thanks for mentioning that file. If I manually modify the file as suggested, will it be overwritten by future upgrades?
I checked just now and I see this block within:
Code: Select all
/usr/local/nagiosxi/var/*log {
missingok
notifempty
size 5M
rotate 1
compress
}
If I use the provided pattern, it seems like it matches?
Code: Select all
$ ls -larth /usr/local/nagiosxi/var/*log
-rw-r--r-- 1 nagios nagios 2.0M Aug 5 2020 /usr/local/nagiosxi/var/snmptt_service_results.log
-rw-r--r-- 1 nagios nagios 2.7M Aug 5 2020 /usr/local/nagiosxi/var/reportengine.log
-rw-r--r-- 1 nagios nagios 918 Jul 11 2021 /usr/local/nagiosxi/var/load_url.log
-rw-r--r-- 1 nagios nagios 1.1M Mar 3 16:50 /usr/local/nagiosxi/var/nom.log
-rw-rw-r-- 1 nagios nagios 18K Mar 4 07:00 /usr/local/nagiosxi/var/wkhtmltox.log
-rw-rw-r-- 1 nagios nagios 1.6M Mar 4 07:00 /usr/local/nagiosxi/var/scheduledreporting.log
-rw-r--r-- 1 nagios nagios 5.6M Mar 4 08:01 /usr/local/nagiosxi/var/recurringdowntime.log
-rw-r--r-- 1 nagios nagios 88M Mar 4 08:05 /usr/local/nagiosxi/var/dbmaint.log
-rw-r--r-- 1 nagios nagios 11M Mar 4 08:07 /usr/local/nagiosxi/var/perfdataproc.log
-rw-r--r-- 1 nagios nagios 58M Mar 4 08:07 /usr/local/nagiosxi/var/cleaner.log
-rw-r--r-- 1 nagios nagios 14M Mar 4 08:07 /usr/local/nagiosxi/var/deadpool.log
-rw-r--r-- 1 nagios nagios 266M Mar 4 08:07 /usr/local/nagiosxi/var/event_handler.log
-rw-r--r-- 1 nagios nagios 6.2M Mar 4 08:07 /usr/local/nagiosxi/var/feedproc.log
-rw-r--r-- 1 nagios nagios 2.0G Mar 4 08:07 /usr/local/nagiosxi/var/sysstat.log
-rw-r--r-- 1 nagios nagios 808M Mar 4 08:07 /usr/local/nagiosxi/var/eventman.log
-rw-r--r-- 1 nagios nagios 37M Mar 4 08:07 /usr/local/nagiosxi/var/cmdsubsys.log
This suggests that perhaps the file is already matched?
Code: Select all
$ ls -larth /usr/local/nagiosxi/var/*.gz
-rw-r--r-- 1 nagios nagios 18K Jul 18 2020 /usr/local/nagiosxi/var/reportengine.log-20200718.gz
-rw-r--r-- 1 nagios nagios 18K Jul 23 2020 /usr/local/nagiosxi/var/snmptt_service_results.log-20200723.gz
-rw-r--r-- 1 nagios nagios 29K Aug 3 2020 /usr/local/nagiosxi/var/nom.log-20200803.gz
-rw-r--r-- 1 nagios nagios 67K Sep 5 03:40 /usr/local/nagiosxi/var/feedproc.log-20210905.gz
-rw-r--r-- 1 nagios nagios 211K Sep 25 03:39 /usr/local/nagiosxi/var/scheduledreporting.log-20210925.gz
-rw-r--r-- 1 nagios nagios 18K Oct 27 03:48 /usr/local/nagiosxi/var/deadpool.log-20211027.gz
-rw-r--r-- 1 nagios nagios 227K Dec 4 03:34 /usr/local/nagiosxi/var/perfdataproc.log-20211204.gz
-rw-r--r-- 1 nagios nagios 121K Dec 4 03:34 /usr/local/nagiosxi/var/cmdsubsys.log-20211204.gz
-rw-r--r-- 1 nagios nagios 58K Dec 8 03:14 /usr/local/nagiosxi/var/recurringdowntime.log-20211208.gz
-rw-r--r-- 1 nagios nagios 278K Dec 9 03:47 /usr/local/nagiosxi/var/dbmaint.log-20211209.gz
-rw-r--r-- 1 nagios nagios 225K Dec 13 03:46 /usr/local/nagiosxi/var/eventman.log-20211213.gz
-rw-r--r-- 1 nagios nagios 356K Dec 13 03:46 /usr/local/nagiosxi/var/event_handler.log-20211213.gz
-rw-r--r-- 1 nagios nagios 26K Dec 13 03:46 /usr/local/nagiosxi/var/cleaner.log-20211213.gz
-rw-r--r-- 1 nagios nagios 462K Dec 14 03:50 /usr/local/nagiosxi/var/sysstat.log-20211214.gz
I'll dig further on this end. Perhaps I've got a permission wrong somewhere and logrotate is not rotating log files like it is supposed to because of that.
I checked on the config's and there is many that reference that path "/usr/local/nagios/share/perfdata". You would want to mount the /usr/ directory to its own partition so you maintain the same path.
If I mount a logical volume directly into "/usr/local/nagios/share/perfdata" do you believe that this would cause issues? I would temorarily mount the new volume elsewhere so that I could move the content currently at "/usr/local/nagios/share/perfdata" over before mounting the logical volume to that directory.
Thanks for your help.
On a different note, I'm subscribed to email notifications when this thread is updated and I didn't receive them when you responded. It could be something on our end, but wanted to mention it just in case others are also not seeing them.