Part 1: Monitoring your first node ================================== So ... you have succeeded installing your first SANET :) Now... let's try to bring it into life, and let it monitor your first node (that could be any host in your network). Export the environment variable SANET_HOME pointing to the directory where SANET is installed (this is the directory containing the manage.py file. By default it is **/usr/local/sanet**): .. sourcecode:: bash $ export SANET_HOME=/my/path/to/sanet Import the definition of the GNU/Linux server category: .. sourcecode:: bash $ bin/sanet-cli < share/contrib/category-server-linux For this use case we chose **localhost** because ... *there's no place like localhost* ! We suggest you to have an SNMP agent up and running and answering to requests for a specific community (say *public*) originated by localhost, after that you can finally configure SANET to monitor your node: + Choose the appropriate number of threads for your installation (default is 10) + Execute ``bin/sanet-cli`` and paste the following configuration::: conf term site threads 4 node-category server-linux router target reach-server exit target rootfs category storageperc parameter storage_descr "root fs" parameter storage_re ^/$ exit measure rootfs-graph category storage parameter storage_descr "root fs" parameter storage_re ^/$ exit target cpuperc-hr exit measure cpu-hr exit target reboot-hr exit target ramperc-ucd exit measure ram-ucd exit measure swap-ucd exit target swapperc-ucd exit target loadavg category loadavg-threshold-ucd exit measure loadavg-graph category loadavg-ucd exit target nonidle-ucd exit measure nonidle-graph-ucd exit exit node localhost category server-linux icon host exit exit + Start the Poller process by executing ``etc/rc.sanet start``. Take a look at `var/poller_log` to make sure there are no problems... + Start the Web User Interface with ``etc/rc.sanet web``. + Point your browser to `http://:7777/sanet/ `__ and enjoy your first SANET installation ! Bonus section: deploy your installation with Apache ----------------------------------------------------- + Install Apache server version 2.x + Check that your Apache server is up and running + Get your SANET Apache configuration with ``etc/rc.sanet deploy apache``. You'll get the configuration fragment ready to be put in your `apache.conf` along with some symlinks that you need to put in your DocumentRoot. + Restart your Apache server with ``apachectl restart``. + Point your browser to `http:///sanet/ `__ Once you have suceeded setting up basic monitoring, go on to :doc:`02` to learn how to setup and customize new checks and notifications.