You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(34) |
Feb
(22) |
Mar
(2) |
Apr
(4) |
May
|
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(2) |
Oct
(4) |
Nov
(2) |
Dec
(22) |
2009 |
Jan
(20) |
Feb
(7) |
Mar
(5) |
Apr
(7) |
May
(10) |
Jun
|
Jul
(2) |
Aug
|
Sep
(21) |
Oct
(6) |
Nov
(10) |
Dec
(6) |
2010 |
Jan
(1) |
Feb
(4) |
Mar
(14) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(5) |
Dec
(3) |
2011 |
Jan
(35) |
Feb
(1) |
Mar
(12) |
Apr
(9) |
May
(2) |
Jun
|
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dba...@us...> - 2011-03-18 00:17:11
|
Revision: 218 http://devmon.svn.sourceforge.net/devmon/?rev=218&view=rev Author: dbaldwin Date: 2011-03-18 00:17:03 +0000 (Fri, 18 Mar 2011) Log Message: ----------- revert to whitespace surrounded x substitution - too hard to handle cases such as {oid}x3 since numbers dont match \b Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-03-18 00:04:05 UTC (rev 217) +++ trunk/modules/dm_tests.pm 2011-03-18 00:17:03 UTC (rev 218) @@ -458,7 +458,7 @@ my $print_mask = '%.' . $precision . 'f'; # Convert our math symbols to their perl equivalents - $expr =~ s/\bx\b/\*/g; # Multiplication + $expr =~ s/\sx\s/ \* /g; # Multiplication $expr =~ s/\^/**/g; # Exponentiation # Extract all our our parent oids from the expression, first This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: David B. <dav...@au...> - 2011-03-18 00:08:50
|
Buchan, My apologies for my previous message - I wasn't reading the TEMPLATES file from the latest SVN when I wrote my reply. I have added an now probably superfluous additional clarification. I still think it would be desirable to support '*' as an alternative to 'x' (and less work!). My earlier commit changing s/ x / \* / to s/\bx\b/\*/ doesn't handle cases like 2x3 anyway :( It would probably be necessary to parse the expression, similar to what is done in dm_templates to tokenise the expression and then do the substitutions and then reassemble the expression. David. > On 17/03/11 8:03 PM, Buchan Milne wrote: >> ----- dba...@us... wrote: >> >>> Revision: 216 >>> http://devmon.svn.sourceforge.net/devmon/?rev=216&view=rev >>> Author: dbaldwin >>> Date: 2011-03-17 05:07:31 +0000 (Thu, 17 Mar 2011) >>> >>> Log Message: >>> ----------- >>> allow multiplication without space surrounding - e.g. {oid1}x{oid2} >> I specifically didn't take this approach, as having spaces around is more readable. I fixed all templates in svn that didn't have spaces. If you were affected, you're using templates not in svn ... >> > I will check in some of my templates - point taken. > > If the operator is ' x ' then the doco should make that clear. The > TEMPLATES file says 'x', and the comment immediately following the > operators list explicitly says "This transform is not whitespace > sensitive...". Readability is one thing, but syntactic value is another. > Not picking on you, just pointing out an inconsistency. > > Personally, I'd rather that '*' was also supported - the people who are > likely to develop templates are more likely to be comfortable with that > anyway. Why not allow both? > > I'd actually been caught out by an earlier version of devmon which still > had s/x/\*/ and I was using an OID with an x (or two) in its name. > Wasted an hour tracking it down :( > > I'm now running the latest SVN version in test and will update in prod. > > Thanks, David. >> Regards, >> Buchan >> >> ------------------------------------------------------------------------------ >> Colocation vs. Managed Hosting >> A question and answer guide to determining the best fit >> for your organization - today and in the future. >> http://p.sf.net/sfu/internap-sfd2d >> _______________________________________________ >> Devmon-devel mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devmon-devel > -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 dav...@au... Leverrier Street Bruce ACT 2617 ------------------------------------------------------------------------------------- Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. ------------------------------------------------------------------------------------- |
From: <dba...@us...> - 2011-03-18 00:04:11
|
Revision: 217 http://devmon.svn.sourceforge.net/devmon/?rev=217&view=rev Author: dbaldwin Date: 2011-03-18 00:04:05 +0000 (Fri, 18 Mar 2011) Log Message: ----------- clarification on whitespace around "x" Modified Paths: -------------- trunk/docs/TEMPLATES Modified: trunk/docs/TEMPLATES =================================================================== --- trunk/docs/TEMPLATES 2011-03-17 05:07:31 UTC (rev 216) +++ trunk/docs/TEMPLATES 2011-03-18 00:04:05 UTC (rev 217) @@ -431,7 +431,7 @@ operators: '+' (Addition) '-' (Subtraction) - 'x' (Multiplication) + ' x ' (Multiplication - note white space on each side) '/' (Division) '^' (Exponentiation) '%' (Modulo or Remainder) @@ -440,7 +440,7 @@ ' . ' (string concatenation - note white space each side) '(' and ')' (Expression nesting) - This transform is not whitespace sensitive, except in the case of x, so both: + This transform is not whitespace sensitive, except in the case of ' x ' and ' . ' , so both: {sysUpTime} / 100 and {sysUpTime}/100 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: David B. <dav...@au...> - 2011-03-17 23:17:22
|
On 17/03/11 8:03 PM, Buchan Milne wrote: > ----- dba...@us... wrote: > >> Revision: 216 >> http://devmon.svn.sourceforge.net/devmon/?rev=216&view=rev >> Author: dbaldwin >> Date: 2011-03-17 05:07:31 +0000 (Thu, 17 Mar 2011) >> >> Log Message: >> ----------- >> allow multiplication without space surrounding - e.g. {oid1}x{oid2} > I specifically didn't take this approach, as having spaces around is more readable. I fixed all templates in svn that didn't have spaces. If you were affected, you're using templates not in svn ... > I will check in some of my templates - point taken. If the operator is ' x ' then the doco should make that clear. The TEMPLATES file says 'x', and the comment immediately following the operators list explicitly says "This transform is not whitespace sensitive...". Readability is one thing, but syntactic value is another. Not picking on you, just pointing out an inconsistency. Personally, I'd rather that '*' was also supported - the people who are likely to develop templates are more likely to be comfortable with that anyway. Why not allow both? I'd actually been caught out by an earlier version of devmon which still had s/x/\*/ and I was using an OID with an x (or two) in its name. Wasted an hour tracking it down :( I'm now running the latest SVN version in test and will update in prod. Thanks, David. > Regards, > Buchan > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Devmon-devel mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-devel -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 dav...@au... Leverrier Street Bruce ACT 2617 ------------------------------------------------------------------------------------- Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. ------------------------------------------------------------------------------------- |
From: Buchan M. <bg...@st...> - 2011-03-17 09:03:18
|
----- dba...@us... wrote: > Revision: 216 > http://devmon.svn.sourceforge.net/devmon/?rev=216&view=rev > Author: dbaldwin > Date: 2011-03-17 05:07:31 +0000 (Thu, 17 Mar 2011) > > Log Message: > ----------- > allow multiplication without space surrounding - e.g. {oid1}x{oid2} I specifically didn't take this approach, as having spaces around is more readable. I fixed all templates in svn that didn't have spaces. If you were affected, you're using templates not in svn ... Regards, Buchan |
From: <dba...@us...> - 2011-03-17 05:07:38
|
Revision: 216 http://devmon.svn.sourceforge.net/devmon/?rev=216&view=rev Author: dbaldwin Date: 2011-03-17 05:07:31 +0000 (Thu, 17 Mar 2011) Log Message: ----------- allow multiplication without space surrounding - e.g. {oid1}x{oid2} Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-03-17 03:58:58 UTC (rev 215) +++ trunk/modules/dm_tests.pm 2011-03-17 05:07:31 UTC (rev 216) @@ -458,7 +458,7 @@ my $print_mask = '%.' . $precision . 'f'; # Convert our math symbols to their perl equivalents - $expr =~ s/ x / \* /g; # Multiplication + $expr =~ s/\bx\b/\*/g; # Multiplication $expr =~ s/\^/**/g; # Exponentiation # Extract all our our parent oids from the expression, first This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dba...@us...> - 2011-03-17 03:59:04
|
Revision: 215 http://devmon.svn.sourceforge.net/devmon/?rev=215&view=rev Author: dbaldwin Date: 2011-03-17 03:58:58 +0000 (Thu, 17 Mar 2011) Log Message: ----------- clean up quoting of curly braces in s// Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-25 13:54:36 UTC (rev 214) +++ trunk/modules/dm_tests.pm 2011-03-17 03:58:58 UTC (rev 215) @@ -473,7 +473,7 @@ my @repeaters; for my $dep_oid (@dep_oids) { push @repeaters, $dep_oid and next if $oids->{$dep_oid}{'repeat'}; - $expr =~ s/\{$dep_oid}/$oids->{$dep_oid}{'val'}/g; + $expr =~ s/\{$dep_oid\}/$oids->{$dep_oid}{'val'}/g; } # Handle repeater-type oids @@ -482,7 +482,7 @@ # Sure, we could just do a regsub for every dep_oid on every leaf, but # thats pretty expensive CPU-wise for (my $i = 0; $i <= $#repeaters; $i++) { - $expr =~ s/\{$repeaters[$i]}/\$dep_val[$i]/g; + $expr =~ s/\{$repeaters[$i]\}/\$dep_val[$i]/g; } for my $leaf (keys %{$oids->{$oid_h->{'pri_oid'}}{'val'}}) { @@ -1454,7 +1454,7 @@ my @repeaters; for my $dep_oid (@dep_oids) { push @repeaters, $dep_oid and next if $oids->{$dep_oid}{'repeat'}; - $expr =~ s/\{$dep_oid}/$oids->{$dep_oid}{'val'}/g; + $expr =~ s/\{$dep_oid\}/$oids->{$dep_oid}{'val'}/g; } # See if we are a repeating variable type datum @@ -1463,7 +1463,7 @@ # Map the names of our repeater oids to a position on a placeholder array for (my $i = 0; $i <= $#repeaters; $i++) { - $expr =~ s/\{$repeaters[$i]}/\$dep_val[$i]/g; + $expr =~ s/\{$repeaters[$i]\}/\$dep_val[$i]/g; } for my $leaf (keys %{$oids->{$oid_h->{'pri_oid'}}{'val'}}) { @@ -1932,7 +1932,7 @@ if($flag eq 'color') { # Honor the 'alarm' exceptions - $row_data =~ s/\{$root}/&$color /; + $row_data =~ s/\{$root\}/&$color /; # If this test has a worse color, use it for the global color $worst_color = $color if !defined $worst_color or @@ -1943,13 +1943,13 @@ elsif ($flag eq 'msg') { my $substr = $oid_h->{'msg'}{$leaf}; $substr = 'Undefined' if !defined $substr; - $row_data =~ s/\{$root}/$substr/; + $row_data =~ s/\{$root\}/$substr/; } # This flag only causes errors (with the color) to be displayed # Will also modify global color type elsif ($flag eq 'errors') { - $row_data =~ s/\{$root}//; + $row_data =~ s/\{$root\}//; next if $color eq 'green'; @@ -1974,7 +1974,7 @@ $oids->{$oid}{'thresh'}{$th_col}{'val'}; $thresh = 'Undefined' if !defined $thresh; - $row_data =~ s/\{$root}/$thresh/; + $row_data =~ s/\{$root\}/$thresh/; } # Uknown flag @@ -1987,7 +1987,7 @@ else { my $substr = $oids->{$root}{'repeat'} ? $oids->{$root}{'val'}{$leaf} : $oids->{$root}{'val'}; $substr = 'Undefined' if !defined $substr; - $row_data =~ s/\{$root}/$substr/; + $row_data =~ s/\{$root\}/$substr/; } } @@ -2090,20 +2090,20 @@ # If this test has a worse color, use it for the global color $worst_color = $color if !defined $worst_color or $colors{$worst_color} < $colors{$color}; - $line =~ s/\{$root}/\&$color /; + $line =~ s/\{$root\}/\&$color /; } elsif ($flag eq 'msg') { my $data = $oid_h->{'msg'}; $data = "Undefined" if !defined $data; $data = parse_deps($oids, $data, undef); - $line =~ s/\{$root}/$data/; + $line =~ s/\{$root\}/$data/; } # This flag only causes errors (with the color) to be displayed # Can also modifies global color elsif ($flag eq 'errors') { - $line =~ s/\{$root}/#ERRORONLY#/; + $line =~ s/\{$root\}/#ERRORONLY#/; # Skip this value if it is green next if !defined $color or $color eq 'green'; @@ -2128,7 +2128,7 @@ $oids->{$oid}{'thresh'}{$th_col}{'val'}; $thresh = 'Undefined' if !defined $thresh; - $line =~ s/\{$root}/$thresh/; + $line =~ s/\{$root\}/$thresh/; } # Unknown flag @@ -2142,7 +2142,7 @@ my $val = $oid_h->{'val'}; $val = "Unknown" if !defined $val; - $line =~ s/\{$root}/$val/; + $line =~ s/\{$root\}/$val/; } } @@ -2306,7 +2306,7 @@ } } - $msg =~ s/\{$dep_oid}/$val/g; + $msg =~ s/\{$dep_oid\}/$val/g; } return $msg; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2011-02-01 15:13:52
|
Bugs item #3169733, was opened at 2011-02-01 16:13 Message generated for change (Tracker Item Submitted) made by wnelis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=3169733&group_id=160720 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Templates Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Wim Nelis (wnelis) Assigned to: Nobody/Anonymous (nobody) Summary: New templates for Cisco 3750 switch Initial Comment: The following modifications of the templates for a Cisco 3750 switch are in use at our site for over a year. The modifications are: - the number of errors / discards / collisions are computed per second (rate) and per packet (load), rather than per bit. - in test if_stat also the duplex state (half, full) is shown. An alert is generated in case of a half-duplex connection of 1 Gb/s. (We intend to extend this test to alert on a 100 Mb/s half-duplex connection as well.) - at the top of the tables the interfaces for which alerts will be generated is *not* shown, using the noalarmsmsg option. - the layout of the tables is more consistent Notes: - The templates are used for 3750 switches running IOS version 12.2(40) or newer - In the template files TAB characters are used. These are expanded by `svn diff` to multiple spaces, causing the layout to become somewhat messy - We use the same modifications for other cisco switches as well, notably for 2970 en 6509 switches. The modifications will probably work for a number of other switch types as well. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=3169733&group_id=160720 |
From: <buc...@us...> - 2011-01-25 13:54:42
|
Revision: 214 http://devmon.svn.sourceforge.net/devmon/?rev=214&view=rev Author: buchanmilne Date: 2011-01-25 13:54:36 +0000 (Tue, 25 Jan 2011) Log Message: ----------- Wrap all socket comms to Hobbit/BB when sending status messages in eval/alarm blocks Add more debug logging when sending messages Modified Paths: -------------- trunk/modules/dm_msg.pm Modified: trunk/modules/dm_msg.pm =================================================================== --- trunk/modules/dm_msg.pm 2011-01-25 12:05:18 UTC (rev 213) +++ trunk/modules/dm_msg.pm 2011-01-25 13:54:36 UTC (rev 214) @@ -53,6 +53,7 @@ return; } + do_log("DEBUG: Looping through messages for this socket",3) if $g{'debug'}; # Run until we are out of messages to send SOCKLOOP: while(@{$g{'test_results'}}) { @@ -60,20 +61,44 @@ select undef, undef, undef, $g{'msgsleep'} / 1000; # Open our socket to the host - socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp')) - or do_log("Failed to create socket ($!)",0) and - $g{'msgxfrtime'} = time - $g{'msgxfrtime'} and return; - if (!connect(SOCK, $p_addr)) { - do_log("Can't connect to display server $host ($!)",0); - $g{'msgxfrtime'} = time - $g{'msgxfrtime'}; - close SOCK; - return; + do_log("DEBUG: Opening socket to $host:$g{'dispport'}",3) if $g{'debug'}; + eval { + local $SIG{ALRM} = sub { die "Socket timed out" }; + alarm 10; + socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp')) + or do_log("Failed to create socket ($!)",0) and + $g{'msgxfrtime'} = time - $g{'msgxfrtime'} and return; + alarm 0; + local $SIG{ALRM} = sub { die "Connect timed out" }; + alarm 10; + if (!connect(SOCK, $p_addr)) { + do_log("Can't connect to display server $host ($!)",0); + $g{'msgxfrtime'} = time - $g{'msgxfrtime'}; + close SOCK; + return; + } + alarm 0; + }; + if ($@) { + do_log("Timed out connecting to display server: $!",0); + return; } # Tell the display server that we are sending a combo msg - print SOCK "combo\n"; + eval { + local $SIG{ALRM} = sub { die "Print timed out" }; + alarm 10; + print SOCK "combo\n"; + alarm 0; + }; + if ($@) { + do_log("Timed out printing to display server: $!",0); + close SOCK; + return; + } # Now print to this socket until we hit the max msg size + do_log("DEBUG: Looping through messages to build a combo",3) if $g{'debug'}; my $msg_size = 0; MSGLOOP: while($msg_size < $g{'msgsize'} and @{$g{'test_results'}}) { @@ -90,9 +115,20 @@ # Nuts, this is a huge message, bigger than our msg size. Well want # to send it by itself to minimize how much it gets truncated if($msg_size == 0) { + do_log("DEBUG: Printing single combo message",3) if $g{'debug'}; # Okay, we are clear, send the message - print SOCK "$msg\n"; - } + eval { + local $SIG{ALRM} = sub { die "Printing message timed out" }; + alarm 10; + print SOCK "$msg\n"; + alarm 0; + }; + if ($@) { + do_log("Timed out printing to display server: $!",0); + close SOCK; + return; + } + } # Not an empty combo msg, wait till our new socket is open else { @@ -116,7 +152,18 @@ # Looks good, print the msg else { - print SOCK "$msg\n"; + do_log("DEBUG: Printing combo message with multiple messages",3) if $g{'debug'}; + eval { + local $SIG{ALRM} = sub { die "Printing message timed out" }; + alarm 10; + print SOCK "$msg\n"; + alarm 0; + }; + if ($@) { + do_log("Timed out printing to display server: $!",0); + close SOCK; + return; + } $msg_size += length $msg; } @@ -130,14 +177,25 @@ # Now send our dm status message! if(!$g{'print_msg'}) { + do_log("DEBUG: Connecting and sending dm message",3) if $g{'debug'}; my $dm_msg = dm_stat_msg(); - socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp')) - or do_log("Failed to create socket ($!)",0) and return; - connect(SOCK, $p_addr) - or do_log("Can't connect to display server ($!)",0) and return; + eval { + local $SIG{ALRM} = sub { die "Connecting and sending dm message timed out" }; + alarm 10; + socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname('tcp')) + or do_log("Failed to create socket ($!)",0) and return; + connect(SOCK, $p_addr) + or do_log("Can't connect to display server ($!)",0) and return; - print SOCK "$dm_msg\n"; - close SOCK; + print SOCK "$dm_msg\n"; + close SOCK; + alarm 0; + }; + if ($@) { + do_log("Timed out connecting and sending dm: $!",0); + close SOCK; + return; + } } do_log("Done sending messages",2); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2011-01-25 12:25:19
|
Bugs item #2897345, was opened at 2009-11-13 19:05 Message generated for change (Comment added) made by buchanmilne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2897345&group_id=160720 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Devmon Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: devmon goes purple Initial Comment: Regarding devmon version 0.3.1-beta1 - Devmon stops working at irregular intervals. - The dm column in xymon "goes purple" for lack of new information. - devmon processes remain running. - running "sudo killall devmon" (on ubuntu 8.10) is enough to return to a "green" state - no errors or new entries in devmon.log file after communication stops - upon sending a SIGTERM to the devmon master process, it stops all other processes, so it looks like it is responding to signals as it should Other users have commented that running a cron job to kill the processes is their workaround. Or to use xymon to run a SCRIPT upon receiving a "purple" alert to restart the services. (comments compiled from thorsten.erdmann and gthomas on hobbit/xymon mailing list) ---------------------------------------------------------------------- >Comment By: Buchan Milne (buchanmilne) Date: 2011-01-25 14:25 Message: I have now been able to test current svn in an environment that experiences this problem. The changes in svn didn't cure this. In this case, it seems like devmon hung while trying to send the actual status messages to hobbit. I'm working on adding timeouts here as well. ---------------------------------------------------------------------- Comment By: Buchan Milne (buchanmilne) Date: 2010-03-11 01:26 Message: I have now committed some changes I have been working on, that should hopefully: 1)Log more information in case of any socket communication errors 2)Provide information on fork behaviour in the dm test for the polling host 3)Provide for terminating forks that seem to be stalled (by sending data to idle forks to ensure they are alive), as a workaround that should prevent having to have scripts to restart devmon 4)Add timeouts for all socket communication (using "alarm" and "eval"), hopefully fixing the original problem If you can reproduce this issue with any better frequency, I would appreciate it if you could run the version currently in subversion (rev 180 or later). Preferably, run it in debug mode with high (5) verbosity, e.g.: ./devmon --debug -vvvvv -d /var/lib/devmon/hosts.db -c /etc/devmon.cfg If the problem persists, watch to see if the dm test for the polling device goes yellow or red, or polled devices go purple, and provide the log contents for at least the last two poll cycles before any of these changes (or, the relevant problems). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2897345&group_id=160720 |
From: <buc...@us...> - 2011-01-25 12:05:25
|
Revision: 213 http://devmon.svn.sourceforge.net/devmon/?rev=213&view=rev Author: buchanmilne Date: 2011-01-25 12:05:18 +0000 (Tue, 25 Jan 2011) Log Message: ----------- Add LSB headers to init script Improvements to init script for RHEL4 and older Modified Paths: -------------- trunk/extras/devmon.initd.redhat Modified: trunk/extras/devmon.initd.redhat =================================================================== --- trunk/extras/devmon.initd.redhat 2011-01-25 09:19:43 UTC (rev 212) +++ trunk/extras/devmon.initd.redhat 2011-01-25 12:05:18 UTC (rev 213) @@ -1,4 +1,12 @@ #!/bin/bash +### BEGIN INIT INFO +# Provides: devmon +# Should-Start: $network +# Should-Stop: $network +# Default-Start: 345 +# Short-Description: Starts the Devmon SNMP data collector for Xymon/Hobbit +# Description: This startup script launches Devmon SNMP collector for Xymon/Hobbit +### END INIT INFO # # chkconfig: 2345 90 10 # description: An snmp data collector for the hobbit & BigBrother network @@ -42,7 +50,7 @@ # is a copy of the killproc that has the options we need # otherwise we use the killproc we have - if killproc -p $PIDFILE -d $KILLDELAY devmon -0 >/dev/null + if killproc -p $PIDFILE -d $KILLDELAY devmon -0 >/dev/null 2>/dev/null then killproc -p $PIDFILE -d $KILLDELAY devmon else internal_killproc -p $PIDFILE -d $KILLDELAY devmon fi @@ -52,13 +60,36 @@ } rotate () { - if killproc -p $PIDFILE -d $KILLDELAY devmon -0 >/dev/null + if killproc -p $PIDFILE -d $KILLDELAY devmon -0 >/dev/null 2>/dev/null then killproc -p $PIDFILE -d $KILLDELAY devmon -HUP >/dev/null else internal_killproc -p $PIDFILE -d $KILLDELAY devmon -HUP >/dev/null fi RETVAL=$? } +# __proc_pids {program} [pidfile] +# Set $pid to pids from /var/run* for {program}. $pid should be declared +# local in the caller. +# Returns LSB exit code for the 'status' action. +__pids_var_run() { + local base=${1##*/} + local pid_file=${2:-/var/run/$base.pid} + + pid= + if [ -f "$pid_file" ] ; then + local line p + read line < "$pid_file" + for p in $line ; do + [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p" + done + if [ -n "$pid" ]; then + return 0 + fi + return 1 # "Program is dead and /var/run pid file exists" + fi + return 3 # "Program is not running" +} + internal_killproc() { local RC killlevel= base pid pid_file= delay This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-25 09:19:49
|
Revision: 212 http://devmon.svn.sourceforge.net/devmon/?rev=212&view=rev Author: buchanmilne Date: 2011-01-25 09:19:43 +0000 (Tue, 25 Jan 2011) Log Message: ----------- Provide -h <pattern> opttion, to allow polling of only hosts that match the pattern for easier templaet development or other debugging (#2512239) Modified Paths: -------------- trunk/modules/dm_config.pm Modified: trunk/modules/dm_config.pm =================================================================== --- trunk/modules/dm_config.pm 2011-01-25 09:00:37 UTC (rev 211) +++ trunk/modules/dm_config.pm 2011-01-25 09:19:43 UTC (rev 212) @@ -49,6 +49,7 @@ 'debug' => 0, 'oneshot' => 0, 'print_msg' => 0, + 'hostonly' => '', 'shutting_down' => 0, 'active' => '', 'pidfile' => '', @@ -240,6 +241,8 @@ $g{'verbose'} = 2; $g{'debug'} = 1; $g{'oneshot'} = 1 } + elsif(/^-h$/) { $g{'hostonly'} = shift @ARGV or usage(); + $g{'daemonize'} = 0; } elsif(/^--debug$/) { $g{'debug'} = 1 } elsif(/^--syncconfig$/) { $syncconfig = 1 } elsif(/^--synctemplates$/) { $synctemps = 1 } @@ -1937,6 +1940,7 @@ my @arr = db_get_array("name,ip,vendor,model,tests,cid from devices"); for my $host (@arr) { my ($name,$ip,$vendor,$model,$tests,$cid) = @$host; + next if ($g{'hostonly'} ne '' and $name !~ /$g{'hostonly'}/); my $port = $1 if $cid =~ s/::(\d+)$//; @@ -1991,6 +1995,7 @@ do_log("Invalid entry in host file at line $num.",0) and next if !defined $cid; + next if ($g{'hostonly'} ne '' and $name !~ /$g{'hostonly'}/); my $port = $1 if $cid =~ s/::(\d+)$//; $hosts{$name}{'ip'} = $ip; @@ -2153,6 +2158,7 @@ " -c Specify config file location\n" . " -d Specify database file location\n" . " -f Run in foreground. Prevents running in daemon mode.\n" . + " -h Poll only hosts matching the pattern that follows.\n" . " -p Print message. Don't send message to display server.\n" . " print it to stdout\n" . " -v Verbose mode. The more v's, the more vebose logging.\n" . This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-25 09:00:43
|
Revision: 211 http://devmon.svn.sourceforge.net/devmon/?rev=211&view=rev Author: buchanmilne Date: 2011-01-25 09:00:37 +0000 (Tue, 25 Jan 2011) Log Message: ----------- Support the 'directory' statement in bb-hosts (#2897676) Modified Paths: -------------- trunk/modules/dm_config.pm Modified: trunk/modules/dm_config.pm =================================================================== --- trunk/modules/dm_config.pm 2011-01-24 15:45:24 UTC (rev 210) +++ trunk/modules/dm_config.pm 2011-01-25 09:00:37 UTC (rev 211) @@ -1296,6 +1296,15 @@ push @bbfiles, $file; } + # Similarly, but different, for directory + if($line =~ /^\s*directory\s+(\S+)$/i) { + require File::Find; + import File::Find; + my $dir = $1; + do_log("Looking for bb-hosts files in $dir",3) if $g{'debug'}; + find(sub {push @bbfiles,$File::Find::name},$dir); + } + # Else see if this line matches the ip/host bb-hosts format elsif($line =~ /^\s*(\d+\.\d+\.\d+\.\d+)\s+(\S+)(.*)$/i) { my ($ip, $host, $bbopts) = ($1, $2, $3); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-24 15:45:31
|
Revision: 210 http://devmon.svn.sourceforge.net/devmon/?rev=210&view=rev Author: buchanmilne Date: 2011-01-24 15:45:24 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Cisco 3760 template Added Paths: ----------- trunk/templates/cisco-3760/ trunk/templates/cisco-3760/README trunk/templates/cisco-3760/cpu/ trunk/templates/cisco-3760/cpu/exceptions trunk/templates/cisco-3760/cpu/message trunk/templates/cisco-3760/cpu/oids trunk/templates/cisco-3760/cpu/thresholds trunk/templates/cisco-3760/cpu/transforms trunk/templates/cisco-3760/fans/ trunk/templates/cisco-3760/fans/exceptions trunk/templates/cisco-3760/fans/message trunk/templates/cisco-3760/fans/oids trunk/templates/cisco-3760/fans/thresholds trunk/templates/cisco-3760/fans/transforms trunk/templates/cisco-3760/if_col/ trunk/templates/cisco-3760/if_col/exceptions trunk/templates/cisco-3760/if_col/message trunk/templates/cisco-3760/if_col/oids trunk/templates/cisco-3760/if_col/thresholds trunk/templates/cisco-3760/if_col/transforms trunk/templates/cisco-3760/if_dsc/ trunk/templates/cisco-3760/if_dsc/exceptions trunk/templates/cisco-3760/if_dsc/message trunk/templates/cisco-3760/if_dsc/oids trunk/templates/cisco-3760/if_dsc/thresholds trunk/templates/cisco-3760/if_dsc/transforms trunk/templates/cisco-3760/if_err/ trunk/templates/cisco-3760/if_err/exceptions trunk/templates/cisco-3760/if_err/message trunk/templates/cisco-3760/if_err/oids trunk/templates/cisco-3760/if_err/thresholds trunk/templates/cisco-3760/if_err/transforms trunk/templates/cisco-3760/if_load/ trunk/templates/cisco-3760/if_load/exceptions trunk/templates/cisco-3760/if_load/message trunk/templates/cisco-3760/if_load/oids trunk/templates/cisco-3760/if_load/thresholds trunk/templates/cisco-3760/if_load/transforms trunk/templates/cisco-3760/if_stat/ trunk/templates/cisco-3760/if_stat/exceptions trunk/templates/cisco-3760/if_stat/message trunk/templates/cisco-3760/if_stat/oids trunk/templates/cisco-3760/if_stat/thresholds trunk/templates/cisco-3760/if_stat/transforms trunk/templates/cisco-3760/memory/ trunk/templates/cisco-3760/memory/exceptions trunk/templates/cisco-3760/memory/message trunk/templates/cisco-3760/memory/oids trunk/templates/cisco-3760/memory/thresholds trunk/templates/cisco-3760/memory/transforms trunk/templates/cisco-3760/power/ trunk/templates/cisco-3760/power/exceptions trunk/templates/cisco-3760/power/message trunk/templates/cisco-3760/power/oids trunk/templates/cisco-3760/power/thresholds trunk/templates/cisco-3760/power/transforms trunk/templates/cisco-3760/serial/ trunk/templates/cisco-3760/serial/exceptions trunk/templates/cisco-3760/serial/message trunk/templates/cisco-3760/serial/oids trunk/templates/cisco-3760/serial/thresholds trunk/templates/cisco-3760/serial/transforms trunk/templates/cisco-3760/specs Added: trunk/templates/cisco-3760/README =================================================================== --- trunk/templates/cisco-3760/README (rev 0) +++ trunk/templates/cisco-3760/README 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,6 @@ +This template was created by Eric Schwimmer. + +NOTE: This does not imply any support responsibilities, liabiltiy in +case of this template or devmon causing phsyical, monetary or emotional +damanges, or any other such obligations. It is merely to provide +credit to the original author of the template. Added: trunk/templates/cisco-3760/cpu/exceptions =================================================================== Added: trunk/templates/cisco-3760/cpu/message =================================================================== --- trunk/templates/cisco-3760/cpu/message (rev 0) +++ trunk/templates/cisco-3760/cpu/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,10 @@ + +{sysUpTimeSecs.color}: Up for {UpTimeTxt} +{sysUpTimeSecs.color}: Last reboot due to {sysReloadReason} +{CPUTotal5Min.color}: CPU usage: {CPUTotal5Min}% + +System description: +{sysDescr} +<!-- +<br>CPU 5 min average: {CPUTotal5Min} +--> Added: trunk/templates/cisco-3760/cpu/oids =================================================================== --- trunk/templates/cisco-3760/cpu/oids (rev 0) +++ trunk/templates/cisco-3760/cpu/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,5 @@ + +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysReloadReason : .1.3.6.1.4.1.9.2.1.2.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +CPUTotal5Min : .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 : leaf Added: trunk/templates/cisco-3760/cpu/thresholds =================================================================== --- trunk/templates/cisco-3760/cpu/thresholds (rev 0) +++ trunk/templates/cisco-3760/cpu/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,8 @@ + +CPUTotal5Min : red : >70 : CPU utilization is very high: {CPUTotal5Min}% +CPUTotal5Min : yellow : >30 : CPU utilization is high: {CPUTotal5Min}% +CPUTotal5Min : green : : CPU utilization is nominal: {CPUTotal5Min}% + +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/cisco-3760/cpu/transforms =================================================================== --- trunk/templates/cisco-3760/cpu/transforms (rev 0) +++ trunk/templates/cisco-3760/cpu/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} Added: trunk/templates/cisco-3760/fans/exceptions =================================================================== Added: trunk/templates/cisco-3760/fans/message =================================================================== --- trunk/templates/cisco-3760/fans/message (rev 0) +++ trunk/templates/cisco-3760/fans/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +TABLE: +Fan location|Fan state +{FanDescr}|{FanStatus.color}{FanStatus} Added: trunk/templates/cisco-3760/fans/oids =================================================================== --- trunk/templates/cisco-3760/fans/oids (rev 0) +++ trunk/templates/cisco-3760/fans/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +FanDescr : .1.3.6.1.4.1.9.9.13.1.4.1.2 : branch +FanState : .1.3.6.1.4.1.9.9.13.1.4.1.3 : branch Added: trunk/templates/cisco-3760/fans/thresholds =================================================================== --- trunk/templates/cisco-3760/fans/thresholds (rev 0) +++ trunk/templates/cisco-3760/fans/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +FanStatus : red : critical|not functioning +FanStatus : yellow : warning|shutdown|not present +FanStatus : green : normal Added: trunk/templates/cisco-3760/fans/transforms =================================================================== --- trunk/templates/cisco-3760/fans/transforms (rev 0) +++ trunk/templates/cisco-3760/fans/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1 @@ +FanStatus : SWITCH : {FanState} 1=normal,2=warning,3=critical,4=shutdown,5=not present,6=not functioning Added: trunk/templates/cisco-3760/if_col/exceptions =================================================================== --- trunk/templates/cisco-3760/if_col/exceptions (rev 0) +++ trunk/templates/cisco-3760/if_col/exceptions 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3760/if_col/message =================================================================== --- trunk/templates/cisco-3760/if_col/message (rev 0) +++ trunk/templates/cisco-3760/if_col/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,9 @@ +<b>Collisions:</b> +Collision load: yellow={ifOutColPct.thresh:yellow}%, red={ifOutColPct.thresh:red}% +TABLE: +Ifc name|Collisions|Collisions rate|Collisions load +{ifName}{ifAliasBox}|{ifOutCollisions}|{ifOutCps}|{ifOutColPct.color}{ifOutColPct}%{ifOutColPct.errors} + +Note: +Error rates are per second. +Load percentages are based on an error/packet ratio. Added: trunk/templates/cisco-3760/if_col/oids =================================================================== --- trunk/templates/cisco-3760/if_col/oids (rev 0) +++ trunk/templates/cisco-3760/if_col/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifOutCollisions : .1.3.6.1.4.1.9.2.2.1.1.25 : branch +ifOutPktsSec : .1.3.6.1.4.1.9.2.2.1.1.9 : branch Added: trunk/templates/cisco-3760/if_col/thresholds =================================================================== --- trunk/templates/cisco-3760/if_col/thresholds (rev 0) +++ trunk/templates/cisco-3760/if_col/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,4 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifOutColPct : yellow : 40 : {ifName}{ifAliasBox} - High output collision rate ({ifOutColPct}%) +ifOutColPct : red : 70 : {ifName}{ifAliasBox} - Very high output collision rate ({ifOutColPct}%) Added: trunk/templates/cisco-3760/if_col/transforms =================================================================== --- trunk/templates/cisco-3760/if_col/transforms (rev 0) +++ trunk/templates/cisco-3760/if_col/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,12 @@ +# Convert our total ifc octets(bytes) into bits +ifOutCps : DELTA : {ifOutCollisions} + +# Create our REAL packets per second +ifOutPps : MATH : {ifOutCps} + {ifOutPktsSec} + +# Determine percentage of packets that are collisions +ifOutColPct : MATH : ({ifOutCps} / {ifOutPps}) x 100 + +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-3760/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-3760/if_dsc/exceptions (rev 0) +++ trunk/templates/cisco-3760/if_dsc/exceptions 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3760/if_dsc/message =================================================================== --- trunk/templates/cisco-3760/if_dsc/message (rev 0) +++ trunk/templates/cisco-3760/if_dsc/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,8 @@ +<b>Discards:</b> +TABLE: +Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard rate out|Discard load out +{ifName}{ifAliasBox}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDscPct}%{ifOutDscPct.errors} + +Note: +Error rates are per second. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-3760/if_dsc/oids =================================================================== --- trunk/templates/cisco-3760/if_dsc/oids (rev 0) +++ trunk/templates/cisco-3760/if_dsc/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,7 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInDiscards : .1.3.6.1.2.1.2.2.1.13 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutDiscards : .1.3.6.1.2.1.2.2.1.19 : branch Added: trunk/templates/cisco-3760/if_dsc/thresholds =================================================================== --- trunk/templates/cisco-3760/if_dsc/thresholds (rev 0) +++ trunk/templates/cisco-3760/if_dsc/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,6 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifInDscPct : yellow : 5 : {ifName}{ifAliasBox} - High input discard rate. ({ifInDscPct}%) +ifInDscPct : red : 10 : {ifName}{ifAliasBox} - Very high input discard rate. ({ifInDscPct}%) +ifOutDscPct : yellow : 5 : {ifName}{ifAliasBox} - High output discard rate ({ifOutDscPct}%) +ifOutDscPct : red : 10 : {ifName}{ifAliasBox} - Very high output discard rate ({ifOutDscPct}%) Added: trunk/templates/cisco-3760/if_dsc/transforms =================================================================== --- trunk/templates/cisco-3760/if_dsc/transforms (rev 0) +++ trunk/templates/cisco-3760/if_dsc/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,14 @@ +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Do delta transform on all error counters +ifInDps : DELTA : {ifInDiscards} +ifOutDps : DELTA : {ifOutDiscards} +# Perform error to traffic percentage calculations +ifInDscPct : MATH : ({ifInDps} / {ifInBps}) x 100 +ifOutDscPct : MATH : ({ifOutDps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-3760/if_err/exceptions =================================================================== --- trunk/templates/cisco-3760/if_err/exceptions (rev 0) +++ trunk/templates/cisco-3760/if_err/exceptions 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3760/if_err/message =================================================================== --- trunk/templates/cisco-3760/if_err/message (rev 0) +++ trunk/templates/cisco-3760/if_err/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,11 @@ +<b>Errors:</b> +Input errors: yellow={ifInErrPct.thresh:yellow}%, red={ifInErrPct.thresh:red}% +Output errors: yellow={ifOutErrPct.thresh:yellow}%, red={ifOutErrPct.thresh:red}% + +TABLE: +Ifc name|Errors in|Error rate in|Error load in|Errors out|Error rate out|Error load out +{ifName}{ifAliasBox}|{ifInErrors}|{ifInEps}|{ifInErrPct.color}{ifInErrPct}%{ifInErrPct.errors}|{ifOutErrors}|{ifOutEps}|{ifOutErrPct.color}{ifOutErrPct}%{ifOutErrPct.errors} + +Note: +Error rates are per second, averaged over a 60 second interval. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-3760/if_err/oids =================================================================== --- trunk/templates/cisco-3760/if_err/oids (rev 0) +++ trunk/templates/cisco-3760/if_err/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,7 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInErrors : .1.3.6.1.2.1.2.2.1.14 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutErrors : .1.3.6.1.2.1.2.2.1.20 : branch Added: trunk/templates/cisco-3760/if_err/thresholds =================================================================== --- trunk/templates/cisco-3760/if_err/thresholds (rev 0) +++ trunk/templates/cisco-3760/if_err/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,7 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message + +ifInErrPct : yellow : 5 : {ifName}{ifAliasBox} - High input error rate ({ifInErrPct}%) +ifInErrPct : red : 10 : {ifName}{ifAliasBox} - Very high input error rate ({ifInErrPct}%) +ifOutErrPct : yellow : 5 : {ifName}{ifAliasBox} - High output error rate ({ifOutErrPct}%) +ifOutErrPct : red : 10 : {ifName}{ifAliasBox} - Very high output error rate ({ifOutErrPct}%) Added: trunk/templates/cisco-3760/if_err/transforms =================================================================== --- trunk/templates/cisco-3760/if_err/transforms (rev 0) +++ trunk/templates/cisco-3760/if_err/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,15 @@ +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Do delta transform on all error counters +ifInEps : DELTA : {ifInErrors} +ifOutEps : DELTA : {ifOutErrors} +# Perform error to traffic percentage calculations +ifInErrPct : MATH : ({ifInEps} / {ifInBps}) x 100 +ifOutErrPct : MATH : ({ifOutEps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-3760/if_load/exceptions =================================================================== --- trunk/templates/cisco-3760/if_load/exceptions (rev 0) +++ trunk/templates/cisco-3760/if_load/exceptions 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3760/if_load/message =================================================================== --- trunk/templates/cisco-3760/if_load/message (rev 0) +++ trunk/templates/cisco-3760/if_load/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,7 @@ + +<b>Interface error rates:</b> +Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% +Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% +TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) +Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) +{ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} Added: trunk/templates/cisco-3760/if_load/oids =================================================================== --- trunk/templates/cisco-3760/if_load/oids (rev 0) +++ trunk/templates/cisco-3760/if_load/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch Added: trunk/templates/cisco-3760/if_load/thresholds =================================================================== --- trunk/templates/cisco-3760/if_load/thresholds (rev 0) +++ trunk/templates/cisco-3760/if_load/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,4 @@ +ifInLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifInLoad : red : 95 : {ifName}{ifAliasBox} load is very high +ifOutLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifOutLoad : red : 95 : {ifName}{ifAliasBox} load is very high Added: trunk/templates/cisco-3760/if_load/transforms =================================================================== --- trunk/templates/cisco-3760/if_load/transforms (rev 0) +++ trunk/templates/cisco-3760/if_load/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,16 @@ +# Create a human-readable ifc speed +ifSpeed : SPEED : {ifBps} +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Make some easily readable speed variables +ifInSpeed : SPEED : {ifInBps} +ifOutSpeed : SPEED : {ifOutBps} +# Now determine our percentage load, based on traffic and ifc speed +ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100 +ifOutLoad : MATH : ({ifOutBps} / {ifBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-3760/if_stat/exceptions =================================================================== --- trunk/templates/cisco-3760/if_stat/exceptions (rev 0) +++ trunk/templates/cisco-3760/if_stat/exceptions 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3760/if_stat/message =================================================================== --- trunk/templates/cisco-3760/if_stat/message (rev 0) +++ trunk/templates/cisco-3760/if_stat/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +TABLE: +Ifc name|Ifc speed|Ifc status +{ifName}{ifAliasBox}|{ifSpeed}|{ifStat.color}{ifStat}{ifStat.errors} Added: trunk/templates/cisco-3760/if_stat/oids =================================================================== --- trunk/templates/cisco-3760/if_stat/oids (rev 0) +++ trunk/templates/cisco-3760/if_stat/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch +ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch Added: trunk/templates/cisco-3760/if_stat/thresholds =================================================================== --- trunk/templates/cisco-3760/if_stat/thresholds (rev 0) +++ trunk/templates/cisco-3760/if_stat/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,6 @@ +ifAdminStatTxt : green : admin down : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : yellow : testing : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : red : up : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifOperStatTxt : green : up : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : yellow : dormant|testing|yellow|not present|layer down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : red : down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} Added: trunk/templates/cisco-3760/if_stat/transforms =================================================================== --- trunk/templates/cisco-3760/if_stat/transforms (rev 0) +++ trunk/templates/cisco-3760/if_stat/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,5 @@ +ifAdminStatTxt : SWITCH : {ifAdminStatNum} 1=up,2=admin down,3=testing +ifOperStatTxt : SWITCH : {ifOperStatNum} 1=up,2=down,3=testing,4=unknown,5=dormant,6=not present,7=lower layer down +ifStat : BEST : {ifAdminStatTxt},{ifOperStatTxt} +ifSpeed : SPEED : {ifBps} +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-3760/memory/exceptions =================================================================== Added: trunk/templates/cisco-3760/memory/message =================================================================== --- trunk/templates/cisco-3760/memory/message (rev 0) +++ trunk/templates/cisco-3760/memory/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,10 @@ +{mem_used_per.errors} + +Free memory: {mem_free} bytes ({mem_free_per}%) +Used memory: {mem_used} bytes ({mem_used_per}%) {mem_used_per.color} +------------- ---------------- +Total memory: {mem_total} bytes (100%) + +Alarm threshold: yellow={mem_used_per.thresh:yellow}%, red={mem_used_per.thresh:red}% +<!-- DEVMON to RRD Physical {mem_used_per}% +--> Added: trunk/templates/cisco-3760/memory/oids =================================================================== --- trunk/templates/cisco-3760/memory/oids (rev 0) +++ trunk/templates/cisco-3760/memory/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +mem_used : .1.3.6.1.4.1.9.9.48.1.1.1.5.1 : leaf +mem_free : .1.3.6.1.4.1.9.9.48.1.1.1.6.1 : leaf + Added: trunk/templates/cisco-3760/memory/thresholds =================================================================== --- trunk/templates/cisco-3760/memory/thresholds (rev 0) +++ trunk/templates/cisco-3760/memory/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +mem_used_per : yellow : 75 : Memory load is high +mem_used_per : red : 95 : Memory load is very high Added: trunk/templates/cisco-3760/memory/transforms =================================================================== --- trunk/templates/cisco-3760/memory/transforms (rev 0) +++ trunk/templates/cisco-3760/memory/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +mem_total : MATH : {mem_used} + {mem_free} +mem_used_per : MATH : ({mem_used} x 100) / {mem_total} : 0 +mem_free_per : MATH : ({mem_free} x 100) / {mem_total} : 0 Added: trunk/templates/cisco-3760/power/exceptions =================================================================== Added: trunk/templates/cisco-3760/power/message =================================================================== --- trunk/templates/cisco-3760/power/message (rev 0) +++ trunk/templates/cisco-3760/power/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +TABLE: +PSU Type|PSU state +{PsuDescr}|{PsuStatus.color}{PsuStatus} Added: trunk/templates/cisco-3760/power/oids =================================================================== --- trunk/templates/cisco-3760/power/oids (rev 0) +++ trunk/templates/cisco-3760/power/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +PsuDescr : .1.3.6.1.4.1.9.9.13.1.5.1.2 : branch +PsuState : .1.3.6.1.4.1.9.9.13.1.5.1.3 : branch Added: trunk/templates/cisco-3760/power/thresholds =================================================================== --- trunk/templates/cisco-3760/power/thresholds (rev 0) +++ trunk/templates/cisco-3760/power/thresholds 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,3 @@ +PsuStatus : red : critical|not functioning +PsuStatus : yellow : warning|shutdown|not present +PsuStatus : green : normal Added: trunk/templates/cisco-3760/power/transforms =================================================================== --- trunk/templates/cisco-3760/power/transforms (rev 0) +++ trunk/templates/cisco-3760/power/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1 @@ +PsuStatus : SWITCH : {PsuState} 1=normal,2=warning,3=critical,4=shutdown,5=not present,6=not functioning Added: trunk/templates/cisco-3760/serial/exceptions =================================================================== --- trunk/templates/cisco-3760/serial/exceptions (rev 0) +++ trunk/templates/cisco-3760/serial/exceptions 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1 @@ +PhysicalDescr : alarm : Kamoulox Added: trunk/templates/cisco-3760/serial/message =================================================================== --- trunk/templates/cisco-3760/serial/message (rev 0) +++ trunk/templates/cisco-3760/serial/message 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,6 @@ +Serial : + +TABLE: +Physical Descr | Hardware Rev | Firmware Rev | Software Rev | System serial number | Model Name | module Status +{PhysicalDescr} | {PhysicalHardwareRev} | {PhysicalFirmwareRev} | {PhysicalSoftwareRev} | {PhysicalSerialNum} | {PhysicalModelName} | {moduleStatus_T} + Added: trunk/templates/cisco-3760/serial/oids =================================================================== --- trunk/templates/cisco-3760/serial/oids (rev 0) +++ trunk/templates/cisco-3760/serial/oids 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,8 @@ +PhysicalDescr : .1.3.6.1.4.1.9.5.1.3.1.1.17 : branch +PhysicalHardwareRev : .1.3.6.1.4.1.9.5.1.3.1.1.18 : branch +PhysicalFirmwareRev : .1.3.6.1.4.1.9.5.1.3.1.1.19 : branch +PhysicalSoftwareRev : .1.3.6.1.4.1.9.5.1.3.1.1.20 : branch +PhysicalSerialNum : .1.3.6.1.4.1.9.5.1.3.1.1.26 : branch +PhysicalModelName : .1.3.6.1.4.1.9.5.1.3.1.1.17 : branch +moduleStatus : .1.3.6.1.4.1.9.5.1.3.1.1.10 : branch + Added: trunk/templates/cisco-3760/serial/thresholds =================================================================== Added: trunk/templates/cisco-3760/serial/transforms =================================================================== --- trunk/templates/cisco-3760/serial/transforms (rev 0) +++ trunk/templates/cisco-3760/serial/transforms 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,2 @@ +moduleStatus_T : SWITCH : {moduleStatus} 1 = other, 2 = ok, 3 = minorFault, 4 = majorFault + Added: trunk/templates/cisco-3760/specs =================================================================== --- trunk/templates/cisco-3760/specs (rev 0) +++ trunk/templates/cisco-3760/specs 2011-01-24 15:45:24 UTC (rev 210) @@ -0,0 +1,4 @@ +vendor : cisco +model : 3760 +snmpver : 2 +sysdesc : C3760 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-24 15:34:57
|
Revision: 209 http://devmon.svn.sourceforge.net/devmon/?rev=209&view=rev Author: buchanmilne Date: 2011-01-24 15:34:50 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Cisco 3548 template Added Paths: ----------- trunk/templates/cisco-3548/ trunk/templates/cisco-3548/README trunk/templates/cisco-3548/cpu/ trunk/templates/cisco-3548/cpu/exceptions trunk/templates/cisco-3548/cpu/message trunk/templates/cisco-3548/cpu/oids trunk/templates/cisco-3548/cpu/thresholds trunk/templates/cisco-3548/cpu/transforms trunk/templates/cisco-3548/if_col/ trunk/templates/cisco-3548/if_col/exceptions trunk/templates/cisco-3548/if_col/message trunk/templates/cisco-3548/if_col/oids trunk/templates/cisco-3548/if_col/thresholds trunk/templates/cisco-3548/if_col/transforms trunk/templates/cisco-3548/if_dsc/ trunk/templates/cisco-3548/if_dsc/exceptions trunk/templates/cisco-3548/if_dsc/message trunk/templates/cisco-3548/if_dsc/oids trunk/templates/cisco-3548/if_dsc/thresholds trunk/templates/cisco-3548/if_dsc/transforms trunk/templates/cisco-3548/if_err/ trunk/templates/cisco-3548/if_err/exceptions trunk/templates/cisco-3548/if_err/message trunk/templates/cisco-3548/if_err/oids trunk/templates/cisco-3548/if_err/thresholds trunk/templates/cisco-3548/if_err/transforms trunk/templates/cisco-3548/if_load/ trunk/templates/cisco-3548/if_load/exceptions trunk/templates/cisco-3548/if_load/message trunk/templates/cisco-3548/if_load/oids trunk/templates/cisco-3548/if_load/thresholds trunk/templates/cisco-3548/if_load/transforms trunk/templates/cisco-3548/if_stat/ trunk/templates/cisco-3548/if_stat/exceptions trunk/templates/cisco-3548/if_stat/message trunk/templates/cisco-3548/if_stat/oids trunk/templates/cisco-3548/if_stat/thresholds trunk/templates/cisco-3548/if_stat/transforms trunk/templates/cisco-3548/memory/ trunk/templates/cisco-3548/memory/exceptions trunk/templates/cisco-3548/memory/message trunk/templates/cisco-3548/memory/oids trunk/templates/cisco-3548/memory/thresholds trunk/templates/cisco-3548/memory/transforms trunk/templates/cisco-3548/serial/ trunk/templates/cisco-3548/serial/exceptions trunk/templates/cisco-3548/serial/message trunk/templates/cisco-3548/serial/oids trunk/templates/cisco-3548/serial/thresholds trunk/templates/cisco-3548/serial/transforms trunk/templates/cisco-3548/specs Added: trunk/templates/cisco-3548/README =================================================================== --- trunk/templates/cisco-3548/README (rev 0) +++ trunk/templates/cisco-3548/README 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,6 @@ +This template was created by Eric Schwimmer. + +NOTE: This does not imply any support responsibilities, liabiltiy in +case of this template or devmon causing phsyical, monetary or emotional +damanges, or any other such obligations. It is merely to provide +credit to the original author of the template. Added: trunk/templates/cisco-3548/cpu/exceptions =================================================================== Added: trunk/templates/cisco-3548/cpu/message =================================================================== --- trunk/templates/cisco-3548/cpu/message (rev 0) +++ trunk/templates/cisco-3548/cpu/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,10 @@ + +{sysUpTimeSecs.color}: Up for {UpTimeTxt} +{sysUpTimeSecs.color}: Last reboot due to {sysReloadReason} +{CPUTotal5Min.color}: CPU usage: {CPUTotal5Min}% + +System description: +{sysDescr} +<!-- +<br>CPU 5 min average: {CPUTotal5Min} +--> Added: trunk/templates/cisco-3548/cpu/oids =================================================================== --- trunk/templates/cisco-3548/cpu/oids (rev 0) +++ trunk/templates/cisco-3548/cpu/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,5 @@ + +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysReloadReason : .1.3.6.1.4.1.9.2.1.2.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +CPUTotal5Min : .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 : leaf Added: trunk/templates/cisco-3548/cpu/thresholds =================================================================== --- trunk/templates/cisco-3548/cpu/thresholds (rev 0) +++ trunk/templates/cisco-3548/cpu/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,8 @@ + +CPUTotal5Min : red : >80 : CPU utilization is very high: {CPUTotal5Min}% +CPUTotal5Min : yellow : >60 : CPU utilization is high: {CPUTotal5Min}% +CPUTotal5Min : green : : CPU utilization is nominal: {CPUTotal5Min}% + +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/cisco-3548/cpu/transforms =================================================================== --- trunk/templates/cisco-3548/cpu/transforms (rev 0) +++ trunk/templates/cisco-3548/cpu/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} Added: trunk/templates/cisco-3548/if_col/exceptions =================================================================== --- trunk/templates/cisco-3548/if_col/exceptions (rev 0) +++ trunk/templates/cisco-3548/if_col/exceptions 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VL.+ Added: trunk/templates/cisco-3548/if_col/message =================================================================== --- trunk/templates/cisco-3548/if_col/message (rev 0) +++ trunk/templates/cisco-3548/if_col/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,9 @@ +<b>Collisions:</b> +Collision load: yellow={ifOutColPct.thresh:yellow}%, red={ifOutColPct.thresh:red}% +TABLE: +Ifc name|Collisions|Collisions rate|Collisions load +{ifName}{ifAliasBox}|{ifOutCollisions}|{ifOutCps}|{ifOutColPct.color}{ifOutColPct}%{ifOutColPct.errors} + +Note: +Error rates are per second. +Load percentages are based on an error/packet ratio. Added: trunk/templates/cisco-3548/if_col/oids =================================================================== --- trunk/templates/cisco-3548/if_col/oids (rev 0) +++ trunk/templates/cisco-3548/if_col/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifOutCollisions : .1.3.6.1.4.1.9.2.2.1.1.25 : branch +ifOutPktsSec : .1.3.6.1.4.1.9.2.2.1.1.9 : branch Added: trunk/templates/cisco-3548/if_col/thresholds =================================================================== --- trunk/templates/cisco-3548/if_col/thresholds (rev 0) +++ trunk/templates/cisco-3548/if_col/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,4 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifOutColPct : yellow : 40 : {ifName}{ifAliasBox} - High output collision rate ({ifOutColPct}%) +ifOutColPct : red : 70 : {ifName}{ifAliasBox} - Very high output collision rate ({ifOutColPct}%) Added: trunk/templates/cisco-3548/if_col/transforms =================================================================== --- trunk/templates/cisco-3548/if_col/transforms (rev 0) +++ trunk/templates/cisco-3548/if_col/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,12 @@ +# Convert our total ifc octets(bytes) into bits +ifOutCps : DELTA : {ifOutCollisions} + +# Create our REAL packets per second +ifOutPps : MATH : {ifOutCps} + {ifOutPktsSec} + +# Determine percentage of packets that are collisions +ifOutColPct : MATH : ({ifOutCps} / {ifOutPps}) x 100 + +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-3548/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-3548/if_dsc/exceptions (rev 0) +++ trunk/templates/cisco-3548/if_dsc/exceptions 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VL.+ Added: trunk/templates/cisco-3548/if_dsc/message =================================================================== --- trunk/templates/cisco-3548/if_dsc/message (rev 0) +++ trunk/templates/cisco-3548/if_dsc/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,8 @@ +<b>Discards:</b> +TABLE: +Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard rate out|Discard load out +{ifName}{ifAliasBox}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDscPct}%{ifOutDscPct.errors} + +Note: +Error rates are per second. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-3548/if_dsc/oids =================================================================== --- trunk/templates/cisco-3548/if_dsc/oids (rev 0) +++ trunk/templates/cisco-3548/if_dsc/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,6 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInDiscards : .1.3.6.1.2.1.2.2.1.13 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutDiscards : .1.3.6.1.2.1.2.2.1.19 : branch Added: trunk/templates/cisco-3548/if_dsc/thresholds =================================================================== --- trunk/templates/cisco-3548/if_dsc/thresholds (rev 0) +++ trunk/templates/cisco-3548/if_dsc/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,6 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifInDscPct : yellow : 5 : {ifName}{ifAliasBox} - High input discard rate. ({ifInDscPct}%) +ifInDscPct : red : 10 : {ifName}{ifAliasBox} - Very high input discard rate. ({ifInDscPct}%) +ifOutDscPct : yellow : 5 : {ifName}{ifAliasBox} - High output discard rate ({ifOutDscPct}%) +ifOutDscPct : red : 10 : {ifName}{ifAliasBox} - Very high output discard rate ({ifOutDscPct}%) Added: trunk/templates/cisco-3548/if_dsc/transforms =================================================================== --- trunk/templates/cisco-3548/if_dsc/transforms (rev 0) +++ trunk/templates/cisco-3548/if_dsc/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,14 @@ +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Do delta transform on all error counters +ifInDps : DELTA : {ifInDiscards} +ifOutDps : DELTA : {ifOutDiscards} +# Perform error to traffic percentage calculations +ifInDscPct : MATH : ({ifInDps} / {ifInBps}) x 100 +ifOutDscPct : MATH : ({ifOutDps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-3548/if_err/exceptions =================================================================== --- trunk/templates/cisco-3548/if_err/exceptions (rev 0) +++ trunk/templates/cisco-3548/if_err/exceptions 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VL.+ Added: trunk/templates/cisco-3548/if_err/message =================================================================== --- trunk/templates/cisco-3548/if_err/message (rev 0) +++ trunk/templates/cisco-3548/if_err/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,11 @@ +<b>Errors:</b> +Input errors: yellow={ifInErrPct.thresh:yellow}%, red={ifInErrPct.thresh:red}% +Output errors: yellow={ifOutErrPct.thresh:yellow}%, red={ifOutErrPct.thresh:red}% + +TABLE: +Ifc name|Errors in|Error rate in|Error load in|Errors out|Error rate out|Error load out +{ifName}{ifAliasBox}|{ifInErrors}|{ifInEps}|{ifInErrPct.color}{ifInErrPct}%{ifInErrPct.errors}|{ifOutErrors}|{ifOutEps}|{ifOutErrPct.color}{ifOutErrPct}%{ifOutErrPct.errors} + +Note: +Error rates are per second, averaged over a 60 second interval. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-3548/if_err/oids =================================================================== --- trunk/templates/cisco-3548/if_err/oids (rev 0) +++ trunk/templates/cisco-3548/if_err/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,7 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInErrors : .1.3.6.1.2.1.2.2.1.14 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutErrors : .1.3.6.1.2.1.2.2.1.20 : branch Added: trunk/templates/cisco-3548/if_err/thresholds =================================================================== --- trunk/templates/cisco-3548/if_err/thresholds (rev 0) +++ trunk/templates/cisco-3548/if_err/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,7 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message + +ifInErrPct : yellow : 5 : {ifName}{ifAliasBox} - High input error rate ({ifInErrPct}%) +ifInErrPct : red : 10 : {ifName}{ifAliasBox} - Very high input error rate ({ifInErrPct}%) +ifOutErrPct : yellow : 5 : {ifName}{ifAliasBox} - High output error rate ({ifOutErrPct}%) +ifOutErrPct : red : 10 : {ifName}{ifAliasBox} - Very high output error rate ({ifOutErrPct}%) Added: trunk/templates/cisco-3548/if_err/transforms =================================================================== --- trunk/templates/cisco-3548/if_err/transforms (rev 0) +++ trunk/templates/cisco-3548/if_err/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,15 @@ +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Do delta transform on all error counters +ifInEps : DELTA : {ifInErrors} +ifOutEps : DELTA : {ifOutErrors} +# Perform error to traffic percentage calculations +ifInErrPct : MATH : ({ifInEps} / {ifInBps}) x 100 +ifOutErrPct : MATH : ({ifOutEps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-3548/if_load/exceptions =================================================================== --- trunk/templates/cisco-3548/if_load/exceptions (rev 0) +++ trunk/templates/cisco-3548/if_load/exceptions 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VL.+ Added: trunk/templates/cisco-3548/if_load/message =================================================================== --- trunk/templates/cisco-3548/if_load/message (rev 0) +++ trunk/templates/cisco-3548/if_load/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,7 @@ + +<b>Interface error rates:</b> +Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% +Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% +TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) +Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) +{ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} Added: trunk/templates/cisco-3548/if_load/oids =================================================================== --- trunk/templates/cisco-3548/if_load/oids (rev 0) +++ trunk/templates/cisco-3548/if_load/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch Added: trunk/templates/cisco-3548/if_load/thresholds =================================================================== --- trunk/templates/cisco-3548/if_load/thresholds (rev 0) +++ trunk/templates/cisco-3548/if_load/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,4 @@ +ifInLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifInLoad : red : 95 : {ifName}{ifAliasBox} load is very high +ifOutLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifOutLoad : red : 95 : {ifName}{ifAliasBox} load is very high Added: trunk/templates/cisco-3548/if_load/transforms =================================================================== --- trunk/templates/cisco-3548/if_load/transforms (rev 0) +++ trunk/templates/cisco-3548/if_load/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,16 @@ +# Create a human-readable ifc speed +ifSpeed : SPEED : {ifBps} +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Make some easily readable speed variables +ifInSpeed : SPEED : {ifInBps} +ifOutSpeed : SPEED : {ifOutBps} +# Now determine our percentage load, based on traffic and ifc speed +ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100 +ifOutLoad : MATH : ({ifOutBps} / {ifBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-3548/if_stat/exceptions =================================================================== --- trunk/templates/cisco-3548/if_stat/exceptions (rev 0) +++ trunk/templates/cisco-3548/if_stat/exceptions 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VL.+ Added: trunk/templates/cisco-3548/if_stat/message =================================================================== --- trunk/templates/cisco-3548/if_stat/message (rev 0) +++ trunk/templates/cisco-3548/if_stat/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,3 @@ +TABLE: +Ifc name|Ifc speed|Ifc status +{ifName}{ifAliasBox}|{ifSpeed}|{ifStat.color}{ifStat}{ifStat.errors} Added: trunk/templates/cisco-3548/if_stat/oids =================================================================== --- trunk/templates/cisco-3548/if_stat/oids (rev 0) +++ trunk/templates/cisco-3548/if_stat/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch +ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch Added: trunk/templates/cisco-3548/if_stat/thresholds =================================================================== --- trunk/templates/cisco-3548/if_stat/thresholds (rev 0) +++ trunk/templates/cisco-3548/if_stat/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,6 @@ +ifAdminStatTxt : green : admin down : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : yellow : testing : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : red : up : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifOperStatTxt : green : up : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : yellow : dormant|testing|yellow|not present|layer down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : red : down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} Added: trunk/templates/cisco-3548/if_stat/transforms =================================================================== --- trunk/templates/cisco-3548/if_stat/transforms (rev 0) +++ trunk/templates/cisco-3548/if_stat/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,5 @@ +ifAdminStatTxt : SWITCH : {ifAdminStatNum} 1=up,2=admin down,3=testing +ifOperStatTxt : SWITCH : {ifOperStatNum} 1=up,2=down,3=testing,4=unknown,5=dormant,6=not present,7=lower layer down +ifStat : BEST : {ifAdminStatTxt},{ifOperStatTxt} +ifSpeed : SPEED : {ifBps} +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-3548/memory/exceptions =================================================================== Added: trunk/templates/cisco-3548/memory/message =================================================================== --- trunk/templates/cisco-3548/memory/message (rev 0) +++ trunk/templates/cisco-3548/memory/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,10 @@ +{mem_used_per.errors} + +Free memory: {mem_free} bytes ({mem_free_per}%) +Used memory: {mem_used} bytes ({mem_used_per}%) {mem_used_per.color} +------------- ---------------- +Total memory: {mem_total} bytes (100%) + +Alarm threshold: yellow={mem_used_per.thresh:yellow}%, red={mem_used_per.thresh:red}% +<!-- DEVMON to RRD Physical {mem_used_per}% +--> Added: trunk/templates/cisco-3548/memory/oids =================================================================== --- trunk/templates/cisco-3548/memory/oids (rev 0) +++ trunk/templates/cisco-3548/memory/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,3 @@ +mem_used : .1.3.6.1.4.1.9.9.48.1.1.1.5.1 : leaf +mem_free : .1.3.6.1.4.1.9.9.48.1.1.1.6.1 : leaf + Added: trunk/templates/cisco-3548/memory/thresholds =================================================================== --- trunk/templates/cisco-3548/memory/thresholds (rev 0) +++ trunk/templates/cisco-3548/memory/thresholds 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +mem_used_per : yellow : 75 : Memory load is high +mem_used_per : red : 95 : Memory load is very high Added: trunk/templates/cisco-3548/memory/transforms =================================================================== --- trunk/templates/cisco-3548/memory/transforms (rev 0) +++ trunk/templates/cisco-3548/memory/transforms 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,3 @@ +mem_total : MATH : {mem_used} + {mem_free} +mem_used_per : MATH : ({mem_used} x 100) / {mem_total} : 0 +mem_free_per : MATH : ({mem_free} x 100) / {mem_total} : 0 Added: trunk/templates/cisco-3548/serial/exceptions =================================================================== --- trunk/templates/cisco-3548/serial/exceptions (rev 0) +++ trunk/templates/cisco-3548/serial/exceptions 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,2 @@ +entPhysicalDescr : ignore : Nu.+|Vl.+|Gi.+|.+Ethernet|FastEthernet.+ +entPhysicalDescr : alarm : Nothingtoworryabout Added: trunk/templates/cisco-3548/serial/message =================================================================== --- trunk/templates/cisco-3548/serial/message (rev 0) +++ trunk/templates/cisco-3548/serial/message 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,3 @@ +TABLE: +Physical Descr | Hardware Rev | Firmware Rev | Software Rev | System serial number | Model Name +{entPhysicalDescr} | {entPhysicalHardwareRev} | {entPhysicalFirmwareRev} | {entPhysicalSoftwareRev} | {entPhysicalSerialNum} | {entPhysicalModelName} Added: trunk/templates/cisco-3548/serial/oids =================================================================== --- trunk/templates/cisco-3548/serial/oids (rev 0) +++ trunk/templates/cisco-3548/serial/oids 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,6 @@ +entPhysicalDescr : .1.3.6.1.2.1.47.1.1.1.1.2 : branch +entPhysicalHardwareRev : .1.3.6.1.2.1.47.1.1.1.1.8 : branch +entPhysicalFirmwareRev : .1.3.6.1.2.1.47.1.1.1.1.9 : branch +entPhysicalSoftwareRev : .1.3.6.1.2.1.47.1.1.1.1.10 : branch +entPhysicalSerialNum : .1.3.6.1.2.1.47.1.1.1.1.11 : branch +entPhysicalModelName : .1.3.6.1.2.1.47.1.1.1.1.13 : branch Added: trunk/templates/cisco-3548/serial/thresholds =================================================================== Added: trunk/templates/cisco-3548/serial/transforms =================================================================== Added: trunk/templates/cisco-3548/specs =================================================================== --- trunk/templates/cisco-3548/specs (rev 0) +++ trunk/templates/cisco-3548/specs 2011-01-24 15:34:50 UTC (rev 209) @@ -0,0 +1,4 @@ +vendor : cisco +model : 3548 +snmpver : 2 +sysdesc : C3548 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Buchan M. <bg...@st...> - 2011-01-24 15:21:41
|
On Sunday, 19 December 2010 15:10:13 Nelis, Wim wrote: > Hello, > > Below are a number of modifications to Devmon, which are in use here for > almost a year. I think that some of them are usefull to other DEVMON users > as well. > > A- In revision 118 the option is introduced to format the date/time shown > in the header of each message like Xymon does. However, the date/time of > the "dm" status message was forgotten. > > Index: dm_msg.pm > =================================================================== > --- dm_msg.pm (revision 3) > +++ dm_msg.pm (revision 5) > @@ -21,6 +21,7 @@ > # Modules > use strict; > use Socket; > + use POSIX qw/ strftime /; > use dm_config; > > # Our global variable hash > @@ -212,7 +213,8 @@ > # Add the header > my $host = $g{'nodename'}; > $host =~ s/\./,/g; # Dont forget our FQDN stuff > - $message = "status $host.dm $color ".(scalar > localtime)."\n\n$message\n"; + my $now = $g{'bbdateformat'} ? > strftime($g{'bbdateformat'},localtime) : scalar(localtime); + $message > = "status $host.dm $color $now\n\n$message\n"; > > return $message; In r207. > B- There is no trend-information about the run-time of devmon itself. The > following patch does send the run-time as an NCV to Xymon. In Xymon > additional changes are needed to capture and display these statistics. I have wanted to add some statistics, but I am not quite sure what I want there yet. For example, with the information supplied on forks in svn, it might be better to graph the number of devices polled by each fork, in which case the devmon collector might be better. Let me think some about this one before applying ... > Index: dm_msg.pm > =================================================================== > --- dm_msg.pm (revision 5) > +++ dm_msg.pm (revision 6) > @@ -210,6 +210,15 @@ > $message .= "&red $stalledforks forks of $g{'numforks'} are > stalled\n"; } > > + # Replace each ":" and "=" by their equivalent HTML escape charater, in > + # order not to confuse the Xymon NCV module. Write the polling time > + # (in HTML comment) for storage in an RRD. > + $message =~ s/:/:/g ; > + $message =~ s/=/=/g ; > + $message .= "<!--\n" . > + "PollTime : $this_poll_time\n" . > + "-->" ; > + > # Add the header > my $host = $g{'nodename'}; > $host =~ s/\./,/g; # Dont forget our FQDN stuff > > C- The speed of a Gigabit interface is shown as "1000 Mbps". I prefer it to > be shown as "1.00 Gbps". Applied in r208. > Index: dm_tests.pm > =================================================================== > --- dm_tests.pm (revision 6) > +++ dm_tests.pm (revision 7) > @@ -1141,7 +1141,7 @@ > > # Get largest speed type > my $speed = 1; # Start low: 1 bps > - $speed *= 1000 while $bps > ($speed * 1000); > + $speed *= 1000 while $bps >= ($speed * 1000); > my $unit = $speeds{$speed}; > > # Measure to 2 decimal places > @@ -1161,7 +1161,7 @@ > > # Get largest speed type > my $speed = 1; # Start low: 1 bps > - $speed *= 1000 while $bps > ($speed * 1000); > + $speed *= 1000 while $bps >= ($speed * 1000); > my $unit = $speeds{$speed}; > > # Measure to 2 decimal places > > D- In function read_tansforms_file the check on transform 'index' is moved. > The transform checks are now in sorted order. I moved it around r205 or r206. Thanks for the contributions. Regards, Buchan |
From: <buc...@us...> - 2011-01-24 15:21:28
|
Revision: 208 http://devmon.svn.sourceforge.net/devmon/?rev=208&view=rev Author: buchanmilne Date: 2011-01-24 15:21:22 +0000 (Mon, 24 Jan 2011) Log Message: ----------- -Allow speeds matching exactly 1Mbps or 1Gbps to be display as such, not 1000Kbps or 1000Mbps (Wim Nelis) -Typo fix Modified Paths: -------------- trunk/modules/dm_templates.pm trunk/modules/dm_tests.pm Modified: trunk/modules/dm_templates.pm =================================================================== --- trunk/modules/dm_templates.pm 2011-01-24 15:17:07 UTC (rev 207) +++ trunk/modules/dm_templates.pm 2011-01-24 15:21:22 UTC (rev 208) @@ -1066,7 +1066,7 @@ # Erase our messages DB db_do("delete from template_messages"); - # Create our template idnex + # Create our template index for my $vendor (sort keys %{$g{'templates'}}) { for my $model (sort keys %{$g{'templates'}{$vendor}}) { Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-24 15:17:07 UTC (rev 207) +++ trunk/modules/dm_tests.pm 2011-01-24 15:21:22 UTC (rev 208) @@ -1145,7 +1145,7 @@ # Get largest speed type my $speed = 1; # Start low: 1 bps - $speed *= 1000 while $bps > ($speed * 1000); + $speed *= 1000 while $bps >= ($speed * 1000); my $unit = $speeds{$speed}; # Measure to 2 decimal places This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-24 15:17:15
|
Revision: 207 http://devmon.svn.sourceforge.net/devmon/?rev=207&view=rev Author: buchanmilne Date: 2011-01-24 15:17:07 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Send localised time in dm test as well (Wim Nelis) Modified Paths: -------------- trunk/modules/dm_msg.pm Modified: trunk/modules/dm_msg.pm =================================================================== --- trunk/modules/dm_msg.pm 2011-01-24 15:12:03 UTC (rev 206) +++ trunk/modules/dm_msg.pm 2011-01-24 15:17:07 UTC (rev 207) @@ -21,6 +21,7 @@ # Modules use strict; use Socket; + use POSIX qw/ strftime /; use dm_config; # Our global variable hash @@ -212,7 +213,8 @@ # Add the header my $host = $g{'nodename'}; $host =~ s/\./,/g; # Dont forget our FQDN stuff - $message = "status $host.dm $color ".(scalar localtime)."\n\n$message\n"; + my $now = $g{'bbdateformat'} ? strftime($g{'bbdateformat'},localtime) : scalar(localtime); + $message = "status $host.dm $color $now\n\n$message\n"; return $message; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Buchan M. <bg...@st...> - 2011-01-24 15:12:42
|
On Tuesday, 21 December 2010 09:59:05 Nelis, Wim wrote: > Hello, > > the syntax check of the WORST transform failed, while the syntax looks > good: Phy2StatusE : WORST : {endptPhy2Speed},{endptPhy2Duplex} > The patch below changes the syntax check to become identical to the syntax > check of a BEST transform. Once applied the line above will not result in > an error message any more. However, it is not clear to me what is wrong > with the original RE to check the syntax. I think the problem is that both OIDs may be attempted to be matched by by ^\s*\{\s*\S+?\s*\}, whereas only the first one will match that. Since no templates in svn use WORST, I would appreciate if you can confirm that svn r206 or later works correctly. > > Index: modules/dm_templates.pm > =================================================================== > --- modules/dm_templates.pm (revision 10) > +++ modules/dm_templates.pm (revision 11) > @@ -653,7 +653,7 @@ > }; > > $func_type eq 'worst' and do { > - $temp =~ s/^\s*\{\s*\S+?\s*\}|\s*,\s*//g; > + $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; > do_log("WORST transform uses only comma-delimited oids at " . > "$trans_file, line $l_num", 0) > and next LINE if $temp ne ''; > > I didn't apply this patch, but edited and commited, but I think I got it right. Regards, Buchan |
From: <buc...@us...> - 2011-01-24 15:12:09
|
Revision: 206 http://devmon.svn.sourceforge.net/devmon/?rev=206&view=rev Author: buchanmilne Date: 2011-01-24 15:12:03 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Fix parsing of WORST operator (Wim Nelis) Modified Paths: -------------- trunk/modules/dm_templates.pm Modified: trunk/modules/dm_templates.pm =================================================================== --- trunk/modules/dm_templates.pm 2011-01-24 15:01:29 UTC (rev 205) +++ trunk/modules/dm_templates.pm 2011-01-24 15:12:03 UTC (rev 206) @@ -654,7 +654,7 @@ }; $func_type eq 'worst' and do { - $temp =~ s/^\s*\{\s*\S+?\s*\}|\s*,\s*//g; + $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; do_log("WORST transform uses only comma-delimited oids at " . "$trans_file, line $l_num", 0) and next LINE if $temp ne ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-24 15:01:35
|
Revision: 205 http://devmon.svn.sourceforge.net/devmon/?rev=205&view=rev Author: buchanmilne Date: 2011-01-24 15:01:29 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Move parsing of index operator to maintain alphabetical ordering of operators Modified Paths: -------------- trunk/modules/dm_templates.pm Modified: trunk/modules/dm_templates.pm =================================================================== --- trunk/modules/dm_templates.pm 2011-01-24 14:55:49 UTC (rev 204) +++ trunk/modules/dm_templates.pm 2011-01-24 15:01:29 UTC (rev 205) @@ -534,6 +534,14 @@ last CASE; }; + $func_type eq 'index' and do { + $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; + do_log("INDEX transform uses only a single oid at " . + "$trans_file, line $l_num", 0) + and next LINE if $temp ne ''; + last CASE; + }; + $func_type eq 'math' and do { $temp =~ s/:\s*\d+\s*$//; $temp =~ s/\{\s*\S+?\s*\}|\s|\s\.\s|x|\+|\/|-|\^|%|\||&|\d+(\.\d*)?|\(|\)\s*//g; @@ -653,14 +661,6 @@ last CASE; }; - $func_type eq 'index' and do { - $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; - do_log("INDEX transform uses only a single oid at " . - "$trans_file, line $l_num", 0) - and next LINE if $temp ne ''; - last CASE; - }; - do_log("Unknown function '$func_type' at $trans_file, line $l_num", 0); next LINE; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-24 14:55:56
|
Revision: 204 http://devmon.svn.sourceforge.net/devmon/?rev=204&view=rev Author: buchanmilne Date: 2011-01-24 14:55:49 +0000 (Mon, 24 Jan 2011) Log Message: ----------- Dump all config keys to log at startup in debug mode Modified Paths: -------------- trunk/modules/dm_config.pm Modified: trunk/modules/dm_config.pm =================================================================== --- trunk/modules/dm_config.pm 2011-01-23 13:37:59 UTC (rev 203) +++ trunk/modules/dm_config.pm 2011-01-24 14:55:49 UTC (rev 204) @@ -341,6 +341,17 @@ do_log("Node $g{'my_nodenum'} reporting to $g{'bbtype'} at $g{'dispserv'}",0); do_log("Running under process id: $g{'mypid'}",0); + # Dump some configs in debug mode + if ($g{'debug'}) { + foreach (keys %{$g{'globals'}}) { + do_log(sprintf("DEBUG CONFIG: global %s: %s",$_,$g{$_})); + } + foreach (keys %{$g{'locals'}}) { + do_log(sprintf("DEBUG CONFIG: local %s: %s",$_,$g{$_})); + } + } + + # We are now initialized $g{'initialized'} = 1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Buchan M. <bg...@st...> - 2011-01-24 14:00:48
|
On Monday, 20 December 2010 16:51:00 Nelis, Wim wrote: > Hello, > > when Devmon evaluates the transforms in a template, it uses a recursive > algorithm to resolve the dependencies between the OIDs. In the patch > below, the evaluation is divided into two steps. First the order of the > evaluation of the OIDs is determined using a topological sort. Then, the > OIDS are evaluated, without recursion, in the order determined in the > previous step. An added benefit of a topological sort is that it detects > any circular dependency chains in a simple and robust manner. > > The patch on Devmon below is NOT complete: the implementation for a > multinode environment is still missing, as I have no means to test it. Multiple nodes aren't necessary to test it, just a mysql database on a "test" devmon box. > Although it is possible to sort the OIDs just after reading them from the > database, a better approach is probably to save the sorted list of OIDs in > the database as well. I think that should not be too difficult. I will try and take a look at it later. > The patch is published in the hope that someone is both interested and > willing to extend and test it in a multinode environment. The patch uses > the "/trunk" Devmon version 187 as the base. It is in use at our site for > over half a year, without apperent problems. I had the impression that the > runtime of Devmon was lowered with about 1 second, on a total average > run-time of about 70 seconds, but after a few days the total average > run-time was back to it's original value. So ... we're not sure if it has any real benefit? Regards, Buchan |
From: SourceForge.net <no...@so...> - 2011-01-23 21:12:25
|
Bugs item #2937033, was opened at 2010-01-22 10:57 Message generated for change (Comment added) made by buchanmilne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2937033&group_id=160720 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Templates Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Private: No Submitted By: canne (canne) Assigned to: Nobody/Anonymous (nobody) Summary: Many templates share "sysdesc" in specs Initial Comment: I found out that the following templates share the same "sysdesc" line in the file "specs": linux-netsnmp compaq-server dell-perc This ends up in having the wrong template for Linux servers. I got no warnings in the log for this. ---------------------------------------------------------------------- >Comment By: Buchan Milne (buchanmilne) Date: 2011-01-23 23:12 Message: To be more specific, even if devmon used something other than sysDescr to identify devices, such as by sysObjectID, dell-perc is for a older Dell server running Linux that has a: pass .1.3.6.1.4.1.3582 /usr/sbin/percmain statement in snmpd.conf, without overriding sysObjectID: SNMPv2-MIB::sysObjectID.0 NET-SNMP-MIB::netSnmpAgentOIDs.10 or extending the sysOR table. compaq-server works for HP/Compaq ProLiant servers running Windows or Linux with HP's HPSIM/HPASM stuff, on Linux, this is net-snmp with: dlmod cmaX /usr/lib64/libcmaX64.so and some processes started by the hpasm service. Again, without overriding sysObjectID, or extending sysOR table: SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 Contrast this to (e.g.) cisco devices SNMPv2-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::cisco2821 or SNMPv2-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::cisco7304 or SNMPv2-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::ciscoWSC6513 ---------------------------------------------------------------------- Comment By: Buchan Milne (buchanmilne) Date: 2010-02-04 00:00 Message: Which is the correct template in your case? (device identification based solely on sysDescr is wrong, but it is quite some work to get to a better solution). For now, you should specify the template you want with the model option in bb-hosts, or edit the sysdesc values of the templates you don't use ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2937033&group_id=160720 |
From: SourceForge.net <no...@so...> - 2011-01-23 13:38:35
|
Bugs item #3098352, was opened at 2010-10-29 18:55 Message generated for change (Comment added) made by buchanmilne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=3098352&group_id=160720 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Templates Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: falz (falz) Assigned to: Nobody/Anonymous (nobody) Summary: 2811 template fixes, cisco consistencies, few new templates Initial Comment: A few issues, sorry to lump them in to one. First, a few new templates: * vmware-esx4 - snmp info from vmware. mainly stuff from the linux-netsnmp template but added vmware specific list of guests on host. I removed some of the netsnmp stuff because I couldnt seem to get consistent data back, that could be my environment though. Other than that other things like procs could be added from the net-snmp template if someone were to choose. * mikrotik-rb400 - Mikrotik Rotuerboard information. Probably works on all routerboards, only had 400 models to test with. * cisco-1600 - this was found on the net, pretty much the same as other cisco templates The other thing I had reported to the xymon mailing list as well as sf about inconsistencies in alerting in Cisco templates. That message is here: http://www.xymon.com/archive/2010/10/msg00226.html patch-all.diff is all of the above + those changes. Note that all of these patches are also downloadable at http://falz.net/static/devmon/ ---------------------------------------------------------------------- >Comment By: Buchan Milne (buchanmilne) Date: 2011-01-23 15:38 Message: patch-mikrotik-rb400.diff applied in r196 patch-cisco-2811.diff applied in r197 patch-cisco-1600.diff applied in r198 patch-vmware-esx4.diff applied in r199 The remaining changes in patch-all.diff don't all look correct. E.g., the change in memory/message for cisco-6506, cisco-3640, cisco-5500. The if_stat/thresholds for cisco-3640 still had some differences to that for (say) 7206,6509 I have also removed all occurrences of: ifName : alarm : Gi.+ from cisco templates. These changes went into r203 Thank you for your contributions. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=3098352&group_id=160720 |