I am new to the Libre forums so please bare with me. Also I am not a Linux Admin - so I will have some basic questions for you.
We have a LibreNMS implementation that is old and we have tried to update it with no luck. Overall everything is working but we get alerts at random times that are sometimes false-positive and we are seeing a lot more of these occurrences than before. So I need to some advice and help from someone who might know how to fix this.
Here is the version we are on:
1.69-1-gbc02ab3 - Mon Nov 02 2020 18:56:49 GMT-0700
FYI - from what I have been told - we have ran these commands before and Libre some how reverts back and we see the same output of Validate Config/commands being listed after some time. Not sure why this would be.
Is there a way to apply updates now? What commands do I run? Maybe I need run the commands and apply updates back to back. Just thinking out loud.
We used to have similar issues however it seems to have resolved itself.
I’m not 100% sure why but it may have something to do with trying to run ./validate as a root user as that may change some of the permissions away from your librenms user on those directories.
So for all librenms related commands always run under the librenms user context commands I use are below:
sudo su librenms
Running the ./daily (as the librenms user) should pull the latest version of librenms (you’re version looks like its from 2020)
the ./daily should conduct the following:
[chintanpintu], you must run LibreNMS scripts like daily.sh or validate.php only as librenms user - not as root.
All errors, that you have seen after running Validate - is a commands that you must apply as root user: by this commands you fix permissions in librenms directory for librenms user.
Before run daily/validate - log in as librenms user: su - librenms