t2g
1
Good day guys, I’m having another problem at our LibreNMS. Our librenms was down and I checked the librenms error log and found these
FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: 188.XXX.XXX.XXX, server: nms.xxx.net, request: “GET /admin//config.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock:”, host: “103.XXX.XXX.XXX”
t2g
3
these are the results,
====================================
Component |
Version |
LibreNMS |
1.64.1-241-ged70b2636 |
DB Schema |
2020_06_23_00522_alter_availability_perc_column (170) |
PHP |
7.2.24-0ubuntu0.18.04.6 |
Python |
3.6.9 |
MySQL |
10.1.44-MariaDB-0ubuntu0.18.04.1 |
RRDTool |
1.7.0 |
SNMP |
NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.10.13
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: incorrect column (notifications/datetime)
[FAIL] We have detected that your database schema may be wrong, please report t he following to us on Discord (https://t.libren.ms/discord) or the community sit e (https://t.libren.ms/5gscd):
[FIX]:
Run the following SQL statements to fix.
SQL Statements:
ALTER TABLE notifications
CHANGE datetime
datetime
timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:00’ ;
[WARN] Your install is over 24 hours out of date, last update: Thu, 25 Jun 2020 19:51:55 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to se e if there are any errors.
[WARN] Your local git contains modified files, this could prevent automatic upd ates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
config.php.default
logs/.gitignore
rrd/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/cache/data/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore
Looks like attempts to compromise your site. (but targeting Wordpress files I think)