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):
$ export SANET_HOME=/my/path/to/sanet
Import the definition of the GNU/Linux server category:
$ 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://<yourhostname>:7777/sanet/ and enjoy your first SANET installation !
Once you have suceeded setting up basic monitoring, go on to Part 2: Configuring checks in your first GNU/Linux node to learn how to setup and customize new checks and notifications.