TV trovanje
Malopre odgledao kreacionistički pseudo-dokumentarni zaglupljujući dokumentarac o prirodi i Bogu na TV Mostu.
Muka mi je i idem da se ispovraćam...
Muka mi je i idem da se ispovraćam...
#!/usr/bin/perl
use strict;
my $if = $ARGV[0] || mrtg_die();
open(F, ";
close(F);
foreach (grep(/\s+$if\:/, @LINES)) {
/\s+$if\:(\s*\d*){1}/;
my $recv = $1;
$recv =~ s/\s+//g;
/\s+$if\:(\s*\d*){9}/;
my $sent = $1;
$sent =~ s/\s+//g;
print "$recv\n$sent\n0\n0\n";
}
sub mrtg_die() {
print "0\n0\n0\n0\n";
}
WorkDir: /var/www/htdocs/mrtg
Title[nshub]: NS Hub bandwidth (eth0)
PageTop[nshub]: NS Hub bandwidth graphs (eth0)
Target[nshub]: `/usr/local/bin/get_if_stats.pl eth0`
MaxBytes[nshub]: 125000
*/5 * * * * /usr/bin/mrtg /home/kotnik/mrtg.conf &> /dev/null
<fullermd> Therefore all branches are Socrates.
<ddaa> Therefore Diogenes is a dog.
<ddaa> If I have a dog one day, I might call it Diogenes,
that's a cool name for a dog.
<diogenes> ?
<ddaa> oops