Changeset 3390
- Timestamp:
- 02/26/10 21:25:18 (5 months ago)
- Files:
-
- people/snide/pre_1.5/ChangeLog (modified) (1 diff)
- people/snide/pre_1.5/common/lib/Munin/Common/Config.pm (modified) (1 diff)
- people/snide/pre_1.5/master/lib/Munin/Master/LimitsOld.pm (modified) (4 diffs)
- people/snide/pre_1.5/plugins/node.d.linux/tcp.in (modified) (1 diff)
- people/snide/pre_1.5/plugins/node.d/snort_alerts.in (modified) (2 diffs)
- people/snide/pre_1.5/plugins/node.d/snort_bytes_pkt.in (modified) (2 diffs)
- people/snide/pre_1.5/plugins/node.d/snort_drop_rate.in (modified) (2 diffs)
- people/snide/pre_1.5/plugins/node.d/snort_pattern_match.in (modified) (2 diffs)
- people/snide/pre_1.5/plugins/node.d/snort_pkts.in (modified) (2 diffs)
- people/snide/pre_1.5/plugins/node.d/snort_traffic.in (modified) (2 diffs)
- people/snide/pre_1.5/plugins/plugins.history.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
people/snide/pre_1.5/ChangeLog
r3275 r3390 9 9 * Way too much time since the last major stable release. 1.2.0 was 10 10 uploaded to sourceforge in february 2005. 11 12 13 munin 1.4.4, r3276,3379, 2010-2-26 14 15 * Localization problem in 1.4.1 (closes #781) 16 * Sort plugin configuration file order. This ensures some predictability 17 regarding where a configuration setting comes from when multiple files 18 specify the same configuration variables. 19 For details, see debian bug http://bugs.debian.org/564098 20 * munin-cgi-graph*: cgi semaphore fix, hopefully cures #834 21 * Munin/Master/GraphOld.pm sum+colour fix (closes #731) 22 plugin to connect to a separate munin-node (or other daemon speaking the 23 munin-node protocol) and fetch values from there. 24 * munin-update: Fix config line continuation hadling 25 * Add patch from munin ticket #828, to suppress "occasional" unknown states 26 to avoid alerts. Thanks to Steve Wilson for the patch! 27 * proxy_plugin: New proxy plugin, that makes it possible for a single Munin 28 * jmx/Uptime: decimal days, not integer - closes #815 29 * nvidia_: fix suggest 30 * linux/vserver*: fix autoconf exit codes 31 * linux/ip_: RE fix to be able to match IPv6 addresses 32 * linux/selinux_avcstat: New plugin from Lars Strand showing selinux stats 33 Taken from Muninexchange. Thanks to Lars! 34 * linux/lpar_cpu: A plugin to measure IBM PPC hardware virtualization logical 35 partition CPU usage (made for the platform once called OpenPower) 36 * varnish_: backend_unhealthy is a DERIVE value, note that canonical upstream 37 is the varnish project 38 * Add simfs" to linux df* plugins ignore list 39 * linux/buddyinfo multigraph plugin by Gábor Gombás 40 * Remediate patches from Gentoo that never came upstream. 41 Prevents possible output on stderr in plugin linux/iostat_ios and corrects 42 linux/fw_forwarded_local to handle a missing /proc/net/ip_conntrack 43 linux/fw_forwarded_local: need to dereference the _conntrack_file variable 44 * linux/diskstats: Upstream update, closes #838 #835 #837 45 * linux/ip_: Better matching of IPv6 addresses. Use a single awk command 46 instead of a mix of awk and grep. 47 * mysql_: fix graph_base error (Closes #840) Patch from Gábor Gombás 48 * mysql_: plugin suggests wrong values (closes #857) 49 * linux/selinux_avcstat - exit 0 on autoconf 50 * linux/tcp: Add contributed plugin from Tim Small 51 * linux/df_abs: multiple filesystem excludes do not work in df_abs 52 Thanks to Daniel Reichelt for the patch! 53 * snort*: Add documentation and minor updates 54 * multips_memory: correct printing out raw fieldname, 55 instead of clean_fieldname, documentation updates 56 * linux/df_abs: Added configuration option to df_abs to Enable/Disable the 57 graph total (The default is on). Thanks to Daniel Reichelt for the patch, 58 submitted at http://bugs.debian.org/567895 - adapted, tested 59 and documented by Tom Feiner 60 * snmp__if_multi: Add env.ifTypeOnly filtering, fix multiple buglets 61 * mailman: Corrected incorrect use of $MUNIN_PLUGSTATE in mailman plugin 62 * amavis: Change amavis mktempfile function to run with backticks instead of 63 $(command) as it doesnt work correctly piping to sed 64 * exim_mailstats: exim_mailstats doesnt count Completed properly. 65 Thanks to Wakko Warner for noticing this in http://bugs.debian.org/569621 66 * Deprecated tomcat plugins: Fix in to work properly when only one connector 67 is availabe http://bugs.debian.org/543523 68 * postfix_mailstats: Fix shell->perl syntax in perl plugin 69 * apt: update description with a pointer to apt_all 70 * jmx/GCCount - fix negative counts on jvm restart (closes #852) 71 * ping_: fix obvious typo (closes #854) 11 72 12 73 people/snide/pre_1.5/common/lib/Munin/Common/Config.pm
r3389 r3390 37 37 "cdef_name", "graphable", "process", "realname", 38 38 "onlynullcdef", "group_order", "pipe", "pipe_command", 39 "unknown_limit", "n otify_countdown", "dropdownlimit",39 "unknown_limit", "num_unknowns", "dropdownlimit", 40 40 "max_graph_jobs", "munin_cgi_graph_jobs", 41 41 "cgitmpdir", people/snide/pre_1.5/master/lib/Munin/Master/LimitsOld.pm
r3264 r3390 331 331 $crit->[0] ||= ""; 332 332 $crit->[1] ||= ""; 333 $hash->{'worst'} = "UNKNOWN" if $hash->{"worst"} eq "OK"; 334 $hash->{'worstid'} = 3 if $hash->{"worstid"} == 0; 335 munin_set_var_loc(\%notes, [@$fpath, "state"], "unknown"); 336 munin_set_var_loc( 337 \%notes, 338 [@$fpath, "unknown"], ( 339 defined $field->{"extinfo"} 333 334 my $state = "unknown"; 335 my $extinfo = defined $field->{"extinfo"} 340 336 ? "unknown: " . $field->{"extinfo"} 341 : "Value is unknown." 342 ));337 : "Value is unknown."; 338 my $num_unknowns; 343 339 344 340 if ( !defined $onfield … … 347 343 $hash->{'state_changed'} = 1; 348 344 } 349 } 345 else { 346 $hash->{'state_changed'} = 0; 347 } 348 349 # First we'll need to check whether the user wants to ignore 350 # a few UNKNOWN values before actually changing the state to 351 # UNKNOWN. 352 if ($unknown_limit > 1) { 353 if (defined $onfield and defined $onfield->{"state"}) { 354 if ($onfield->{"state"} ne "unknown") { 355 if (defined $onfield->{"num_unknowns"}) { 356 if ($onfield->{"num_unknowns"} < $unknown_limit) { 357 # Don't change the state to UNKNOWN yet. 358 $hash->{'state_changed'} = 0; 359 $state = $onfield->{"state"}; 360 $extinfo = $onfield->{$state}; 361 362 # Increment the number of UNKNOWN values seen. 363 $num_unknowns = $onfield->{"num_unknowns"} + 1; 364 } 365 } 366 else { 367 # Don't change the state to UNKNOWN yet. 368 $hash->{'state_changed'} = 0; 369 $state = $onfield->{"state"}; 370 $extinfo = $onfield->{$state}; 371 372 # Start counting the number of consecutive UNKNOWN 373 # values seen. 374 $num_unknowns = 1; 375 } 376 } 377 } 378 } 379 380 if ($state eq "unknown") { 381 $hash->{'worst'} = "UNKNOWN" if $hash->{"worst"} eq "OK"; 382 $hash->{'worstid'} = 3 if $hash->{"worstid"} == 0; 383 } 384 elsif ($state eq "critical") { 385 $hash->{'worst'} = "CRITICAL"; 386 $hash->{'worstid'} = 2; 387 } 388 elsif ($state eq "warning") { 389 $hash->{'worst'} = "WARNING" if $hash->{"worst"} ne "CRITICAL"; 390 $hash->{'worstid'} = 1 if $hash->{"worstid"} != 2; 391 } 392 393 munin_set_var_loc(\%notes, [@$fpath, "state"], $state); 394 munin_set_var_loc(\%notes, [@$fpath, $state], $extinfo); 395 if (defined $num_unknowns) { 396 munin_set_var_loc(\%notes, [@$fpath, "num_unknowns"], 397 $num_unknowns); 398 } 399 } 400 350 401 elsif ((defined($crit->[0]) and $value < $crit->[0]) 351 402 or (defined($crit->[1]) and $value > $crit->[1])) { … … 423 474 my $crit = munin_get($hash, "critical", undef); 424 475 my $warn = munin_get($hash, "warning", undef); 425 my $unknown_limit = munin_get($hash, "unknown_limit", 1);476 my $unknown_limit = munin_get($hash, "unknown_limit", 3); 426 477 427 478 my $name = munin_get_node_name($hash); … … 455 506 } 456 507 457 # The merge of the unknown_limit implementation was somewhat botched. Not tested. - janl458 508 if ($unknown_limit =~ /^\s*(\d+)\s*$/) { 459 $unknown_limit = $1 if defined $1; 460 DEBUG "[DEBUG] processing unknown_limit: $name -> $unknown_limit"; 509 $unknown_limit = $1 if defined $1; 510 if (defined $unknown_limit) { 511 if ($unknown_limit < 1) { 512 # Zero and negative numbers are not valid. 513 $unknown_limit = 1; 514 } 515 } 516 DEBUG "[DEBUG] processing unknown_limit: $name -> $unknown_limit"; 461 517 } 462 518 people/snide/pre_1.5/plugins/node.d.linux/tcp.in
r3328 r3390 35 35 =head1 MAGIC MARKERS 36 36 37 #%# family= auto38 #%# capabilities=autoconf suggest37 #%# family=manual 38 #%# capabilities=autoconf 39 39 40 40 =cut people/snide/pre_1.5/plugins/node.d/snort_alerts.in
r3340 r3390 57 57 =cut 58 58 59 EOF60 61 59 62 60 if [ -z $statsfile ]; then … … 69 67 if [ -f $_target ]; then 70 68 echo yes 71 exit 072 69 else 73 70 echo "no ($_target not readable)" 74 exit 175 71 fi 72 exit 0 76 73 fi 77 74 people/snide/pre_1.5/plugins/node.d/snort_bytes_pkt.in
r3340 r3390 57 57 =cut 58 58 59 EOF60 61 59 62 60 if [ -z $statsfile ]; then … … 69 67 if [ -f $_target ]; then 70 68 echo yes 71 exit 072 69 else 73 70 echo "no ($_target not readable)" 74 exit 175 71 fi 72 exit 0 76 73 fi 77 74 people/snide/pre_1.5/plugins/node.d/snort_drop_rate.in
r3340 r3390 57 57 =cut 58 58 59 EOF60 61 59 62 60 if [ -z $statsfile ]; then … … 69 67 if [ -f $_target ]; then 70 68 echo yes 71 exit 072 69 else 73 70 echo "no ($_target not readable)" 74 exit 175 71 fi 72 exit 0 76 73 fi 77 74 people/snide/pre_1.5/plugins/node.d/snort_pattern_match.in
r3340 r3390 58 58 =cut 59 59 60 EOF61 62 60 63 61 if [ -z $statsfile ]; then … … 70 68 if [ -f $_target ]; then 71 69 echo yes 72 exit 073 70 else 74 71 echo "no ($_target not readable)" 75 exit 176 72 fi 73 exit 0 77 74 fi 78 75 people/snide/pre_1.5/plugins/node.d/snort_pkts.in
r3340 r3390 58 58 =cut 59 59 60 EOF61 62 60 63 61 if [ -z $statsfile ]; then … … 70 68 if [ -f $_target ]; then 71 69 echo yes 72 exit 073 70 else 74 71 echo "no ($_target not readable)" 75 exit 176 72 fi 73 exit 0 77 74 fi 78 75 people/snide/pre_1.5/plugins/node.d/snort_traffic.in
r3340 r3390 57 57 =cut 58 58 59 EOF60 61 59 62 60 if [ -z $statsfile ]; then … … 69 67 if [ -f $_target ]; then 70 68 echo yes 71 exit 072 69 else 73 70 echo "no ($_target not readable)" 74 exit 175 71 fi 72 exit 0 76 73 fi 77 74 people/snide/pre_1.5/plugins/plugins.history.in
r3275 r3390 321 321 [1.4.3] 322 322 linux/diskstats 323 324 [1.4.4] 325 linux/selinux_avcstat.in 326 linux/lpar_cpu.in 327 linux/buddyinfo.in 328 linux/tcp.in 329 node.d/proxy_plugin.in 330
