Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/nagios/nagios_multi_ | ||
|---|---|---|
| 14 | 14 |
=head2 MUNIN ENVIRONMENT CONFIGURATION EXPLANATION |
| 15 | 15 |
|
| 16 | 16 |
binary = location of your nagiostats binary including binary |
| 17 |
passive = tell the plugin to graph passive results
|
|
| 17 |
passive = tell the plugin to graph passive results |
|
| 18 | 18 |
|
| 19 | 19 |
=head1 NODE CONFIGURATION |
| 20 | 20 |
|
| ... | ... | |
| 60 | 60 |
GPLv2 |
| 61 | 61 |
|
| 62 | 62 |
=head1 MAGIC MARKERS |
| 63 |
|
|
| 63 |
|
|
| 64 | 64 |
#%# family=auto |
| 65 | 65 |
#%# capabilities=autoconf suggest |
| 66 | 66 |
|
| ... | ... | |
| 122 | 122 |
|
| 123 | 123 |
my %graphs; |
| 124 | 124 |
|
| 125 |
# main graph for service checks
|
|
| 125 |
# main graph for service checks |
|
| 126 | 126 |
$graphs{services} = {
|
| 127 | 127 |
config => {
|
| 128 | 128 |
args => '--lower-limit 0', |
| ... | ... | |
| 207 | 207 |
{ name => 'AVGACTSVCEXT', label => 'Average Execution', min => '0', type => 'GAUGE', info => 'avg active service check execution time (ms).', draw => 'LINE2' },
|
| 208 | 208 |
], |
| 209 | 209 |
}; |
| 210 |
# main graph for host problems
|
|
| 210 |
# main graph for host problems |
|
| 211 | 211 |
$graphs{hosts} = {
|
| 212 | 212 |
config => {
|
| 213 | 213 |
args => '--lower-limit 0', |
| ... | ... | |
| 290 | 290 |
{ name => 'AVGACTHSTEXT', label => 'Average Execution', min => '0', type => 'GAUGE', info => 'avg active host check execution time (ms).', draw => 'LINE2' },
|
| 291 | 291 |
], |
| 292 | 292 |
}; |
| 293 |
# main graph for host / service check counts
|
|
| 293 |
# main graph for host / service check counts |
|
| 294 | 294 |
$graphs{checks} = {
|
| 295 | 295 |
config => {
|
| 296 | 296 |
args => '--lower-limit 0', |
| ... | ... | |
| 404 | 404 |
=head2 Config Check |
| 405 | 405 |
|
| 406 | 406 |
This block of code looks at the argument that is possibly supplied, |
| 407 |
should it be config, it then checks to make sure the plugin
|
|
| 408 |
specified exists, assuming it does, it will run the do_config
|
|
| 407 |
should it be config, it then checks to make sure the plugin |
|
| 408 |
specified exists, assuming it does, it will run the do_config |
|
| 409 | 409 |
subroutine for the plugin specified, otherwise it dies complaining |
| 410 | 410 |
about an unknown plugin. |
| 411 | 411 |
|
| ... | ... | |
| 618 | 618 |
=cut |
| 619 | 619 |
|
| 620 | 620 |
sub print_sub_config {
|
| 621 |
# Lets get our plugin and subgraph, after that print for Munin to process it.
|
|
| 621 |
# Lets get our plugin and subgraph, after that print for Munin to process it. |
|
| 622 | 622 |
my ($plugin,$subgraph) = (@_); |
| 623 | 623 |
my $graph = $graphs{$subgraph};
|
| 624 | 624 |
print "multigraph nagios_$plugin.$subgraph\n"; |
Formats disponibles : Unified diff