トップ 一覧 検索 ヘルプ RSS ログイン

FB-MUNINの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
!MUNIN

!!plugins.conf
 squidのポートをデフォルトの3128以外にしている場合は、/usr/local/etc/munin/plugin-conf.d/plugins.confに以下を追加
 
 [squid*] 
 env.squidhost 127.0.0.1 
 env.squidport 8080

!! httpd.conf (Includes/munin.conf) に次の内容を追加
  munin 2008-05-08
 
 ExtendedStatus On
 Alias /PxyStat/ "/usr/local/www/munin/"
 
 <Directory /usr/local/www/munin>
  Options Indexes FollowSymLinks
  AllowOverride All
  Require all granted
 </Directory>
 
 <Location "/server-status">
    SetHandler server-status
    Require host localhost
 </Location>
 # with cgi works 
 LoadModule cgid_module libexec/apache24/mod_cgid.so
 ScriptAlias /munin-cgi/munin-cgi-graph /usr/local/www/cgi-bin/munin-cgi-graph 
 
 <Location /munin-cgi/munin-cgi-graph>
  Require all granted
  Options +ExecCGI 
  <IfModule mod_fcgid.c>
       SetHandler fcgid-script
  </IfModule>
  <IfModule !mod_fcgid.c>
       SetHandler cgi-script
  </IfModule>
 </Location>
 
 <Directory /usr/local/www/cgi-bin>
  Options +ExecCGI   
  Require all granted
 </Directory>



! node install 
 pkg install munin-master 
 pkg install munin-common munin-node
 pkg install smartmontools
 # smartctl --scan   ## インストールの確認
 
 ## pwd_mkdb /etc/master.passwd
 ## env HTTP_PROXY="http://192.168.11.80:8080" pkg install munin-node smartmontools
 
 # env HTTP_PROXY="http://127.0.0.1:18080" pkg  install munin-node smartmontools
 # Filesystem     Size    Used   Avail Capacity  Mounted on
 # /dev/ada0p2     23G    338M     21G     2%    /
 # /dev/ada0p4     23G    4.2G     17G    20%    /usr
 # /dev/ada0p5     23G    3.1G     18G    14%    /var
 # /dev/ada0p6    378G     11G    337G     3%    /home
 
 # vi /etc/rc.conf
 ### munin_node_enable="YES"
 ### # smartd_enable="YES" ## nothing too do.
 #
 # vi /usr/local/etc/munin/munin-node.conf
 #### cidr_allow 192.168.250.15/32
 #
 # /usr/local/sbin/munin-node-configure --suggest
 #
 #  munin-node-configure --snmp s01l301 --snmpversion 1 --snmpcommunity public  --shell | sh -x 
 # /usr/local/sbin/munin-node-configure --snmp 192.168.0.239 --snmpversion 2C --snmpcommunity public --shell | sh -x 

 #
 # env HTTP_PROXY="http://192.168.11.80:8080" pkg install munin-node smartmontools munin-master   munin-common
 #
 # /usr/local/sbin/munin-node-configure --shell | sh -x
 #
 #   /usr/local/etc/rc.d/munin-node restart
 #
 ## pushd /usr/local/etc/munin/plugins
 ## ln -s /usr/local/share/munin/plugins/coretemp /usr/local/etc/munin/plugins/coretemp
 ## ln -s /usr/local/share/munin/plugins/dev_cpu_ /usr/local/etc/munin/plugins/dev_cpu_temperature
 ## ln -s /usr/local/share/munin/plugins/dev_cpu_ /usr/local/etc/munin/plugins/dev_cpu_freq
 ## /usr/local/sbin/munin-node-configure --shell | sh -x
 ## /usr/local/etc/rc.d/munin-node restart
 # + ln -s /usr/local/share/munin/plugins/hddtemp_smartctl /usr/local/etc/munin/plugins/hddtemp_smartctl
 # + ln -s /usr/local/share/munin/plugins/smart_ /usr/local/etc/munin/plugins/smart_ada0
 #

 # 追加 squid :: /usr/local/etc/munin/plugin-conf.d/plugins.conf
 に
     [squid_*]
     env.squidport 48080
 を追加

 FreeBSD(i386) の 動作が動かないので再インストール
   pkg install -f munin-master munin-common munin-node
   pkg install -f p5-HTML-Parser-3.76_1 p5-HTML-Tagset-3.20_1 p5-HTML-Template-2.97 p5-IO-HTML-1.004
   pkg install -f p5-File-Copy-Recursive
   pkg install ja-font-vlgothic


! munin で snmp 
https://www.lonnie.co.jp/network/munin-snmp/

https://www.lonnie.co.jp/network/munin-snmp/

 ## HOST名 netgear00 
 ## コミュニティ名 public
 munin-node-configure --snmp 192.168.1.30 --snmpversion 1 --snmpcommunity public
 
 # /usr/local/sbin/munin-node-configure --snmp 192.168.0.239 --snmpversion 2C --snmpcommunity public --shell | sh -x


/usr/local/etc/munin/plugin-conf.d/plugins.conf を編集

 [squid_*]
 env.squidport 8080
 
 [snmp_192*]
 env.community public
 env.version 1
 ## env.version 2  ## バージョン2Cの場合


/usr/local/etc/munin/munin.conf を編集
 #######################
 [192.168.1.30]
 address 127.0.0.1
 use_node_name no
 ########################

! firewalld
 # firewall-cmd --add-port=4949/tcp --zone=public --permanent
 success
 # firewall-cmd --reload
 success
 # 

! chrony 
tips-chrony

! smartd_ 
 # vi /etc/munin/plugin-conf.d/smart_
 
 [smart_*]
 user root



! Tips


http://next.matrix.jp/freebsd-munin.html

https://www.server-memo.net/server-setting/munin/munin-install.html

http://next.matrix.jp/freebsd-munin-hddtemp.html


https://github.com/munin-monitoring/contrib/tree/master/plugins/chrony