hi, could someone help me pl? thanks a lot
I’m trying with rsyslog and config it but there is issue with rsyslog:
Here is the log from rsyslog:
rsyslog.service - System Logging Service
Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-08-22 16:39:07 +07; 9s ago
Docs: man:rsyslogd(8)
RSyslog Documentation - rsyslog
Main PID: 23154 (rsyslogd)
CGroup: /system.slice/rsyslog.service
└─23154 /usr/sbin/rsyslogd -n
Aug 22 16:39:12 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ suspended (module ‘omprog’), retry 0. There should be messages before this one giving the reas…om/e/2007 ]
Aug 22 16:39:13 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ resumed (module ‘omprog’) [v8.2310.0.master try You searched for error 2359 - rsyslog ]
Aug 22 16:39:13 vnhcmter68.localdomain rsyslogd[23154]: omprog: program ‘/opt/librenms/syslog.php’ (pid 23192) terminated; will be restarted [v8.2310.0.master try https://www…om/e/2119 ]
Aug 22 16:39:13 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ suspended (module ‘omprog’), retry 0. There should be messages before this one giving the reas…om/e/2007 ]
Aug 22 16:39:14 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ resumed (module ‘omprog’) [v8.2310.0.master try You searched for error 2359 - rsyslog ]
Aug 22 16:39:14 vnhcmter68.localdomain rsyslogd[23154]: omprog: program ‘/opt/librenms/syslog.php’ (pid 23200) terminated; will be restarted [v8.2310.0.master try https://www…om/e/2119 ]
Aug 22 16:39:14 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ suspended (module ‘omprog’), retry 0. There should be messages before this one giving the reas…om/e/2007 ]
Aug 22 16:39:15 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ resumed (module ‘omprog’) [v8.2310.0.master try You searched for error 2359 - rsyslog ]
Aug 22 16:39:16 vnhcmter68.localdomain rsyslogd[23154]: omprog: program ‘/opt/librenms/syslog.php’ (pid 23208) terminated; will be restarted [v8.2310.0.master try https://www…om/e/2119 ]
Aug 22 16:39:16 vnhcmter68.localdomain rsyslogd[23154]: action ‘action-0-omprog’ suspended (module ‘omprog’), retry 0. There should be messages before this one giving the reas…om/e/2007 ]
Hint: Some lines were ellipsized, use -l to show in full.
Here is log from librenms:
Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Permission denied (Connection: mysql, SQL: select * from config
where (config_name
= snmp.unescape) limit 1) in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:795
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(755): Illuminate\Database\Connection->runQueryCallback()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(424): Illuminate\Database\Connection->run()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2748): Illuminate\Database\Connection->select()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2736): Illuminate\Database\Query\Builder->runSelect()
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3290): Illuminate\Database\Query\Builder->Illuminate\Database\Query{closure}()
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2737): Illuminate\Database\Query\Builder->onceWithColumns()
#6 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(720): Illuminate\Database\Query\Builder->get()
#7 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(704): Illuminate\Database\Eloquent\Builder->getModels()
#8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php(296): Illuminate\Database\Eloquent\Builder->get()
#9 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(549): Illuminate\Database\Eloquent\Builder->first()
#10 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(583): Illuminate\Database\Eloquent\Builder->firstOrNew()
#11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->updateOrCreate()
#12 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2333): Illuminate\Database\Eloquent\Model->forwardCallTo()
#13 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2345): Illuminate\Database\Eloquent\Model->__call()
#14 /opt/librenms/LibreNMS/Config.php(262): Illuminate\Database\Eloquent\Model::__callStatic()
#15 /opt/librenms/LibreNMS/Config.php(474): LibreNMS\Config::persist()
#16 /opt/librenms/LibreNMS/Config.php(61): LibreNMS\Config::processConfig()
#17 /opt/librenms/app/Providers/ConfigServiceProvider.php(27): LibreNMS\Config::load()
#18 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Providers\ConfigServiceProvider->boot()
#19 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#20 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#21 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#22 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#23 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1006): Illuminate\Container\Container->call()
#24 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(987): Illuminate\Foundation\Application->bootProvider()
#25 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation{closure}()
#26 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(988): array_walk()
#27 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
#28 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(261): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
#29 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(447): Illuminate\Foundation\Application->bootstrapWith()
#30 /opt/librenms/LibreNMS/Util/Laravel.php(44): Illuminate\Foundation\Console\Kernel->bootstrap()
#31 /opt/librenms/includes/init.php(90): LibreNMS\Util\Laravel::bootCli()
#32 /opt/librenms/syslog.php(12): require(‘…’)
#33 {main}
My validate.php here:
[root@vnhcmter68 ~]# su - librenms
Last login: Tue Aug 22 16:27:18 +07 2023 on pts/0
-bash-4.2$ ./validate.php
Component | Version |
---|---|
LibreNMS | 23.8.2 (2023-08-21T22:48:13+07:00) |
DB Schema | 2023_08_02_120455_vendor_ouis_unique_index (255) |
PHP | 8.1.22 |
Python | 3.6.8 |
Database | MariaDB 11.0.3-MariaDB |
RRDTool | 1.4.8 |
SNMP | 5.7.2 |
=========================================== |
[OK] Composer Version: 2.5.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[FAIL] Some poller nodes have not checked in recently
Inactive Nodes:
localhost.localdomain
#localhost.localdomain
vnhcmter66.localdomain
[OK] Redis is unavailable
[FAIL] Python3 module issue found: 'Required packages: [‘PyMySQL!=1.0.0’, ‘python-dotenv’, ‘redis>=4.0’, ‘setuptools’, ‘psutil>=5.6.0’, ‘command_runner>=1.3.0’]
Package not found: The ‘command_runner>=1.3.0’ distribution was not found and is required by the application
’
[FIX]:
pip3 install -r /opt/librenms/requirements.txt
[OK] rrd_dir is writable
[OK] rrdtool version ok
[FAIL] Scheduler is not running
[FIX]:
sudo cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
sudo systemctl enable librenms-scheduler.timer
sudo systemctl start librenms-scheduler.timer
[WARN] Global lnms shortcut not installed. lnms command must be run with full path
[FIX]:
sudo ln -s /opt/librenms/lnms /usr/local/bin/lnms
[WARN] Bash completion not installed. lnms command tab completion unavailable.
[FIX]:
sudo cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/
[FAIL] We have found some files that are owned by a different user than ‘librenms’, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/storage/app/purifier
/opt/librenms/storage/app/purifier/HTML
/opt/librenms/storage/app/purifier/HTML/4.15.0,fe97c36109f79a043b63c51aaa36362f0f2f6553,1.ser
/opt/librenms/storage/app/purifier/URI
/opt/librenms/storage/app/purifier/URI/4.15.0,3478238e680361cd87bf880f5b3cc50a1e7abc6c,1.ser
-bash-4.2$