Collecting / Polling other data from the network

4 replies [Last post]
tickett
Offline
Joined: 19 Nov 2011

In a blog post recently I suggested that it would be nice to have my hah collect not only data from my CurrentCost enviR (CC128) and WSN but also my LAN (read: Free/Total disk space on the fileserver, Data In/Out from my pfSense box etc). Hopefully with the intention of posting to pachube.

What do you think?

How would I best achieve this? (I imagine the devices I intend to poll support SNMP).

L

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Data monitoring

Cacti or Nagios are both good monitoring frameworks - I use cacti for snmp monitoring data rates from my router and various VPN connections, it also monitors diskspace, load and other facets of my server.  Both have native support for snmp and a plugin architecture so you can build your own interfaces to things.  I found it was better to write an xAP plugin for these frameworks then to build a yet another capture/monitor framework just for xAP.

Brett

tickett
Offline
Joined: 19 Nov 2011
Ties in quite nicely with

Ties in quite nicely with your response to my other question: http://www.homeautomationhub.com/content/pushing-data-sql-mysql

Looks like cacti is a good shout then as it will take care of storing the data in mySQL which I can then query from another front-end. My only concern is that stuff will then be a bit all over the place:

WSN collecting data

HAH posting collected data to pachube

Cacti collecting data from HAH and other devices on the network and storing in mySQL

Unknown application querying mySQL db

Although at least I can see that each component has at least 1 important job. I may just need to think about the effects of one or more components failing. On that note- good work on the backup/restore functionality i see you've built into the latest hah firmware :)

Thanks

L

tickett
Offline
Joined: 19 Nov 2011
Damn- i've got cacti up and

Damn- i've got cacti up and running but i'm getting the impression it's storing the configuration information in mySQL but not the actual data used for graphing :-/

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Data is stored in RRD

No I believe the data is stored in a Round-Robin-Database check our rrdtools.

Brett

Hardware Info