I am trying to get a Nokia MSS/MPR Radio to show bandwidth statistics, but i’m failing. please help. I think i’m 90 percent there. But bandwidth graphs are empty. I even added the MIB’s for the interface statistics.
I have added the yaml file:
/opt/librenms/includes/definitions$ cat nokia-mpr.yaml
os: nokia-mpr
text: ‘Nokia MPR’
type: wireless
icon: nokia
ifXmcbc: true
ifname: true
over:
- { graph: device_bits, text: ‘Device Traffic’ }
mib_dir:
-nokia-mpr
discovery:
- sysObjectID:
- .1.3.6.1.4.1.637.54.1.10.90.4
register_mibs:
ethAggrMaintRxTable: OPTICSIM-ETHPM-MIB
ethAggrMaintTxTable: OPTICSIM-ETHPM-MIB
I have added the required mibs for ethernet statisitcs:
/opt/librenms/mibs/nokia-mpr$ ls
OpticsIMEthPmMibMc.mib OpticsIMEtsMibMc.mib OpticsIMSpCommonTc.mib OpticsIMSpEthRegMib.mib TSDIMSpBasicRegMib.mib TSDIMSpSnmpTc.mib
./validate.php results:
$ ./validate.php
Component | Version |
---|---|
LibreNMS | 1.48.1-32-g25954ccda |
DB Schema | 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131) |
PHP | 7.2.17-0ubuntu0.18.10.1 |
MySQL | 10.1.29-MariaDB-6ubuntu2 |
RRDTool | 1.7.0 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: incorrect column (notifications/datetime)
[FAIL] Database: incorrect column (users/created_at)
[FAIL] We have detected that your database schema may be wrong, please report the following to us on Discord (https://t.libren.ms/discord) or the community site (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’ ;
ALTER TABLE users
CHANGE created_at
created_at
timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:01’ ;
[WARN] Your install is over 24 hours out of date, last update: Mon, 11 Feb 2019 20:17:50 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
.editorconfig
.gitignore
.travis.yml
LibreNMS/Alert/Transport/Alertmanager.php
LibreNMS/Alert/Transport/Elasticsearch.php
LibreNMS/Alert/Transport/Mattermost.php
LibreNMS/Util/Laravel.php
LibreNMS/Util/ModuleTestHelper.php
LibreNMS/Validations/Database.php
app/Console/Kernel.php
app/Exceptions/Handler.php
app/Http/Controllers/Auth/RegisterController.php
app/Http/Kernel.php
app/Http/Middleware/EncryptCookies.php
app/Http/Middleware/TrimStrings.php
and 51 more…
[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/html/plugins/Weathermap/mymaptest.png
/opt/librenms/html/plugins/Weathermap/output/mymap.png
/opt/librenms/html/plugins/Weathermap/output/mymap.html
/opt/librenms/html/plugins/Weathermap/weathermap.png
/opt/librenms/html/plugins/Weathermap/mymaptest.html
/opt/librenms/config.php
./discovery.php -h HOSTNAME -d | ./pbin.sh
Paste endpoint: https://p.libren.ms/api/create
title:
name: michael
private: 1
expire: 0
https://p.libren.ms/view/2a3c86b1
./poller.php -h HOSTNAME -r -f -d | ./pbin.sh
title:
name: michael
private: 1
expire: 0
https://p.libren.ms/view/7d3cbf4b