Changeset 295
- Timestamp:
- 09/04/04 00:56:51 (8 years ago)
- Files:
-
- trunk/ChangeLog (modified) (1 diff, 1 prop)
- trunk/Makefile (modified) (1 diff, 1 prop)
- trunk/node/munin-node-configure-snmp (deleted)
- trunk/node/munin-node-configure-snmp.in (added)
- trunk/node/munin-node-configure.in (modified) (5 diffs, 1 prop)
- trunk/node/node.d/snmp__df.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d/snmp__load.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d/snmp__processes.in (modified) (2 diffs, 1 prop)
- trunk/node/node.d/snmp__users.in (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
- Property cvs2svn:cvs-rev changed from 1.128 to 1.129
r291 r295 7 7 * Small layout improvements. 8 8 * Added new options "graph_height" and "graph_width", to beter control size. 9 * Added support for SNMP probing. 9 10 10 11 munin (1.1.3) trunk/Makefile
- Property cvs2svn:cvs-rev changed from 1.19 to 1.20
r289 r295 65 65 $(INSTALL) -m 0755 build/node/munin-node $(SBINDIR)/ 66 66 $(INSTALL) -m 0755 build/node/munin-node-configure $(SBINDIR)/ 67 $(INSTALL) -m 0755 build/node/munin-node-configure-snmp $(SBINDIR)/ 67 68 test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(CONFDIR)/ 68 69 $(INSTALL) -m 0755 build/node/munin-run $(SBINDIR)/ trunk/node/munin-node-configure.in
- Property cvs2svn:cvs-rev changed from 1.4 to 1.5
r41 r295 4 4 # 5 5 # $Log$ 6 # Revision 1.5 2004/09/03 22:56:51 jimmyo 7 # Added support for SNMP probing. 8 # 6 9 # Revision 1.4 2004/01/29 19:25:52 jimmyo 7 10 # Fixed bad debug output (forgotten linebreaks) in munin-node-configure (SF#882385). … … 57 60 my @dfamilies = ("auto"); 58 61 my @families = (); 62 my @snmp = (); 63 my $snmpver = undef; 64 my $snmpcomm = undef; 59 65 my $removes = 0; 60 66 my $do_usage = 0; … … 64 70 65 71 $do_error = 1 unless GetOptions ( 66 "help" => \$do_usage, 67 "shell!" => \$shell, 68 "debug!" => \$debug, 69 "suggest!" => \$suggest, 70 "config=s" => \$config, 71 "servicedir=s" => \$servicedir, 72 "remove-also!" => \$removes, 73 "libdir=s" => \$libdir, 74 "families=s" => \@families, 75 "version=s" => \$do_version, 76 "newer=s" => \$newer 72 "help" => \$do_usage, 73 "shell!" => \$shell, 74 "debug!" => \$debug, 75 "suggest!" => \$suggest, 76 "config=s" => \$config, 77 "servicedir=s" => \$servicedir, 78 "remove-also!" => \$removes, 79 "libdir=s" => \$libdir, 80 "families=s" => \@families, 81 "version=s" => \$do_version, 82 "snmp=s" => \@snmp, 83 "snmpversion=s" => \$snmpver, 84 "snmpcommunity=s" => \$snmpcomm, 85 "newer=s" => \$newer 77 86 ); 78 87 … … 120 129 } 121 130 131 if (@snmp and !$shell) 132 { 133 print "Fatal: --snmp only supported along with --shell.\n"; 134 exit 3; 135 } 136 122 137 if (!@families) 123 138 { … … 271 286 } 272 287 288 } 289 } 290 291 if (@snmp and $shell) 292 { 293 if (-x "$bindir/munin-node-configure-snmp") 294 { 295 if (eval "require Net::SNMP;") 296 { 297 my @params; 298 push (@params, "$bindir/munin-node-configure-snmp"); 299 push (@params, "--snmpversion", $snmpver) if defined $snmpver; 300 push (@params, "--community", $snmpcomm) if defined $snmpcomm; 301 push (@params, @snmp); 302 exec (@params); 303 # NOTREACHED 304 } 305 else 306 { 307 print STDERR "# ERROR: Cannot perform SNMP probe. SNMP operations require the perl module\n"; 308 print STDERR "# Net::SNMP, which is currently not installed (or not in one of the following\n"; 309 print STDERR "# directories: @INC\n"; 310 } 311 } 312 else 313 { 314 print STDERR "# ERROR: Cannot perform SNMP probe. SNMP operations require the SNMP part\n"; 315 print STDERR "# of Munin to be installed, which is currently not installed, or not in the \n"; 316 print STDERR "# rigt directory: $bindir\n"; 273 317 } 274 318 } trunk/node/node.d/snmp__df.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r141 r295 2 2 # 3 3 # $Log$ 4 # Revision 1.2 2004/09/03 22:56:51 jimmyo 5 # Added support for SNMP probing. 6 # 4 7 # Revision 1.1 2004/04/29 22:29:57 jimmyo 5 8 # New SNMP plugin for disk usage. … … 122 125 if (defined $ARGV[0] and $ARGV[0] eq "config") 123 126 { 127 print "host_name $host\n"; 124 128 print "graph_title Filesystem usage (in %)\n"; 125 129 print "graph_args --upper-limit 100 -l 0\n"; trunk/node/node.d/snmp__load.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r149 r295 2 2 # 3 3 # $Log$ 4 # Revision 1.2 2004/09/03 22:56:51 jimmyo 5 # Added support for SNMP probing. 6 # 4 7 # Revision 1.1 2004/05/01 10:50:53 jimmyo 5 8 # New SNMP plugins users and load. … … 75 78 if (defined $ARGV[0] and $ARGV[0] eq "config") 76 79 { 80 print "host_name $host\n"; 77 81 print "graph_title Load average 78 82 graph_args --base 1000 -l 0 trunk/node/node.d/snmp__processes.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r146 r295 2 2 # 3 3 # $Log$ 4 # Revision 1.2 2004/09/03 22:56:51 jimmyo 5 # Added support for SNMP probing. 6 # 4 7 # Revision 1.1 2004/04/30 20:13:53 jimmyo 5 8 # New SNMP plugin for number of procs. … … 72 75 if (defined $ARGV[0] and $ARGV[0] eq "config") 73 76 { 77 print "host_name $host\n"; 74 78 print "graph_title Number of Processes 75 79 graph_args --base 1000 -l 0 trunk/node/node.d/snmp__users.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r149 r295 2 2 # 3 3 # $Log$ 4 # Revision 1.2 2004/09/03 22:56:51 jimmyo 5 # Added support for SNMP probing. 6 # 4 7 # Revision 1.1 2004/05/01 10:50:53 jimmyo 5 8 # New SNMP plugins users and load. … … 75 78 if (defined $ARGV[0] and $ARGV[0] eq "config") 76 79 { 80 print "host_name $host\n"; 77 81 print "graph_title Number of users 78 82 graph_args --base 1000 -l 0
