NEMSLinux / legacy-nems-scripts

System scripts located in /usr/local/share/nems/nems-scripts on NEMS Linux
GNU General Public License v3.0
3 stars 5 forks source link

Speedtest is broken out of box, permissions error on /log folder? #6

Closed henroFall closed 2 years ago

henroFall commented 2 years ago

Out of the box, the Speedtest was not functional / service down. No response from speedtest host, it said. In fact, what was happening was that the speedtest.log, speedtest-cf.log, and speedtest-ping.log files were not being created. I see in the speedtest script, they are checked for existence and then created and then ownership is changed to nagios. So I manually created each file with a touch, then chown'd them all to nagios, and now speedtest works fine.

I think probably it's ok to CHOWN the entire /var/log/nems folder to be owned by nagios:nagios, but for now I just set those 3 files. Everything else is owned by root:root, and nagios seems to run as root, so I'm perplexed as to how this got stuck in this way. But it did this right out of the box so I wanted to post it as an issue in case it's affecting everyone?

henroFall commented 2 years ago

Resolved. It turns out that you need to do the nems-update script after install to fix the speedtest.