X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-nagios.pod;h=d7c749cd3391aefc86369c208193063111655fe6;hb=b4c8f3f762d666742c774ab3b45815e5a416e5da;hp=e69f18e33e19139865d813b72572e5ac7664e8b1;hpb=721f8d81910c71154aba9ff8d243db52bfb584ed;p=collectd.git diff --git a/src/collectd-nagios.pod b/src/collectd-nagios.pod index e69f18e3..d7c749cd 100644 --- a/src/collectd-nagios.pod +++ b/src/collectd-nagios.pod @@ -9,7 +9,7 @@ collectd-nagios B<-s> I B<-n> I B<-H> I I<[options =head1 DESCRIPTION This small program is the glue between collectd and nagios. collectd collects -various performance statistics which is provides via the C, +various performance statistics which it provides via the C, see L. This program is called by Nagios, connects to the UNIX socket and reads the values from collectd. It then returns B, B or B depending on the values and the ranges provided by @@ -45,8 +45,8 @@ handled according to the consolidation function given with the B<-g> option. =item B<-g> BI<|>BI<|>B -When multiple data sources are selected from a value spec they can be handled -differently dependin on this option. The values of the following meaning: +When multiple data sources are selected from a value spec, they can be handled +differently depending on this option. The values of the following meaning: =over 4 @@ -63,6 +63,12 @@ The warning and critical ranges are applied to the average of all values. The warning and critical ranges are applied to the sum of all values. +=item B + +The warning and critical ranges are applied to the ratio (in percent) of the +first value and the sum of all values. A warning is returned if the first +value is not defined or if all values sum up to zero. + =back =item B<-c> I @@ -71,22 +77,38 @@ The warning and critical ranges are applied to the sum of all values. Set the critical (B<-c>) and warning (B<-w>) ranges. These options mostly follow the normal syntax of Nagios plugins. The general format is -"IB<:>I". If a value if smaller than I or bigger than I a -warning or critical is returned, otherwise okay is returned. I (and the -colon) may be omitted and are then assumed to be zero. If I (but not the -colon) is omitted I is set to positive infinity. If either I or -I if set to B<~> they are set to negative and positive infinity, -respectively. +"IB<:>I". If a value is smaller than I or bigger than I, a +I or I status is returned, otherwise the status is +I. + +The tilde sign (B<~>) can be used to explicitly specify infinity. If B<~> is +used as a I value, negative infinity is used. In case of I, it is +interpreted as positive infinity. + +If the first character of the I is the atEsign (B<@>), the meaning +of the range will be inverted. I.Ee. all values I the range will +yield a I or I status, while all values I the range +will result in a I status. + +I (and the colon) may be omitted, +I is then assumed to be zero. If I (but not the trailing colon) is +omitted, I is assumed to be positive infinity. + +=item B<-m> + +If this option is given, "Not a Number" (NaN) is treated as I. By +default, the I consolidation reports NaNs as I. Other +consolidations simply ignore NaN values. =back =head1 RETURN VALUE -As usual for Nagios plugins this program writes a short, one line status +As usual for Nagios plugins, this program writes a short, one line status message to STDOUT and signals success or failure with it's return value. It -exists with a return value of B<0> for success or B<1> or B<2> for warning and -critical, respectively. If the values is not available or some other error -occured it returnes B<3> for "unknown". +exits with a return value of B<0> for I, B<1> for I and B<2> +for I. If the values are not available or some other error occurred, +it returns B<3> for I. =head1 SEE ALSO