"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/node.d.linux/netstat.in" between
munin-2.0.66.tar.gz and munin-2.0.67.tar.gz

About: Munin is a tool for graphing all sorts of information about one or more servers and displaying it in a web interface (requires Perl and RRDTool).

netstat.in  (munin-2.0.66):netstat.in  (munin-2.0.67)
skipping to change at line 66 skipping to change at line 66
exit 0 exit 0
else else
echo "no (unknown netstat return value $?)" echo "no (unknown netstat return value $?)"
exit 0 exit 0
fi fi
fi fi
fi fi
if [ "$1" = "config" ]; then if [ "$1" = "config" ]; then
echo 'graph_title Netstat' echo 'multigraph netstat'
echo 'graph_args --base 1000 --logarithmic' echo 'graph_title Netstat, combined'
echo 'graph_args --units=si -l 1 --base 1000 --logarithmic'
echo 'graph_vlabel TCP connections' echo 'graph_vlabel TCP connections'
echo 'graph_category network' echo 'graph_category network'
echo 'graph_period second' echo 'graph_period second'
echo 'graph_info This graph shows the TCP activity of all the network int erfaces combined.' echo 'graph_info This graph shows the TCP activity of all the network int erfaces combined.'
echo 'active.label active' echo 'active.label active'
echo 'active.type DERIVE' echo 'active.type DERIVE'
echo 'active.min 0' echo 'active.min 0'
echo 'active.max 50000' echo 'active.max 50000'
echo 'active.info The number of active TCP openings per second.' echo 'active.info The number of active TCP openings per second.'
print_warning active print_warning active
skipping to change at line 102 skipping to change at line 103
print_critical failed print_critical failed
echo 'resets.label resets' echo 'resets.label resets'
echo 'resets.type DERIVE' echo 'resets.type DERIVE'
echo 'resets.min 0' echo 'resets.min 0'
echo 'resets.max 50000' echo 'resets.max 50000'
echo 'resets.info The number of TCP connection resets.' echo 'resets.info The number of TCP connection resets.'
print_warning resets print_warning resets
print_critical resets print_critical resets
echo 'established.label established' echo 'established.label established'
echo 'established.type GAUGE' echo 'established.type GAUGE'
echo 'established.max 50000'
echo 'established.info The number of currently open connections.' echo 'established.info The number of currently open connections.'
print_warning established print_warning established
print_critical established print_critical established
echo ''
echo 'multigraph netstat_established'
echo 'graph_title Netstat, established only'
echo 'graph_args --lower-limit 0'
echo 'graph_vlabel TCP connections'
echo 'graph_category network'
echo 'graph_period second'
echo 'graph_info This graph shows the TCP activity of all the network int
erfaces combined.'
echo 'established.label established'
echo 'established.type GAUGE'
echo 'established.info The number of currently open connections.'
print_warning established
print_critical established
exit 0 exit 0
fi fi
# Newer versions of net tools' netstat have fixed the 'active connection # Newer versions of net tools' netstat have fixed the 'active connection
# openings' string from plural connections to singular. The match hereby is for # openings' string from plural connections to singular. The match hereby is for
# both cases. # both cases.
# #
echo 'multigraph netstat'
"$NETSTAT_CMD" -s | awk ' "$NETSTAT_CMD" -s | awk '
/active connection(s)? ope/ { print "active.value " $1 } /active connection(s)? ope/ { print "active.value " $1 }
/passive connection ope/ { print "passive.value " $1 } /passive connection ope/ { print "passive.value " $1 }
/failed connection/ { print "failed.value " $1 } /failed connection/ { print "failed.value " $1 }
/connection resets/ { print "resets.value " $1 } /connection resets/ { print "resets.value " $1 }
/connections established/ { print "established.value " $1 }' /connections established/ { print "established.value " $1 }'
echo
echo 'multigraph netstat_established'
"$NETSTAT_CMD" -s | awk '
/connections established/ { print "established.value " $1 }'
 End of changes. 5 change blocks. 
3 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)