# LibreNMS and Raspberry Pi

**URL:** <https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32>\
**Category:** Uncategorized\
**Tags:** technology\
**Created:** [May 11, 2020, 5:16am UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32 "2020-05-11T05:16:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beaker](https://forums.jasonloong.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@beaker](https://forums.jasonloong.com/u/beaker)\
**Post date:** [May 11, 2020, 5:16am UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/1 "2020-05-11T05:16:38Z")

</div>

Next question. I’ve installed and configured snmpd on a few Pi’s and all that nms seems to get is basic info from them. No cpu, mem or storage stats. All the graphs say “Error Drawing Graph”

The only changes I’ve made to snmpd.conf are  
agentAddress udp:161 or just agentAddress 161 and  
rocommunity public 190.0.10.0/24 or just rocommunity public

I’ve added a couple Ubiquiti devices and they seem fine.

---

<div class="post-metadata">

**Author:** ![jasonloong](https://forums.jasonloong.com/user_avatar/forums.jasonloong.com/jasonloong/32/8_2.png) [@jasonloong](https://forums.jasonloong.com/u/jasonloong)\
**Post date:** [May 11, 2020, 5:19am UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/2 "2020-05-11T05:19:11Z")

</div>

Give it some time to generate the graphs 🤩 they need to collect data first

---

<div class="post-metadata">

**Author:** ![jasonloong](https://forums.jasonloong.com/user_avatar/forums.jasonloong.com/jasonloong/32/8_2.png) [@jasonloong](https://forums.jasonloong.com/u/jasonloong)\
**Post date:** [May 11, 2020, 6:01am UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/3 "2020-05-11T06:01:11Z")

</div>

[https://www.networkshinobi.com/snmp-on-raspberry-pi/](https://www.networkshinobi.com/snmp-on-raspberry-pi/)

Try above post for the RPi, didn’t try on my RPi as its just for pure testing

If you want to make sure snmpd works

```
cd /etc/snmp/

# backup initial default snmpd.conf
mv snmpd.conf snmpd.conf.bck

nano snmpd.conf

```

In the new snmpd.conf, you can have just this one line of config  
`rocommunity pass_phrase`

Exit, Save, issue a restart to the snmpd service

`systemctl restart snmpd`

Check to see whether it has been started successfully

`systemctl status snmpd`

## Check via Terminal

In your LibreNMS container bash  
`docker exec -it librenms bash`

Run a snmpwalk to the device (substitute whether its v2c or v1 protocol)  
`snmpwalk -v 2c -c your-community-passphrase IP.HERE`

## Check via GUI (LibreNMS)

After you have added the Device, run some pre-checks to make sure Libre is able to discover the device

In your Device details page, middle right Gear Icon

 ![Screenshot 2020-05-11 at 1.39.18 PM](https://forums.jasonloong.com/uploads/default/original/1X/2027c7363f14b480581dd9561ecda150d11c5fc0.png)

Issue captures on all tabs, you should see lots of numbers, that means it has successfully polled data from your device via a manual snmpwalk (via the GUI)

 ![Screenshot 2020-05-11 at 1.40.08 PM](https://forums.jasonloong.com/uploads/default/original/1X/0fb324defccbe5c08bb1a96992b9e20609b205d9.png)

 ![Screenshot 2020-05-11 at 1.53.20 PM](https://forums.jasonloong.com/uploads/default/original/1X/b05e36c9a4d4c3cbaa6d69845f0bc7e050e2842c.png)

---

<div class="post-metadata">

**Author:** ![beaker](https://forums.jasonloong.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@beaker](https://forums.jasonloong.com/u/beaker)\
**Post date:** [May 11, 2020, 2:15pm UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/4 "2020-05-11T14:15:34Z")

</div>

They have been running since Friday evening. 🙂

---

<div class="post-metadata">

**Author:** ![jasonloong](https://forums.jasonloong.com/user_avatar/forums.jasonloong.com/jasonloong/32/8_2.png) [@jasonloong](https://forums.jasonloong.com/u/jasonloong)\
**Post date:** [May 11, 2020, 3:03pm UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/5 "2020-05-11T15:03:59Z")

</div>

No idea there, just assuming, since there’s no indication that you have succeeded on Friday 😃

Anyway, I’m running a test on an RPi, everything seem to work. Getting the CPU/RAM/HDD

## snmpd installation

`sudo apt install snmpd -y`

 ![Screenshot 2020-05-11 at 10.53.01 PM](https://forums.jasonloong.com/uploads/default/original/1X/d40bff9874d4574ec4e1dec2f8849288312eca3f.png)

 ![Screenshot 2020-05-11 at 10.53.53 PM](https://forums.jasonloong.com/uploads/default/original/1X/1b76cf1598bde7a1f4bc75954bac56eb8f03b37e.png)

LibreNMS on the same test container that we tested

Try setting the config file with a bare minimum, if that works, at least we know the problem lies in setting up snmpd.conf

Note: remember to restart snmpd , it has happened to me a few times 🤣

---

<div class="post-metadata">

**Author:** ![beaker](https://forums.jasonloong.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@beaker](https://forums.jasonloong.com/u/beaker)\
**Post date:** [May 13, 2020, 2:24am UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/6 "2020-05-13T02:24:56Z")

</div>

That worked.  
Put just a single entry in the snmpd.conf.

Thanks!

Next…

---

<div class="post-metadata">

**Author:** ![jasonloong](https://forums.jasonloong.com/user_avatar/forums.jasonloong.com/jasonloong/32/8_2.png) [@jasonloong](https://forums.jasonloong.com/u/jasonloong)\
**Post date:** [May 13, 2020, 4:10am UTC](https://forums.jasonloong.com/t/librenms-and-raspberry-pi/32/7 "2020-05-13T04:10:12Z")

</div>

Glad it worked! 😁 you should revisit the snmpd config if you are worried about security. It’s usually ok as long as it’s local
