asterisk: doc into plugin

This commit is contained in:
David Sabatié 2015-01-13 17:25:54 +01:00
parent 531a969b05
commit a20376e2f2
5 changed files with 38 additions and 7 deletions

View File

@ -144,10 +144,26 @@ List partitions.
Hostname to query. Hostname to query.
=item B<--port>
port to connect.
=item B<--username>
username for conection.
=item B<--password>
password for conection.
=item B<--filter-name> =item B<--filter-name>
Filter on trunkname (regexp can be used). Filter on trunkname (regexp can be used).
=item B<--timeout>
connection timeout.
=back =back
=cut =cut

View File

@ -142,12 +142,28 @@ List partitions.
=item B<--hostname> =item B<--hostname>
Hostname to query (need --remote). Hostname to query.
=item B<--port>
port to connect.
=item B<--username>
username for conection.
=item B<--password>
password for conection.
=item B<--filter-name> =item B<--filter-name>
Filter on trunkname (regexp can be used). Filter on trunkname (regexp can be used).
=item B<--timeout>
connection timeout.
=back =back
=cut =cut

View File

@ -114,7 +114,7 @@ __END__
=head1 MODE =head1 MODE
Check system uptime. Check number of active calls.
=over 8 =over 8

View File

@ -202,17 +202,17 @@ __END__
=head1 MODE =head1 MODE
Check number of active calls (total and by trunk) Check number of external calls (total and by trunk)
=over 8 =over 8
=item B<--warning> =item B<--warning>
Threshold warning for total number of calls. Threshold warning for total number of external calls.
=item B<--critical> =item B<--critical>
Threshold critical for total number of calls. Threshold critical for total number of external calls.
=item B<--warnontrunk> =item B<--warnontrunk>
@ -232,7 +232,7 @@ List of outgoing trunks' username.
=item B<--filter-name> =item B<--filter-name>
Filter on trunkname (regexp can be used). Filter on trunk's username (regexp can be used).
=back =back

View File

@ -37,7 +37,6 @@ package apps::voip::asterisk::snmp::plugin;
use strict; use strict;
use warnings; use warnings;
#use base qw(centreon::plugins::script_simple);
use base qw(centreon::plugins::script_snmp); use base qw(centreon::plugins::script_snmp);
sub new { sub new {