mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 10:58:12 +00:00
correct code indention, remove whitespaces at EOL, add documentation about vCenter usage
This commit is contained in:
parent
b81e26cdaf
commit
2b23857b4a
1 changed files with 331 additions and 317 deletions
|
@ -45,6 +45,19 @@ Then you need to add this host to your munin.conf on the munin server
|
||||||
munin-node, and wait for the data to populate.
|
munin-node, and wait for the data to populate.
|
||||||
|
|
||||||
|
|
||||||
|
-== Query all hosts of a vCenter ==-
|
||||||
|
An alternate way of using this plugin is to link it to
|
||||||
|
/etc/munin/plugins/vcenter_<hostname_of_vcenter>
|
||||||
|
In this mode, the vCenter server specified in the filename is queried
|
||||||
|
for a list of hosts it manages, and graphs are created for all these
|
||||||
|
hosts. The option "flatview" is implied in this mode, since one munin
|
||||||
|
plugin can only be assigned to one host. The option "vCenter" is ignored
|
||||||
|
since the vCenter server is given through the file name. You can, however
|
||||||
|
still use the option "flatview" to override the "host_name" under which
|
||||||
|
the results are reported. Make sure to read the section below about
|
||||||
|
this option!
|
||||||
|
|
||||||
|
|
||||||
-== Graphs don't render ==-
|
-== Graphs don't render ==-
|
||||||
Munin 1.4 has a bug with complex multigraphs like this, see
|
Munin 1.4 has a bug with complex multigraphs like this, see
|
||||||
http://munin-monitoring.org/ticket/1224 for details and a fix if
|
http://munin-monitoring.org/ticket/1224 for details and a fix if
|
||||||
|
@ -163,7 +176,7 @@ foreach $host_name (@host_names) {
|
||||||
local *FH;
|
local *FH;
|
||||||
my $pid = open(FH, "-|");
|
my $pid = open(FH, "-|");
|
||||||
if ($pid == 0) {
|
if ($pid == 0) {
|
||||||
######################## CHILD
|
# CHILD
|
||||||
|
|
||||||
if ((defined $ARGV[0]) and ($ARGV[0] eq "config")) {
|
if ((defined $ARGV[0]) and ($ARGV[0] eq "config")) {
|
||||||
if ($ENV{flatview}) {
|
if ($ENV{flatview}) {
|
||||||
|
@ -468,11 +481,12 @@ print "# time of the script: ", time() - $sstarttime, "\n" if $DEBUG;
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
} else {
|
} else {
|
||||||
################################ PARENT
|
# PARENT
|
||||||
push @returns, *FH;
|
push @returns, *FH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# gather and print the output of the forked processes
|
||||||
foreach my $fh (@returns) {
|
foreach my $fh (@returns) {
|
||||||
while (<$fh>) {
|
while (<$fh>) {
|
||||||
print $_;
|
print $_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue