Jump to content

Monitoring Raspberry Pis via SNMP


Recommended Posts

Hi All,

 

Just finding my feet with Domotz - great product.

 

I have around 10 raspberry pis in a rack that I'd like to add some monitoring to. I have some of these in Domotz set up with basic uptime monitoring and I'm looking to also monitor overall health e.g. disk space, cpu load, memory utilisation etc. It looks like my route to achieving this is via SNMP. I was wandering if anyone had an SNMP config for this type of monitoring on a Pi that I could use as a base and any tips as to how to roll this out and maintain across the various raspberry pis.

 

What would the best approach be to achieving this?

 

Thanks!

Link to post
Share on other sites
henriquesalvador

Hi @DJE,

 

Your are in the correct path to monitor your Raspberry Pi, using SNMP to achieve that.

 

You may add manually the following to the device Domotz Eyes (Go to the Webapp > Select the Agent > Devices List tile > Select your Raspberry Pi (or any Linux host) > Eyes tab):

 

  • CPU Load - Last 1 Minute - %
    • OID: 1.3.6.1.4.1.2021.10.1.3.1
  • CPU Load - Last 5 Minutes - %
    • OID: 1.3.6.1.4.1.2021.10.1.3.2
  • Total RAM Free
    • OID: 1.3.6.1.4.1.2021.4.11.0
  • Total RAM in machine - kB
    • OID: 1.3.6.1.4.1.2021.4.5.0
  • Percentage of space used on disk
    • OID: 1.3.6.1.4.1.2021.9.1.9.1

 

And then configure the Alert triggers based on that. For example I have on own Pi's the following:

 

  • CPU Usage > 90% (CPU Load - Last 5 Minutes - %)
    • is greater than "90"
  • Total RAM Free < 1GB (Total RAM Free - kB)
    • is less than "1000000"
  • Used space on the disk > 80% (Percentage of space used on disk)
    • is greater than "80"

 

If you prefer I've created a template (See attachment) you might use with the Import Device Settings and Properties featureEach device has this option to import and export settings and properties (the SNMP OIDs and alert triggers included):

?name=inline-1559712338.png

 

You may configure one of the Raspberry Pi's with all the OIDs and SNMP Triggers you want and then replicate it to the other Pi's.

 

Let me know if you need any further assistance.

 

Henrique Salvador

Domotz Support

 

LinuxServers_CPU_RAM_DISK.json

Link to post
Share on other sites

Thanks for this! That’s helpful.

 

I tried to import and I can see it is bringing in values properly and the alerts are triggering, but I tried to edit one of the alerts and I’m seeing odd behaviour in chrome Iand in the ios app - it looks broken..

 

 

IOS App:

 

CCFD652E-F694-4284-A100-022099B55EC5.thumb.png.a28722baba06f7dc3a9ba1013ec1381d.png

 

 

Chrome

 

61285FE0-38FE-467D-BF9F-468AA193E60C.thumb.jpeg.c001db5bb6c521dadec55f8570c8d9a2.jpeg

Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...