Fusion 4 - Logging issues
Posted: Mon Jul 31, 2017 10:08 am
I've been running Fusion 4 since release (upgraded from the latest RC,) and after running it for a week, noticed two things:
1. The definition in /etc/logrotate.d/nagiosfusion:/usr/local/nagiosfusion/var/log/*subsys* is missing a "log" at the end so it's catching all of the previous gzips recursively, resulting in an mildly amusing "ls -lh". Ive fixed this on my side but wanted to note it for future bugfixes.
2. I had a single core instance that fusion couldnt log into Friday (I hadn't added the fusion log in to core yet,) and over 15 minutes, I had 1200 entries in the logs (Admin > Fusion Logs). Setting it from 100 per page to no limit and hitting delete did not remove all the logs, it simply returns me to the previous page. This wasn't too big of a deal, I simply deleted all from the 100 per list 12 times and made sure the account was added. However, this morning I came in, and over the weekend Fusion generated 1290 pages.
I know we can remove the logs from the database directly, and that's what I've been doing, but wanted to mention the verbosity (reporting a failure to login roughly 4 times a minute for a single host , along with ancillary messages) as well as the inability to remove the logs when there are over say, 400 entries (this number has been guessed based on strength of my coffee this morning and the amount of sleep I had last night and thus should not be taken as concrete.)
That being said, I am loving the improvements. Unless you have questions, this can be locked as there isn't anything to do really.
1. The definition in /etc/logrotate.d/nagiosfusion:/usr/local/nagiosfusion/var/log/*subsys* is missing a "log" at the end so it's catching all of the previous gzips recursively, resulting in an mildly amusing "ls -lh". Ive fixed this on my side but wanted to note it for future bugfixes.
2. I had a single core instance that fusion couldnt log into Friday (I hadn't added the fusion log in to core yet,) and over 15 minutes, I had 1200 entries in the logs (Admin > Fusion Logs). Setting it from 100 per page to no limit and hitting delete did not remove all the logs, it simply returns me to the previous page. This wasn't too big of a deal, I simply deleted all from the 100 per list 12 times and made sure the account was added. However, this morning I came in, and over the weekend Fusion generated 1290 pages.
I know we can remove the logs from the database directly, and that's what I've been doing, but wanted to mention the verbosity (reporting a failure to login roughly 4 times a minute for a single host , along with ancillary messages) as well as the inability to remove the logs when there are over say, 400 entries (this number has been guessed based on strength of my coffee this morning and the amount of sleep I had last night and thus should not be taken as concrete.)
That being said, I am loving the improvements. Unless you have questions, this can be locked as there isn't anything to do really.