lordbob75 Posted July 16, 2017 Share Posted July 16, 2017 I'm working on getting monitoring setup with a nice Grafana dashboard. I've been able to use Telegraf to moniter my server and gaming rig, which pushes it to Influxdb then to Grafana. However, my firewall (PFSense SG-1000) has no telegraf plugin (yet, though the one they are working on isn't compatible with the SG-1000) so the only thing I can use is SNMP. I can't figure out how to get my server to grab that data. I believe I need to send it to Influxdb so I can pull it into Grafana, but I don't know how to send it there. Every guide I can find either skips over that part or doesn't work with it since this is a docker and not directly installed. Can anyone help me out with this? I get the feeling from the guides that this should be easy, but obviously I'm missing something. Quote Link to comment
RAINMAN Posted July 16, 2017 Share Posted July 16, 2017 I have a shell script running on my router that runs each minute with a cron job writing to my influx DB. You could look into doing this. Here is the topic with some example scripts: Quote Link to comment
lordbob75 Posted July 16, 2017 Author Share Posted July 16, 2017 (edited) 1 hour ago, RAINMAN said: I have a shell script running on my router that runs each minute with a cron job writing to my influx DB. You could look into doing this. Here is the topic with some example scripts: I did see that and wanted to use some of those, but I don't see how to use those either. He includes instructions that I'm guessing you run from the command line. Is there no Cron GUI? It sounds like I need to save the scripts on my server(?) somewhere and schedule cron to run them. That's my guess at least, but I saw something else that said to run the script on the device you are monitoring. Edited July 16, 2017 by lordbob75 Quote Link to comment
Squid Posted July 16, 2017 Share Posted July 16, 2017 12 minutes ago, lordbob75 said: I did see that and wanted to use some of those, but I don't see how to use those either. He includes instructions that I'm guessing you run from the command line. Is there no Cron GUI? It sounds like I need to save the scripts on my server(?) somewhere and schedule cron to run them. That's my guess at least, but I saw something else that said to run the script on the device you are monitoring. Use the user.scripts plugin. (If the scripts are capable of being run on your server) Quote Link to comment
lordbob75 Posted July 16, 2017 Author Share Posted July 16, 2017 2 minutes ago, Squid said: Use the user.scripts plugin. (If the scripts are capable of being run on your server) Aha, that's handy! Thanks much, I'll give that a shot. Quote Link to comment
lordbob75 Posted July 21, 2017 Author Share Posted July 21, 2017 Well I got two of those scripts working and can monitor my UPS now. I haven't found a script for SNMP though, is there one I missed? I haven't really found anything about using scripts for that. I'd prefer to get it into Influxdb anyways if possible. Quote Link to comment
RAINMAN Posted July 28, 2017 Share Posted July 28, 2017 a bit complicated but if you can SSH to the device you can setup and run the scripts directly from the device. On my DDWRT router I am running them directly and pushing the data to influx. You should be able to query SNMP data also I would think but I havent looked into this. Quote Link to comment
Progeny42 Posted September 4, 2020 Share Posted September 4, 2020 Old thread, but maybe someone else will stumble across it in the future. I was looking at how to do this myself, and also struggled to find an exact guide. So, I put one together myself on my self-hosted blog. Hope it helps someone! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.