MIB Based Polling

Dear All,
I am new to Libre NMS, though I have installed the same successfully on Ubuntu Server 18.04 and its working fine.

Our aim is use MIB Based Polling for which I have globally configured $config[‘poller_modules’][‘mib’] = true; in config.php file.

Now the problem is, I am not able to add MIBs in the application, or you can say I am not getting the right track of adding/using MIBs.

If somebody would help me out in a laymen manner, I will be highly thankfull.

Kindly help.

:/opt/librenms# ./validate.php

Component Version
LibreNMS 1.56-43-g8e1a27eae
DB Schema 2019_10_03_211702_serialize_config (145)
PHP 7.2.19-0ubuntu0.18.04.2
MySQL 10.1.41-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Sat, 19 Oct 2019 05:25:30 +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:
.codeclimate.yml
.editorconfig
.env.dusk.testing
.env.example
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE/New-Device.md
.github/PULL_REQUEST_TEMPLATE.md
.github/ci-reporter.yml
.github/label-actions.yml
.github/lock.yml
.github/no-response.yml
.github/stale.yml
.gitignore
.mention-bot
.scrutinizer.yml
and 10157 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/mibs/IF-MIB
/opt/librenms/mibs/ORG_mibs
/opt/librenms/mibs/SNMPv2-SMI
/opt/librenms/mibs/SNMPv2-MIB
/opt/librenms/mibs/MAKSAT-MK8h-MIB
/opt/librenms/mibs/IANAifType-MIB
/opt/librenms/mibs/SNMPv2-TC

First of all you need to fix all those fails in your validate. You shouldn’t ignore that.

Dear Kevin,

Thanks a lot for the quick response.
Is my issue is really related with these fixes ?
If not, then could we go ahead with my main concern.
I have seen a lot of post of yours helping people.
Kindly become a mentor for me and let me out of this please.

/opt/librenms# ./validate.php

Component Version
LibreNMS 1.56-43-g8e1a27eae
DB Schema 2019_10_03_211702_serialize_config (145)
PHP 7.2.19-0ubuntu0.18.04.2
MySQL 10.1.41-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.9.0
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your install is over 24 hours out of date, last update: Sat, 19 Oct 2019 05:25:30 +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:
.codeclimate.yml
.editorconfig
.env.dusk.testing
.env.example
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE/New-Device.md
.github/PULL_REQUEST_TEMPLATE.md
.github/ci-reporter.yml
.github/label-actions.yml
.github/lock.yml
.github/no-response.yml
.github/stale.yml
.gitignore
.mention-bot
.scrutinizer.yml

Hi Kevin,

Please help me out, I am NOT able to Add Device MIBs.
How to do that ?

I need to add some code in opt/librenms/app/Http/Controllers/DeviceGroupController.php to get the count of Up and Down devices coming under all the groups.

Could somebody help.