2015-01-07 :-(
_ 午後
1300 労働
_ [NetBSD][監視][モニタリング][monit]M/Monit
入れてみたものの。
% cd /usr/pkgsrc/sysutils/monit % make install clean clean-depends : monit-5.8: copying /usr/pkg/share/examples/monit/monitrc.sample to /usr/pkg/etc/monit/monitrc =========================================================================== The following files should be created for monit-5.8: /etc/rc.d/monit (m=0755) [/usr/pkg/share/examples/rc.d/monit] ===========================================================================
rc ファイルコピー
% cp /usr/pkg/share/examples/rc.d/monit /etc/rc.d/
ちなみに rc.d/monit で include してるディレクトリなんだがここは何もない。
% ls /usr/pkg/etc/monit/monit.d/
ひとまず /usr/pkg/etc/monit/monitrc のここだけ注意。use address localhost にすると localhost で bind するっぽい?
set httpd port 2812 and # use address localhost # only accept connection from localhost allow localhost # allow localhost to connect to the server and allow admin:monit # require user 'admin' with password 'monit' allow @monit # allow users of group 'monit' to connect (rw) allow @users readonly # allow users of group 'users' to connect readonly allow 192.168.0.0/255.255.255.0
起動。あとは、うーん。
% sudo /etc/rc.d/monit start Starting monit. monit: Cannot translate 'mogu.area51.gr.jp' to FQDN name -- No address associated with hostname monit: generated unique Monit id 3252f82edac8156318e43265d63471e4 and stored to '/root/.monit.id' Starting monit daemon with http interface at [localhost:2812]
_ 買い物
ARM Cortex-M3 マイコンが付属してる本を探していて安定の Interface に到達。CQ 出版で購入。amazon は中古であり基板が無い。