Differences

This shows you the differences between the selected revision and the current version of the page.

howto:munin_monitoring 2010/12/14 02:28 howto:munin_monitoring 2017/09/06 18:38 current
Line 13: Line 13:
  # chdir /mnt/HD_a2   # chdir /mnt/HD_a2
  # wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/perl/perl-5.10-2.tgz   # wget http://www.inreto.de/dns323/fun-plug/0.5/extra-packages/perl/perl-5.10-2.tgz
-  # wget -O munin-node-1.4.5-2.tgz http://forum.dsmg600.info/attachment.php?item=662 +  # wget -O munin-node-1.4.5-2.tgz http://dns323.kood.org/forum/attachment.php?item=662 
-  # wget -O perl-mod-Net-Server-0.99-1.tgz http://forum.dsmg600.info/attachment.php?item=661+  # wget -O perl-mod-Net-Server-0.99-1.tgz http://dns323.kood.org/forum/attachment.php?item=661
When the download is complete the packages should be installed When the download is complete the packages should be installed
Line 68: Line 68:
  steal.value 0   steal.value 0
 +
 +The 'df' script (/ffp/share/munin/plugins/df) not work properly because the busybox df command is less about.
 +Change the original line to the repaired line:
 +
 +The original line: 
 +  my $dfopts = "-P -l".join(' -x ',('',split('\s+',$exclude)));
 +The repaired line
 +  my $dfopts = "-k | grep -v -e /dev/loop0 -e rootfs";
 +
 +or use this script:
 +  #!/ffp/bin/sh
 + 
 +  cp /ffp/share/munin/plugins/df /ffp/share/munin/plugins/df_bak
 +  cat /ffp/share/munin/plugins/df_bak | sed 's/my \$dfopts = "-P -l".*$/my $dfopts = "-k | grep -v -e \/dev\/loop0 -e rootfs";/' > /ffp/share/munin/plugins/df
 +  ln -s /ffp/share/munin/plugins/df /ffp/etc/munin/plugins
 +  killall -9 munin-node
 +  /ffp/start/munin-node.sh restart
 +
Be aware that some plugins may require additional dependencies. Be aware that some plugins may require additional dependencies.
Line 75: Line 93:
  allow ^191\.168\.1\.2$   allow ^191\.168\.1\.2$
-Of course you should substitute 191.168.1.2 with the IP of the Munin master. The addresses look weird because the ''allow'' directives takes Perl regular expressions, and dots have to be escaped.+Of course you should substitute ''191.168.1.2'' with the IP of the Munin master. The addresses look weird because the ''allow'' directives takes Perl regular expressions, and dots have to be escaped.
The next step is to enable the ''munin-node'' daemon The next step is to enable the ''munin-node'' daemon
Line 106: Line 124:
  [dns323]   [dns323]
-      address 192.168.1.2+      address 192.168.1.3
      use_node_name yes       use_node_name yes
-Instead of ''dns323'' you can put any other string that identifies the device, for example its hostname, and instead of ''192.168.1.2'' you should provide the IP address of the node.+Instead of ''dns323'' you can put any other string that identifies the device, for example its hostname, and instead of ''192.168.1.3'' you should provide the IP address of the node.
There is no need to restart anything, the Munin master is a process executed from cron, not a daemon. You just have to wait about 5 minutes for the next cron invocation and check the HTML output by opening ''file:///var/cache/munin/www/index.html'' in a browser. There is no need to restart anything, the Munin master is a process executed from cron, not a daemon. You just have to wait about 5 minutes for the next cron invocation and check the HTML output by opening ''file:///var/cache/munin/www/index.html'' in a browser.

Navigation

Personal Tools