Nethence Documentation Lab Webmail Your IP BBDock  


Those documents are obsolete, please use the Nethence Documentation instead.

HomeUnixWindowsOracleObsoleteHardwareDIYMechanicsScriptsConfigsPrivate

Setting up the Sysmon system monitoring on NetBSD and FreeBSD 8
 
Introduction
There are three sysmon software to differenciate:
- the one I talk about in here about network monitoring
http://kathryl.fr/wiki/sysmon#test_tcp
http://puck.nether.net/sysmon/
- the one that is included on bsd systems for system performance monitoring
http://wpd.home.xs4all.nl/symon/index.html
- yet another software with same name
 
Installation & Configuration
Install the shit on NetBSD,
echo $PKG_PATH
pkg_add sysmon
or FreeBSD,
echo $PACKAGESITE
pkg_add -r sysmon
 
Make sure the gateway resolvs,
vi /etc/hosts
GATEWAY_IP gw
 
Configure the shit on NetBSD,
cd /etc/
ln -s /usr/pkg/etc/sysmond.conf
cp sysmon.conf sysmond.conf.dist
vi sysmond.conf
or FreeBSD,
cd /usr/local/etc/
cp sysmon.conf.sample sysmon.conf
chmod u+w sysmon.conf
cd /etc
ln -s /usr/local/etc/sysmon.conf
vi sysmond.conf
like e.g.,
root = "gw";
config statusfile html "/data/sysmon.html";
[...]
object gw {
ip "gw.example.local";
type ping;
desc "gw";
contact "user@example";
};

object host {
ip "host.example.local";
type ping;
desc "lilith";
dep "gw";
contact "user@example";
};

object smtp-example {
ip "smtp.example.net";
type smtp;
dep "gw";
desc "smtp-example";
contact "user@example";
};
 
Test the configuration,
sysmond -t
try to start the shit once without forking it to the background,
sysmond -d
 
Ready to go
Start the daemon,
sysmond
note. how nice! You can use the HUP signal to reload the configuration file. At last, a real daemon!
add it to the boot process on NetBSD,
cd /etc/
vi rc.local
/usr/pkg/bin/sysmond && echo -n \ sysmond
on FreeeBSD,
echo -n starting sysmond...
/usr/local/bin/sysmond && echo done
and watch the monitoring interface directly,
sysmon localhost
 
To reload the configuration,
pkill -HUP sysmond
 
 

Last update: Jan 17, 2016