<commit_before>HOWTO: Simple Monitoring on Arduino Yún 
=======================================

I wrote this little howto as a number of people are having issues with basic WWW functionality on the Arduino Yún

The intention is to give a simple introduction to the setting up some nice monitoring tools on the device and exposing them on the WWW page.

Parition Arduino Yún SD
-----------------------

The Arduino Yún usually is paired with an SD card to expand the on-board storage space. This card is best setup with the partioning sketch from http://arduino.cc/en/Tutorial/ExpandingYunDiskSpace

Note that the Arduino should be connected to the host computer running the IDE via USB, and also configured to connect to the Internet via Wifi or Ethernet cable. After that just follow the instructions in the above tutorial to partition your SD card.

Install required software
-------------------------

Log into your Yún via SSH and run the following commands:

    root@Arduino:~# opkg update
    root@Arduino:~# opkg install collectd collectd-mod-df collectd-mod-exec collectd-mod-memory collectd-mod-rrdtool rrdcgi1 rrdtool1

This will install the CollectD statistics engine and the RRD "Round Robin Database" engine used to store the collected data.

Configure Collectd
------------------

Now a small amount of configuration is needed.

The collectd config file example for this HOWTO is located in this GIT repository. Drop it into the /etc/ directory of the Arduino Yun overwriting the one there, or modify the existing one to match.

Important parts to note are:
<commit_msg>Added link to sample image<commit_after>HOWTO: Simple Monitoring on Arduino Yún 
=======================================

I wrote this little howto as a number of people are having issues with basic WWW functionality on the Arduino Yún

The intention is to give a simple introduction to the setting up some nice monitoring tools on the device and exposing them on the WWW page.

Example
-------
![Sample Image](https://github.com/cydergoth/yun_monitor/blob/master/example/Reptile%20House_files/memory.png)

Parition Arduino Yún SD
-----------------------

The Arduino Yún usually is paired with an SD card to expand the on-board storage space. This card is best setup with the partioning sketch from http://arduino.cc/en/Tutorial/ExpandingYunDiskSpace

Note that the Arduino should be connected to the host computer running the IDE via USB, and also configured to connect to the Internet via Wifi or Ethernet cable. After that just follow the instructions in the above tutorial to partition your SD card.

Install required software
-------------------------

Log into your Yún via SSH and run the following commands:

    root@Arduino:~# opkg update
    root@Arduino:~# opkg install collectd collectd-mod-df collectd-mod-exec collectd-mod-memory collectd-mod-rrdtool rrdcgi1 rrdtool1

This will install the CollectD statistics engine and the RRD "Round Robin Database" engine used to store the collected data.

Configure Collectd
------------------

Now a small amount of configuration is needed.

The collectd config file example for this HOWTO is located in this GIT repository. Drop it into the /etc/ directory of the Arduino Yun overwriting the one there, or modify the existing one to match.

Important parts to note are:

{'fraction_non_alphanumeric': 0.09749471777844854, 'fraction_numerical': 0.0018110473890733474, 'mean_word_length': 3.654494382022472, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1707186', 'n_tokens_mistral': 858, 'n_tokens_neox': 811, 'n_words': 457}