so we had to change the librenms linux username and then alot of the CLI now shows this:
I admit to be a linux newby… so I am sure I did something wrong…
where to start?
libreadmin@libre-ubuntu:/opt/librenms$ su librenms ./validate.php
Password:
./validate.php: line 2: ?php: No such file or directory
./validate.php: line 4: /bin: Is a directory
./validate.php: line 5: addhost.php: command not found
./validate.php: line 6: addhost.php: command not found
./validate.php: line 7: syntax error near unexpected token (' ./validate.php: line 7: * Copyright (c) 2014 Neil Lathwood <laf (Neil Lathwood) · GitHubhttp://www.lathwood.co.uk/fa>’
My goal here is I need to add about 130 devices and really want to do it in the CLI, as they are all MSP/ISP devices…
What do you mean by “change the linux username”? If you want to let a already installed LibreNMS run under a different user-account, you need to change that at several places:
chown all stuff under /opt/librenms to the new user
set home-dir of new user to /opt/librenms
Check ini-files at /etc/php/…/fpm/php.ini and /etc/php/…/cli/php.ini for username and replace respectivly