PluginOutdatedCatalog: netstat_.diff

File netstat_.diff, 794 bytes (added by frankg, at 2006-03-13T21:03:21+01:00)

netstat_.diff file, sorry forgot to upload it the first time.

Line 
165,72d64
2<         echo 'closedwait.label closed wait'
3<         echo 'closedwait.type GAUGE'
4<         echo 'closedwait.max 50000'
5<         echo 'closedwait.info The number of connections in Closed Wait.'
6<         echo 'timedwait.label timed wait'
7<         echo 'timedwait.type GAUGE'
8<         echo 'timedwait.max 50000'
9<         echo 'timedwait.info The number of connections in Timed Wait.'
1077,79d68
11<
12< perl -e '$close_wait = 0; $time_wait = 0; open FILE,"/proc/net/tcp"; while (<FILE>) { (undef,undef,undef,$state)=split; if ($state =~ /[0-9A-F]+/) { if ($state =~ /^0/) { $state =~ s/^0//; if ($state eq "6") { $time_wait++; } elsif ($state eq "7") { $close_wait++;; } } } } close FILE; print "closedwait.value ", $close_wait, "\n"; print "timedwait.value " , $time_wait, "\n";'
13<