]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
fixed collection deamon integration
authormaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 2 Feb 2008 17:46:51 +0000 (17:46 +0000)
committermaniacikarus <maniacikarus@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sat, 2 Feb 2008 17:46:51 +0000 (17:46 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1175 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/collectd/collectd.conf
config/rootfiles/core/7/files
config/rootfiles/core/7/update.sh
html/cgi-bin/graphs.cgi
html/cgi-bin/hardwaregraphs.cgi
html/cgi-bin/network.cgi
src/initscripts/init.d/collectd

index e01487f50436a3aa089ca1b51482600719059e43..bfb8de6d56e824afe59ee1c80df42f85c72f7d0a 100644 (file)
@@ -29,7 +29,7 @@ LoadPlugin iptables
 #LoadPlugin irq
 LoadPlugin load
 #LoadPlugin logfile
-#LoadPlugin mbmon
+LoadPlugin mbmon
 #LoadPlugin memcached
 LoadPlugin memory
 #LoadPlugin multimeter
@@ -119,10 +119,10 @@ LoadPlugin syslog
 #      File STDOUT
 #</Plugin>
 
-#<Plugin mbmon>
-#      Host "127.0.0.1"
-#      Port "411"
-#</Plugin>
+<Plugin mbmon>
+       Host "127.0.0.1"
+       Port "411"
+</Plugin>
 
 #<Plugin memcached>
 #      Host "127.0.0.1"
index 308187ac492d23afbddc5f345f3e5b1a6018f16c..6b63a14100ee72ea7ac987be6063bdecada8bee5 100644 (file)
@@ -8,3 +8,4 @@ usr/local/bin/makegraphs
 usr/sbin/collectd
 var/ipfire/graphs.pl
 var/ipfire/menu.d/20-status.menu
+var/ipfire/langs
index 85c6d53dfce36ec3dd72e99fb1e2c9c579234e2c..14eea1693f7bb17be9329d8b12c8c116efdf731f 100644 (file)
@@ -4,3 +4,7 @@ extract_files
 ln -s /etc/rc.d/rc0.d/K50collectd /etc/init.d/collectd
 ln -s /etc/rc.d/rc3.d/S20collectd /etc/init.d/collectd
 ln -s /etc/rc.d/rc6.d/K50collectd /etc/init.d/collectd
+GATEWAY=$(cat /var/ipfire/red/remote-ipaddress)
+echo "$GATEWAY gateway" >> /etc/hosts
+/etc/init.d/collectd start
+perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
index 282cb56594ec03e5b4315461be00b80f64556510..4c7c7e181ac3d9535e3d0f6f222a83f949f3e77b 100644 (file)
@@ -51,7 +51,6 @@ if ($cgigraphs[1] =~ /(cpu)/) {&Graphs::updatecpugraph ("hour");&Graphs::updatec
 if ($cgigraphs[1] =~ /(memory|swap)/) {&Graphs::updatememgraph ("hour");&Graphs::updatememgraph ("week");&Graphs::updatememgraph ("month");&Graphs::updatememgraph ("year");}
 if ($cgigraphs[1] =~ /disk/){
           my @devices = `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`;
-                                       push(@devices,"uba");
           foreach (@devices) {
                 my $device = $_;
                 chomp($device);
index 0c8881877289058cdb02bdea9a200dad207cb0fd..22b20485f706d4e3cdfc84b84965d52bf40b49f6 100644 (file)
@@ -151,10 +151,10 @@ sub graphbox {
  
        &Header::openbox('100%', 'center', "$graph $Lang::tr{'graph'}");
        if (-e "$graphdir/mbmon-$graph-week.png"){
-                        my $ftime = localtime((stat("$graphdir/mbmon-$graph-day.png"))[9]);
+                        my $ftime = localtime((stat("$graphdir/mbmon-$graph-week.png"))[9]);
                         print "<center>";
                         print "<b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
-                        print "<img src='/graphs/mbmon-$graph-day.png' border='0' /><hr />";
+                        print "<img src='/graphs/mbmon-$graph-week.png' border='0' /><hr />";
         }
         else{print $Lang::tr{'no information available'};}
         &Header::closebox();
index 53e2cfc9a3e0cdf7d16388cd2e5e2c40451e5c66..17febf73278dafa3d2d8cb3cc197608a2fd3dfc7 100644 (file)
@@ -51,7 +51,7 @@ $cgiparams[1] = '' unless defined $cgiparams[1];
 if ($cgiparams[1] =~ /red/) {
        &Header::openpage($Lang::tr{'network traffic graphs external'}, 1, '');
        push (@graphs, ($netsettings{'RED_DEV'}));
-       push (@graphs, ("ipsec0"));
+       if (-e "/var/log/rrd/collectd/localhost/interface/if_octets-ipsec0.rrd") {push (@graphs, ("ipsec0"));
 }elsif ($cgiparams[1] =~ /other/) {
        &Header::openpage($Lang::tr{'network traffic graphs others'}, 1, '');
        push (@graphs, ("lq"));
index f3fa208b24093e0ddeb0efe20aa4434135284291..e6ee268452d3311bceb1e4639a085f68f3aab386 100644 (file)
@@ -11,15 +11,15 @@ case "$1" in
                /usr/sbin/collectd -C /etc/collectd.conf
                evaluate_retval
 #              for disk in `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; do boot_mesg "Bringing up hddtemp daemon for $disk ..."; /usr/sbin/hddtemp $disk -d -l localhost; evaluate_retval; done
-#              boot_mesg "Bringing up mbmon daemon..."
-#              /usr/bin/mbmon -P 411 -r
-#              evaluate_retval
+               boot_mesg "Bringing up mbmon daemon..."
+               /usr/bin/mbmon -P 411 -r
+               evaluate_retval
                ;;
 
        stop)
-#              boot_mesg "Stopping mbmon daemon..."
-#              killproc /usr/bin/mbmon
-#              evaluate_retval
+               boot_mesg "Stopping mbmon daemon..."
+               killproc /usr/bin/mbmon
+               evaluate_retval
 #              boot_mesg "Stopping hddtemp daemon..."
 #              killproc /usr/sbin/hddtemp
 #              evaluate_retval