Changeset 7
- Timestamp:
- 01/15/04 16:20:01 (8 years ago)
- Files:
-
- trunk/Makefile (modified) (4 diffs, 1 prop)
- trunk/README.api (modified) (1 diff, 1 prop)
- trunk/RELEASE (modified) (1 diff, 1 prop)
- trunk/node/munin-node-configure.in (modified) (6 diffs, 1 prop)
- trunk/node/munin-node-simple.in (modified) (2 diffs, 1 prop)
- trunk/node/munin-node.conf.in (added)
- trunk/node/munin-node.conf.pod (added)
- trunk/node/munin-node.in (modified) (13 diffs, 1 prop)
- trunk/node/munin-run.in (modified) (9 diffs, 1 prop)
- trunk/node/node.conf.in (deleted)
- trunk/node/node.conf.pod (deleted)
- trunk/node/plugins.history.in (modified) (1 diff, 1 prop)
- trunk/server/Munin.pm.in (modified) (2 diffs, 1 prop)
- trunk/server/munin-cron.pod (modified) (1 diff, 1 prop)
- trunk/server/munin-graph.in (modified) (2 diffs, 1 prop)
- trunk/server/munin-html.in (modified) (2 diffs, 1 prop)
- trunk/server/munin-limits.in (modified) (2 diffs, 1 prop)
- trunk/server/munin-nagios.in (modified) (2 diffs, 1 prop)
- trunk/server/munin-update.in (modified) (4 diffs, 1 prop)
- trunk/server/munin.conf.pod (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Makefile
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r6 r7 13 13 default: build 14 14 15 install: install-main install- eye install-eye-plugins install-doc15 install: install-main install-node install-node-plugins install-doc 16 16 17 17 install-main: build … … 59 59 $(CHMOD) 755 $(CONFDIR)/plugin-conf.d 60 60 61 $(INSTALL) -m 0755 build/ eye/munin-eye $(SBINDIR)/62 $(INSTALL) -m 0755 build/ eye/munin-eye-configure $(SBINDIR)/63 test -f "$(CONFDIR)/munin- eye.conf" || $(INSTALL) -m 0644 build/eye/munin-eye.conf $(CONFDIR)/64 $(INSTALL) -m 0755 build/ eye/munin-run $(SBINDIR)/65 66 install- eye-plugins: build67 for p in build/ eye/plugins.$(ARCH)/* build/eye/plugins/*; do \61 $(INSTALL) -m 0755 build/node/munin-node $(SBINDIR)/ 62 $(INSTALL) -m 0755 build/node/munin-node-configure $(SBINDIR)/ 63 test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(CONFDIR)/ 64 $(INSTALL) -m 0755 build/node/munin-run $(SBINDIR)/ 65 66 install-node-plugins: build 67 for p in build/node/node.d.$(ARCH)/* build/node/node.d/*; do \ 68 68 if test -f "$$p" ; then \ 69 69 family=`sed -n 's/^#%# family=\(.*\)$$/\1/p' $$p`; \ … … 75 75 fi \ 76 76 done 77 $(INSTALL) -m 0644 build/ eye/plugins.history $(LIBDIR)/plugins/77 $(INSTALL) -m 0644 build/node/plugins.history $(LIBDIR)/plugins/ 78 78 79 79 #TODO: … … 202 202 tar -C .. --dereference --exclude CVS --exclude dists -cvzf ../munin_$(RELEASE).tar.gz munin-$(VERSION)/ 203 203 204 .PHONY: install install-main install- eye install-doc build build-doc deb rpm clean source_dist204 .PHONY: install install-main install-node install-doc build build-doc deb rpm clean source_dist trunk/README.api
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r6 r7 7 7 Asks client to list all items available for query for 8 8 this host. If no host is given, default to host that runs 9 the munin- eye9 the munin-node 10 10 11 11 - nodes trunk/RELEASE
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r2 r7 1 0.9.9r6 1 1.0.0pre1 trunk/node/munin-node-configure.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 4 4 # 5 5 # $Log$ 6 # Revision 1.2 2004/01/15 15:20:00 jimmyo 7 # Making things workable after name change. Upping for test verwion. 8 # 6 9 # Revision 1.1 2004/01/02 18:50:00 jimmyo 7 10 # Renamed occurrances of lrrd -> munin … … 36 39 37 40 my $version = "@@VERSION@@"; 38 my $config = "@@CONFDIR@@/munin- eye.conf";41 my $config = "@@CONFDIR@@/munin-node.conf"; 39 42 my $servicedir = "@@CONFDIR@@/plugins"; 40 43 my $libdir = "@@LIBDIR@@/plugins"; … … 94 97 if ($do_version) 95 98 { 96 print "munin- eye-configure (munin-eye) version $version.\n";99 print "munin-node-configure (munin-node) version $version.\n"; 97 100 print "Written by Jimmy Olsen\n"; 98 101 print "\n"; … … 504 507 =head1 NAME 505 508 506 munin- eye-configure - A program to view configurations for munin-eye509 munin-node-configure - A program to view configurations for munin-node 507 510 508 511 =head1 SYNOPSIS 509 512 510 munin- eye-configure [options]513 munin-node-configure [options] 511 514 512 515 =head1 OPTIONS … … 558 561 =head1 DESCRIPTION 559 562 560 Munin's eye is a daemon that Munin connects to fetch data. This data is563 Munin's node is a daemon that Munin connects to fetch data. This data is 561 564 stored in .rrd-files, and later graphed and htmlified. It's designed to 562 565 let it be very easy to graph new datasources. 563 566 564 Munin- eye-configure is a script to show the current configuration of which567 Munin-node-configure is a script to show the current configuration of which 565 568 plugins the host is running, as well as suggestions on what changes to make 566 to this configuration. Munin- eye-configure does this by using munin-run(1) to569 to this configuration. Munin-node-configure does this by using munin-run(1) to 567 570 ask the plugins themselves of wether they should be run or not. 568 571 569 572 =head1 FILES 570 573 571 @@CONFDIR@@/munin- eye.conf574 @@CONFDIR@@/munin-node.conf 572 575 @@CONFDIR@@/plugin-conf.d/* 573 576 @@CONFDIR@@/plugins/* … … 576 579 =head1 VERSION 577 580 578 This is munin- eye-configure v@@VERSION@@.581 This is munin-node-configure v@@VERSION@@. 579 582 580 583 =head1 AUTHORS trunk/node/munin-node-simple.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 1 1 #!/usr/bin/perl -wT 2 2 # 3 # Simple munin- eye. Should be run from inetd or similar.3 # Simple munin-node. Should be run from inetd or similar. 4 4 # 5 5 # This should be as small and elegant as possible, to make for easier … … 8 8 # 9 9 # $Log$ 10 # Revision 1.2 2004/01/15 15:20:01 jimmyo 11 # Making things workable after name change. Upping for test verwion. 12 # 10 13 # Revision 1.1 2004/01/02 18:50:00 jimmyo 11 14 # Renamed occurrances of lrrd -> munin trunk/node/munin-node.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 4 4 # 5 5 # $Log$ 6 # Revision 1.2 2004/01/15 15:20:01 jimmyo 7 # Making things workable after name change. Upping for test verwion. 8 # 6 9 # Revision 1.1 2004/01/02 18:50:00 jimmyo 7 10 # Renamed occurrances of lrrd -> munin … … 58 61 my $servicedir="@@CONFDIR@@/plugins"; 59 62 my $sconfdir="@@CONFDIR@@/plugin-conf.d"; 60 my $conffile="@@CONFDIR@@/munin- eye.conf";63 my $conffile="@@CONFDIR@@/munin-node.conf"; 61 64 my $FQDN=""; 62 65 my $do_usage = 0; … … 84 87 --help View this message. 85 88 --config <file> Use <file> as configuration file. 86 [/etc/munin/munin- eye.conf]89 [/etc/munin/munin-node.conf] 87 90 --[no]paranoia Only run plugins owned by root. Check permissions. 88 91 [--noparanoia] … … 96 99 if ($do_version) 97 100 { 98 print "munin- eye (munin-eye) version $VERSION.101 print "munin-node (munin-node) version $VERSION. 99 102 Written by Audun Ytterdal, Jimmy Olsen, Tore Anderson / Linpro AS 100 103 … … 176 179 177 180 MyPackage->run(conf_file => $conffile, 178 pid_file => "@@STATEDIR@@/munin- eye.pid");181 pid_file => "@@STATEDIR@@/munin-node.pid"); 179 182 exit; 180 183 … … 185 188 186 189 sub show_version { 187 print "munins eye on $FQDN version: $VERSION\n"190 print "munins node on $FQDN version: $VERSION\n" 188 191 } 189 192 … … 402 405 sub process_request { 403 406 my $self = shift; 404 print "# munin s eye at $FQDN\n";407 print "# munin node at $FQDN\n"; 405 408 local $SIG{ALRM} = sub { die "timeout" }; 406 409 alarm(10); … … 626 629 =head1 NAME 627 630 628 munin- eye - A daemon to gather information in cooperation with the main631 munin-node - A daemon to gather information in cooperation with the main 629 632 Munin program 630 633 631 634 =head1 SYNOPSIS 632 635 633 munin- eye [--options]636 munin-node [--options] 634 637 635 638 =head1 OPTIONS … … 639 642 =item B<< --config <configfile> >> 640 643 641 Use E<lt>fileE<gt> as configuration file. [/etc/munin/munin- eye.conf]644 Use E<lt>fileE<gt> as configuration file. [/etc/munin/munin-node.conf] 642 645 643 646 =item B< --[no]paranoia > … … 657 660 =head1 DESCRIPTION 658 661 659 Munin's eye is a daemon that Munin connects to fetch data. This data is662 Munin's node is a daemon that Munin connects to fetch data. This data is 660 663 stored in .rrd-files, and later graphed and htmlified. It's designed to 661 664 let it be very easy to graph new datasources. 662 665 663 Munin- eye is a small perlscript listening to port 4949 using666 Munin-node is a small perlscript listening to port 4949 using 664 667 Net::Server. It reads all the plugins in /etc/munin/plugins/ on startup. 665 668 The node accepts the following commands: … … 670 673 671 674 list available plugins for host. If no hostname is specified, list plugins 672 on host running munin- eye675 on host running munin-node 673 676 674 677 =item B<< nodes >> 675 678 676 List nodes that has plugins in this munin- eye.679 List nodes that has plugins in this munin-node. 677 680 678 681 =item B<< config <plugin> >> … … 718 721 =head1 FILES 719 722 720 @@CONFDIR@@/munin- eye.conf723 @@CONFDIR@@/munin-node.conf 721 724 @@CONFDIR@@/plugins/* 722 725 @@CONFDIR@@/plugin-conf.d/* 723 @@STATEDIR@@/munin- eye.pid724 @@LOGDIR@@/munin- eye726 @@STATEDIR@@/munin-node.pid 727 @@LOGDIR@@/munin-node 725 728 726 729 =head1 VERSION 727 730 728 This is munin- eye v@@VERSION@@731 This is munin-node v@@VERSION@@ 729 732 730 733 =head1 AUTHORS … … 734 737 =head1 BUGS 735 738 736 munin- eye does, as of now, not check the syntax of the configuration file.739 munin-node does, as of now, not check the syntax of the configuration file. 737 740 738 741 Please report other bugs in the bug tracker at L<http://munin.sf.net/>. trunk/node/munin-run.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 4 4 # 5 5 # $Log$ 6 # Revision 1.2 2004/01/15 15:20:01 jimmyo 7 # Making things workable after name change. Upping for test verwion. 8 # 6 9 # Revision 1.1 2004/01/02 18:50:00 jimmyo 7 10 # Renamed occurrances of lrrd -> munin … … 47 50 my $servicedir="@@CONFDIR@@/plugins"; 48 51 my $sconfdir="@@CONFDIR@@/plugin-conf.d"; 49 my $conffile="@@CONFDIR@@/munin- eye.conf";52 my $conffile="@@CONFDIR@@/munin-node.conf"; 50 53 my $sconffile=undef; 51 54 my $FQDN=""; … … 78 81 --help View this message. 79 82 --config <file> Use <file> as configuration file. 80 [@@CONFDIR@@/munin- eye.conf]83 [@@CONFDIR@@/munin-node.conf] 81 84 --servicedir <dir> Dir where plugins are found. 82 85 [@@CONFDIR@@/plugins] … … 131 134 if ($do_version) 132 135 { 133 print "munin-run (munin- eye) version $VERSION.136 print "munin-run (munin-node) version $VERSION. 134 137 Written by Jimmy Olsen / Linpro AS 135 138 … … 587 590 =head1 NAME 588 591 589 munin-run - A program to run munin- eye plugins from the command line592 munin-run - A program to run munin-node plugins from the command line 590 593 591 594 =head1 SYNOPSIS … … 599 602 =item B<< --config <configfile> >> 600 603 601 Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin- eye.conf]604 Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin-node.conf] 602 605 603 606 =item B<< --servicedir <dir> >> … … 629 632 =head1 DESCRIPTION 630 633 631 Munin's eye is a daemon that Munin connects to fetch data. This data is634 Munin's node is a daemon that Munin connects to fetch data. This data is 632 635 stored in .rrd-files, and later graphed and htmlified. It's designed to 633 636 let it be very easy to graph new datasources. 634 637 635 munin-run is a small perlscript to run the plugins used by the munin- eye638 munin-run is a small perlscript to run the plugins used by the munin-node 636 639 daemon from the command line. 637 640 … … 640 643 =head1 FILES 641 644 642 @@CONFDIR@@/munin- eye.conf645 @@CONFDIR@@/munin-node.conf 643 646 @@CONFDIR@@/plugins/* 644 647 @@CONFDIR@@/plugin-conf.d/* 645 @@STATEDIR@@/munin- eye.pid646 @@LOGDIR@@/munin- eye648 @@STATEDIR@@/munin-node.pid 649 @@LOGDIR@@/munin-node 647 650 648 651 =head1 VERSION 649 652 650 This is munin- eye v@@VERSION@@653 This is munin-node v@@VERSION@@ 651 654 652 655 =head1 AUTHORS … … 656 659 =head1 BUGS 657 660 658 munin- eye does, as of now, not check the syntax of the configuration file.661 munin-node does, as of now, not check the syntax of the configuration file. 659 662 660 663 Please report other bugs in the bug tracker at L<http://munin.sf.net/>. trunk/node/plugins.history.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 77 77 [0.9.9r6] 78 78 [0.9.9r7] 79 [1.0.0pre1] trunk/server/Munin.pm.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 5 5 # 6 6 # $Log$ 7 # Revision 1.2 2004/01/15 15:20:01 jimmyo 8 # Making things workable after name change. Upping for test verwion. 9 # 7 10 # Revision 1.1 2004/01/02 18:50:01 jimmyo 8 11 # Renamed occurrances of lrrd -> munin … … 244 247 } 245 248 246 if (grep (/^\s*<\s*domain\s*/, @contents)) 247 { 248 if (! eval "require Config::General;") 249 { 250 die "Fatal: Configuration file \"$conf\" uses old configuration format requiring uninstalled perl module Config::General. Bailing out. ($!)"; 251 } 252 print "DEBUG: Config file has old format.\n" if $DEBUG; 253 if ($corruptok) 254 { 255 # Check if the datafile is sane 256 $@ = undef; 257 eval { 258 new Config::General($conf); 259 }; 260 if ($@) 261 { 262 ::logger ("munin_readconfig: \'$conf\' corrupt, starting from scratch. ($@)\n"); 263 return undef; 264 } 265 } 266 my $conffile = new Config::General($conf); 267 $config = { $conffile->getall }; 268 } 269 else 270 { # New config format 271 print "DEBUG: Config file has new format.\n" if $DEBUG; 272 $config = &munin_parse_config (\@contents); 273 } 249 $config = &munin_parse_config (\@contents); 274 250 275 251 # Some important defaults before we return... trunk/server/munin-cron.pod
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 28 28 29 29 Munin-cron is a part of the package Munin, which is used in combination 30 with Munin's eye. Munin is a group of programs to gather data from31 Munin's eyes, graph them, create html-pages, and optionally warn Nagios30 with Munin's node. Munin is a group of programs to gather data from 31 Munin's nodes, graph them, create html-pages, and optionally warn Nagios 32 32 about any off-limit values. 33 33 trunk/server/munin-graph.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 6 6 # 7 7 # $Log$ 8 # Revision 1.2 2004/01/15 15:20:01 jimmyo 9 # Making things workable after name change. Upping for test verwion. 10 # 8 11 # Revision 1.1 2004/01/02 18:50:01 jimmyo 9 12 # Renamed occurrances of lrrd -> munin … … 851 854 852 855 Munin-graph is a part of the package Munin, which is used in combination 853 with Munin's eye. Munin is a group of programs to gather data from854 Munin's eyes, graph them, create html-pages, and optionally warn Nagios856 with Munin's node. Munin is a group of programs to gather data from 857 Munin's nodes, graph them, create html-pages, and optionally warn Nagios 855 858 about any off-limit values. 856 859 trunk/server/munin-html.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 4 4 # 5 5 # $Log$ 6 # Revision 1.2 2004/01/15 15:20:01 jimmyo 7 # Making things workable after name change. Upping for test verwion. 8 # 6 9 # Revision 1.1 2004/01/02 18:50:01 jimmyo 7 10 # Renamed occurrances of lrrd -> munin … … 273 276 274 277 Munin-html is a part of the package Munin, which is used in combination 275 with Munin's eye. Munin is a group of programs to gather data from276 Munin's eyes, graph them, create html-pages, and optionally warn Nagios278 with Munin's node. Munin is a group of programs to gather data from 279 Munin's nodes, graph them, create html-pages, and optionally warn Nagios 277 280 about any off-limit values. 278 281 trunk/server/munin-limits.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 3 3 # 4 4 # $Log$ 5 # Revision 1.2 2004/01/15 15:20:01 jimmyo 6 # Making things workable after name change. Upping for test verwion. 7 # 5 8 # Revision 1.1 2004/01/02 18:50:01 jimmyo 6 9 # Renamed occurrances of lrrd -> munin … … 231 234 232 235 Munin-nagios is a part of the package Munin, which is used in combination 233 with Munin's eye. Munin is a group of programs to gather data from234 Munin's eyes, graph them, create html-pages, and optionally warn Nagios236 with Munin's node. Munin is a group of programs to gather data from 237 Munin's nodes, graph them, create html-pages, and optionally warn Nagios 235 238 about any off-limit values. 236 239 trunk/server/munin-nagios.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 5 5 # 6 6 # $Log$ 7 # Revision 1.2 2004/01/15 15:20:01 jimmyo 8 # Making things workable after name change. Upping for test verwion. 9 # 7 10 # Revision 1.1 2004/01/02 18:50:01 jimmyo 8 11 # Renamed occurrances of lrrd -> munin … … 360 363 361 364 Munin-nagios is a part of the package Munin, which is used in 362 combination with Munin's eye. Munin is a group of programs to gather363 data from Munin's eyes, graph them, create html-pages, and optionally365 combination with Munin's node. Munin is a group of programs to gather 366 data from Munin's nodes, graph them, create html-pages, and optionally 364 367 warn Nagios about any off-limit values. 365 368 trunk/server/munin-update.in
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 6 6 # 7 7 # $Log$ 8 # Revision 1.2 2004/01/15 15:20:01 jimmyo 9 # Making things workable after name change. Upping for test verwion. 10 # 8 11 # Revision 1.1 2004/01/02 18:50:01 jimmyo 9 12 # Renamed occurrances of lrrd -> munin … … 540 543 return 0; 541 544 } 542 $clientdomain =~ s/\#.*(?:lrrd|munins) (?:client| eye) at //;545 $clientdomain =~ s/\#.*(?:lrrd|munins) (?:client|node) at //; 543 546 if (exists $node->{'use_node_name'} and $node->{'use_node_name'} =~ /^\s*y(?:es)\s*$/i) 544 547 { … … 793 796 794 797 Munin-update is a part of the package Munin, which is used in 795 combination with Munin's eye. Munin is a group of programs to gather796 data from Munin's eyes, graph them, create html-pages, and optionally798 combination with Munin's node. Munin is a group of programs to gather 799 data from Munin's nodes, graph them, create html-pages, and optionally 797 800 warn Nagios about any off-limit values. 798 801 … … 800 803 munin-cron. 801 804 802 It contacts each host's munin- eye in turn, gathers data from it, and805 It contacts each host's munin-node in turn, gathers data from it, and 803 806 stores them in .rrd-files. If necessary, it will create the rrd-files 804 807 and the directories to store them in. trunk/server/munin.conf.pod
- Property cvs2svn:cvs-rev changed from 1.1 to 1.2
r6 r7 5 5 =head1 DESCRIPTION 6 6 7 Munin is a group of programs to gather data from Munin's eyes, graph7 Munin is a group of programs to gather data from Munin's nodes, graph 8 8 them, create html-pages, and optionally warn Nagios about any off-limit 9 9 values.
