OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: 00DF00 on February 23, 2018, 09:00:54 pm

Title: Retrieve stats remotely (SNMP?)
Post by: 00DF00 on February 23, 2018, 09:00:54 pm
Hi all, sorry for the noob questions, looking for a way to get the OPNsense router to report CPU Temp, System Temp, maybe HD Temp or other details to a server?

I will be setting up a Nagios box or something for other sensors in the office - but I was wondering how the community would would suggest I get these details out of the OPNsense router...

I also think I might have more than 1 of these routers to isolate some testing lab scenarios...

Thank you !
Title: Re: Retrieve stats remotely (SNMP?)
Post by: btd on February 23, 2018, 09:41:22 pm
There is telegraf plugin which writes all those stats to influxdb/graphite/graylog.

And I have one problem with this plugin. I was using it on 18.1.1, worked fine. My router's drive crashed, reinstalled opnsense to new drive, updated to 18.1.2 and now telegraf don't output 'system' section of stats. When I check in influxdb 'show measurements' there is no system.
Title: Re: Retrieve stats remotely (SNMP?)
Post by: btd on February 23, 2018, 11:34:40 pm
HA, found it!

in /usr/local/etc/telegraf.conf there is:
Code: [Select]
[[inputs.disk]]

[[inputs.diskio]]

[[inputs.mem]]

[[inputs.processes]]


[[inputs.system]]

[[inputs.net]]

while this part should be:
Code: [Select]
[[inputs.disk]]

[[inputs.diskio]]

[[inputs.mem]]

[[inputs.processes]]

[[inputs.system]]

[[inputs.net]]
Title: Re: Retrieve stats remotely (SNMP?)
Post by: 00DF00 on February 23, 2018, 11:48:41 pm
I really appreciate your comment and follow up...

If I follow this correctly - this places the values into the local database? How could I get the values to another system on the network?
Title: Re: Retrieve stats remotely (SNMP?)
Post by: btd on February 24, 2018, 09:26:45 am
https://lkhill.com/telegraf-influx-grafana-network-stats/ (https://lkhill.com/telegraf-influx-grafana-network-stats/)

telegraf writes stats to influxdb, grafana takes those stats and plot graphs. i have influxdb and grafana on separate small vm