Merge branch 'master' of http://git.centreon.com/centreon-plugins
This commit is contained in:
commit
db34966501
|
@ -83,9 +83,9 @@ The plugin need a **new** constructor to instantiate the object:
|
|||
my ($class, %options) = @_;
|
||||
my $self = $class->SUPER::new(package => __PACKAGE__, %options);
|
||||
bless $self, $class;
|
||||
|
||||
|
||||
...
|
||||
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
|
@ -116,11 +116,11 @@ A description of the plugin is needed to generate the documentation:
|
|||
.. code-block:: perl
|
||||
|
||||
__END__
|
||||
|
||||
|
||||
=head1 PLUGIN DESCRIPTION
|
||||
|
||||
<Add a plugin description here>.
|
||||
|
||||
|
||||
=cut
|
||||
|
||||
|
||||
|
@ -199,7 +199,7 @@ Here is the description of arguments used in this example:
|
|||
* option3 : Boolean value
|
||||
|
||||
.. tip::
|
||||
You can have more informations about options format here : http://perldoc.perl.org/Getopt/Long.html
|
||||
You can have more informations about options format here: http://perldoc.perl.org/Getopt/Long.html
|
||||
|
||||
The mode need a **check_options** method to validate options:
|
||||
|
||||
|
@ -227,7 +227,7 @@ For example, Warning and Critical thresholds must be validate in **check_options
|
|||
In this example, help is printed if thresholds do not have a correct format.
|
||||
|
||||
Then comes the **run** method, where you perform measurement, check thresholds, display output and format performance datas.
|
||||
This is an example to check a snmp value:
|
||||
This is an example to check a SNMP value:
|
||||
|
||||
.. code-block:: perl
|
||||
|
||||
|
@ -254,7 +254,7 @@ This is an example to check a snmp value:
|
|||
$self->{output}->exit();
|
||||
}
|
||||
|
||||
In this example, we check a snmp OID that we compare to warning and critical thresholds.
|
||||
In this example, we check a SNMP OID that we compare to warning and critical thresholds.
|
||||
There are the methods which we use:
|
||||
|
||||
* get_leef : get a SNMP value from an OID
|
||||
|
@ -288,7 +288,7 @@ Commit and push
|
|||
|
||||
Before committing the plugin, you need to create an **enhancement ticket** on the centreon-plugins forge : http://forge.centreon.com/projects/centreon-plugins
|
||||
|
||||
Once plugin and modes are developed, you can commit (commit messages in english) and push your work :
|
||||
Once plugin and modes are developed, you can commit (commit messages in english) and push your work:
|
||||
::
|
||||
|
||||
git add path/to/plugin
|
||||
|
@ -299,7 +299,7 @@ Once plugin and modes are developed, you can commit (commit messages in english)
|
|||
Libraries reference
|
||||
*******************
|
||||
|
||||
This chapter describes centreon libraries which you can use in your development.
|
||||
This chapter describes Centreon libraries which you can use in your development.
|
||||
|
||||
------
|
||||
Output
|
||||
|
@ -391,7 +391,7 @@ This is an example of how to add performance data:
|
|||
.. code-block:: perl
|
||||
|
||||
$self->{output}->output_add(severity => 'OK',
|
||||
short_msg => 'Memory is ok');
|
||||
short_msg => 'Memory is ok');
|
||||
$self->{output}->perfdata_add(label => 'memory_used',
|
||||
value => 30000000,
|
||||
unit => 'B',
|
||||
|
@ -528,10 +528,10 @@ This example checks if performance data reached thresholds:
|
|||
my $exit = $self->{perfdata}->threshold_check(value => $prct_used, threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||
|
||||
$self->{output}->output_add(severity => $exit,
|
||||
short_msg => sprint("Used memory is %i%%", $prct_used));
|
||||
short_msg => sprint("Used memory is %i%%", $prct_used));
|
||||
$self->{output}->display();
|
||||
|
||||
Output displays :
|
||||
Output displays:
|
||||
::
|
||||
|
||||
WARNING - Used memory is 85% |
|
||||
|
@ -567,7 +567,7 @@ This example change bytes to human readable unit:
|
|||
|
||||
print $value.' '.$unit."\n";
|
||||
|
||||
Output displays :
|
||||
Output displays:
|
||||
::
|
||||
|
||||
100 KB
|
||||
|
@ -920,7 +920,7 @@ This is an example of how to use **change_seconds** method:
|
|||
|
||||
print 'Human readable time : '.$human_readable_time."\n";
|
||||
|
||||
Output displays :
|
||||
Output displays:
|
||||
::
|
||||
|
||||
Human readable time : 1h 2m 30s
|
||||
|
@ -1184,7 +1184,7 @@ Then, you can read the result in '/var/lib/centreon/centplugins/my_cache_file',
|
|||
|
||||
|
||||
----
|
||||
Http
|
||||
HTTP
|
||||
----
|
||||
|
||||
This library provides a set of methodss to use HTTP protocol.
|
||||
|
@ -1224,7 +1224,7 @@ connect
|
|||
Description
|
||||
^^^^^^^^^^^
|
||||
|
||||
Test a connection to an http url.
|
||||
Test a connection to an HTTP url.
|
||||
Return content of the webpage.
|
||||
|
||||
Parameters
|
||||
|
@ -1251,7 +1251,7 @@ Output displays content of the webpage '\http://google.com/'.
|
|||
|
||||
|
||||
---
|
||||
Dbi
|
||||
DBI
|
||||
---
|
||||
|
||||
This library allows you to connect to databases.
|
||||
|
@ -1282,6 +1282,11 @@ Example
|
|||
^^^^^^^
|
||||
|
||||
This is an example of how to use **connect** method.
|
||||
The format of the connection string can have the following forms:
|
||||
::
|
||||
DriverName:database_name
|
||||
DriverName:database_name@hostname:port
|
||||
DriverName:database=database_name;host=hostname;port=port
|
||||
|
||||
In plugin.pm:
|
||||
|
||||
|
@ -1325,7 +1330,7 @@ This is an example of how to use **query** method:
|
|||
|
||||
$self->{sql}->query(query => q{SHOW /*!50000 global */ STATUS LIKE 'Slow_queries'});
|
||||
my ($name, $result) = $self->{sql}->fetchrow_array();
|
||||
|
||||
|
||||
print 'Name : '.$name."\n";
|
||||
print 'Value : '.$value."\n";
|
||||
|
||||
|
@ -1456,13 +1461,13 @@ First, create the plugin directory and the plugin file:
|
|||
|
||||
.. tip::
|
||||
PfSense is a firewall application and we check it using SNMP protocol
|
||||
|
||||
|
||||
Then, edit **plugin.pm** and add the following lines:
|
||||
|
||||
.. code-block:: perl
|
||||
|
||||
################################################################################
|
||||
# Copyright 2005-2014 MERETHIS
|
||||
# Copyright 2005-2015 MERETHIS
|
||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||
# GPL Licence 2.0.
|
||||
#
|
||||
|
@ -1496,9 +1501,9 @@ Then, edit **plugin.pm** and add the following lines:
|
|||
#
|
||||
####################################################################################
|
||||
|
||||
# Path to the plugin
|
||||
# Path to the plugin
|
||||
package apps::pfsense::snmp::plugin;
|
||||
|
||||
|
||||
# Needed libraries
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -1541,11 +1546,11 @@ Add a description to the plugin:
|
|||
.. code-block:: perl
|
||||
|
||||
__END__
|
||||
|
||||
|
||||
=head1 PLUGIN DESCRIPTION
|
||||
|
||||
|
||||
Check pfSense in SNMP.
|
||||
|
||||
|
||||
=cut
|
||||
|
||||
.. tip::
|
||||
|
@ -1556,7 +1561,7 @@ Add a description to the plugin:
|
|||
Mode file
|
||||
---------
|
||||
|
||||
Then, create the mode directory and the mode file :
|
||||
Then, create the mode directory and the mode file:
|
||||
::
|
||||
|
||||
$ mkdir apps/pfsense/snmp/mode
|
||||
|
@ -1567,7 +1572,7 @@ Edit **memorydroppedpackets.pm** and add the following lines:
|
|||
.. code-block:: perl
|
||||
|
||||
################################################################################
|
||||
# Copyright 2005-2014 MERETHIS
|
||||
# Copyright 2005-2015 MERETHIS
|
||||
# Centreon is developped by : Julien Mathis and Romain Le Merlus under
|
||||
# GPL Licence 2.0.
|
||||
#
|
||||
|
@ -1677,16 +1682,16 @@ Add **run** method to execute mode:
|
|||
my ($self, %options) = @_;
|
||||
# $options{snmp} = snmp object
|
||||
|
||||
# Get snmp options
|
||||
# Get SNMP options
|
||||
$self->{snmp} = $options{snmp};
|
||||
$self->{hostname} = $self->{snmp}->get_hostname();
|
||||
$self->{snmp_port} = $self->{snmp}->get_port();
|
||||
|
||||
# Snmp oid to request
|
||||
# SNMP oid to request
|
||||
my $oid_pfsenseMemDropPackets = '.1.3.6.1.4.1.12325.1.200.1.2.6.0';
|
||||
my ($result, $value);
|
||||
|
||||
# Get snmp value for oid previsouly defined
|
||||
# Get SNMP value for oid previsouly defined
|
||||
$result = $self->{snmp}->get_leef(oids => [ $oid_pfsenseMemDropPackets ], nothing_quit => 1);
|
||||
# $result is a hash table where keys are oids
|
||||
$value = $result->{$oid_pfsenseMemDropPackets};
|
||||
|
@ -1756,23 +1761,23 @@ Add a description of the mode options:
|
|||
.. code-block:: perl
|
||||
|
||||
__END__
|
||||
|
||||
|
||||
=head1 MODE
|
||||
|
||||
|
||||
Check number of packets per second dropped due to memory limitations.
|
||||
|
||||
|
||||
=over 8
|
||||
|
||||
|
||||
=item B<--warning>
|
||||
|
||||
|
||||
Threshold warning for dropped packets in packets per second.
|
||||
|
||||
|
||||
=item B<--critical>
|
||||
|
||||
|
||||
Threshold critical for dropped packets in packets per second.
|
||||
|
||||
|
||||
=back
|
||||
|
||||
|
||||
=cut
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ Description
|
|||
***********
|
||||
|
||||
"centreon-plugins" is a free and open source project to monitor systems.
|
||||
The project can be used with Centreon, Icinga and all monitoring softwares compatible nagios plugins.
|
||||
The project can be used with Centreon, Icinga and all monitoring softwares compatible Nagios plugins.
|
||||
|
||||
The lastest version is available on following git repository: http://git.centreon.com/centreon-plugins.git
|
||||
|
||||
|
@ -31,8 +31,8 @@ You can install other packages to use more plugins:
|
|||
|
||||
# aptitude install libxml-libxml-perl libjson-perl libwww-perl libxml-xpath-perl libnet-telnet-perl libnet-ntp-perl libnet-dns-perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl
|
||||
|
||||
To use 'memcached' functionnality, you need to install the following CPAN module (no debian package): http://search.cpan.org/~wolfsage/Memcached-libmemcached-1.001702/libmemcached.pm
|
||||
|
||||
To use 'memcached' functionality, you need to install the following CPAN module (no debian package): http://search.cpan.org/~wolfsage/Memcached-libmemcached-1.001702/libmemcached.pm
|
||||
|
||||
-------------
|
||||
Centos/Rhel 6
|
||||
-------------
|
||||
|
@ -53,7 +53,7 @@ You can install other packages to use more plugins:
|
|||
|
||||
# yum install perl-XML-LibXML perl-JSON perl-libwww-perl perl-XML-XPath perl-Net-Telnet perl-Net-DNS perl-DBI perl-DBD-MySQL perl-DBD-Pg
|
||||
|
||||
To use 'memcached' functionnality, you need to install the following CPAN module (package available in 'rpmforge'): http://search.cpan.org/~wolfsage/Memcached-libmemcached-1.001702/libmemcached.pm
|
||||
To use 'memcached' functionality, you need to install the following CPAN module (package available in 'rpmforge'): http://search.cpan.org/~wolfsage/Memcached-libmemcached-1.001702/libmemcached.pm
|
||||
|
||||
***********
|
||||
Basic Usage
|
||||
|
@ -122,7 +122,7 @@ I can set threshold with options ``--warning`` and ``--critical``:
|
|||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=load --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --warning=1,2,3 --critical=2,3,4
|
||||
OK: Load average: 0.00, 0.00, 0.00 | 'load1'=0.00;0:1;0:2;0; 'load5'=0.00;0:2;0:3;0; 'load15'=0.00;0:3;0:4;0;
|
||||
|
||||
|
||||
***
|
||||
FAQ
|
||||
***
|
||||
|
@ -135,14 +135,14 @@ The option ``--list-plugin`` can be used to get the list of plugins and a short
|
|||
|
||||
Headers of the table mean:
|
||||
|
||||
* Transport: The check has internal options for the transport
|
||||
* Protocol: what is used to get the monitoring datas
|
||||
* Experimental: The check is still in development
|
||||
* Transport: The check has internal options for the transport.
|
||||
* Protocol: what is used to get the monitoring datas.
|
||||
* Experimental: The check is still in development.
|
||||
|
||||
+-------------+--------------------+----------------------------+--------------------------------------------+--------------+-------------------------------------------------------------+
|
||||
| | | Transport | Protocol | | |
|
||||
| Category | Check +-------+----------+---------+--------+--------+-------+-------+----------+ Experimental | Comment |
|
||||
| | | ssh | telnet | wsman | snmp | http | wmi | jmx | custom | | |
|
||||
| | | SSH | TELNET | WSMAN | SNMP | HTTP | WMI | JMX | custom | | |
|
||||
+=============+====================+=======+==========+=========+========+========+=======+=======+==========+==============+=============================================================+
|
||||
| | Active Directory | | | | | | | | * | | Use 'dcdiag' command. Must be installed on Windows. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+-------------------------------------------------------------+
|
||||
|
@ -223,7 +223,7 @@ Headers of the table mean:
|
|||
| | UPS Standard | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+-------------------------------------------------------------+
|
||||
| | UPS Powerware | | | | * | | | | | | |
|
||||
+-------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+-------------------------------------------------------------+
|
||||
+-------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+-------------------------------------------------------------+
|
||||
| | Alcatel Omniswitch | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+-------------------------------------------------------------+
|
||||
| | Arkoon | | | | * | | | | | | |
|
||||
|
@ -317,12 +317,12 @@ Headers of the table mean:
|
|||
How can i remove perfdatas ?
|
||||
----------------------------
|
||||
|
||||
For example, i check tcp connections from a linux in SNMP with following command:
|
||||
For example, i check TCP connections from a linux in SNMP with following command:
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=tcpcon --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public
|
||||
OK: Total connections: 1 | 'total'=1;;;0; 'con_closed'=0;;;0; 'con_closeWait'=0;;;0; ' con_synSent'=0;;;0; 'con_established'=1;;;0; 'con_timeWait'=0;;;0; 'con_lastAck'=0;;;0 ; 'con_listen'=5;;;0; 'con_synReceived'=0;;;0; 'con_finWait1'=0;;;0; 'con_finWait2'=0; ;;0; 'con_closing'=0;;;0;
|
||||
|
||||
|
||||
There are too many perfdatas and i want to keep 'total' perfdata only. I use the option ``--filter-perfdata='total'``:
|
||||
::
|
||||
|
||||
|
@ -339,7 +339,7 @@ I can use regexp in ``--filter-perfdata`` option. So, i can exclude perfdata beg
|
|||
How can i set threshold: critical if value < X ?
|
||||
------------------------------------------------
|
||||
|
||||
"centreon-plugins" can manage nagios threshold ranges: https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
|
||||
"centreon-plugins" can manage Nagios threshold ranges: https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
|
||||
|
||||
For example, i want to check that 'crond' is running (if there is less than 1 process, critical). I have two ways:
|
||||
::
|
||||
|
@ -365,8 +365,8 @@ How to use memcached server for retention datas ?
|
|||
|
||||
Some plugins need to store datas. Two ways to store it:
|
||||
|
||||
* File on a disk (by default)
|
||||
* Memcached server
|
||||
* File on a disk (by default).
|
||||
* Memcached server.
|
||||
|
||||
To use 'memcached', you must have a memcached server and the CPAN 'Memcached::libmemcached' module installed.
|
||||
You can set the memcached server with the option ``--memcached``:
|
||||
|
@ -437,8 +437,8 @@ I get the SNMP error: 'UNKNOWN:.*Timeout'
|
|||
|
||||
The following error means:
|
||||
|
||||
* Don't have network access to the target SNMP Server (a firewall can block UDP 161)
|
||||
* Wrong SNMP community name or SNMP version set
|
||||
* Don't have network access to the target SNMP Server (a firewall can block UDP 161).
|
||||
* Wrong SNMP community name or SNMP version set.
|
||||
|
||||
I get the SNMP error: 'UNKNOWN:.*Cant get a single value'
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -446,22 +446,22 @@ I get the SNMP error: 'UNKNOWN:.*Cant get a single value'
|
|||
The following error means: SNMP access is working but you can't retrieve SNMP values.
|
||||
Very possible reasons:
|
||||
|
||||
* SNMP value is not set yet (can be happened when a snmp server is just started)
|
||||
* SNMP value is not implemented by the constructor
|
||||
* SNMP value is set on a specific Firmware or OS
|
||||
* SNMP value is not set yet (can be happened when a SNMP server is just started).
|
||||
* SNMP value is not implemented by the constructor.
|
||||
* SNMP value is set on a specific firmware or OS.
|
||||
|
||||
Seems that process check is not working well for some arguments filter
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
In SNMP, there is a limit in argument length of 128 characters.
|
||||
So, if you try to filter with an argument after 128 characters, it won't work. It can happen with java arguments.
|
||||
In SNMP, there is a limit in argument length of 128 characters.
|
||||
So, if you try to filter with an argument after 128 characters, it won't work. It can happen with Java arguments.
|
||||
To solve the problem, you should prefer a NRPE check.
|
||||
|
||||
Can't access in SNMP v3
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
First, you need to validate SNMP v3 connection with snmpwalk. When it's working, you set SNMP v3 options in command line.
|
||||
The mapping between 'snmpwalk' options and centreon plugin options:
|
||||
The mapping between 'snmpwalk' options and "centreon-plugins" options:
|
||||
|
||||
* -a => ``--authprotocol``
|
||||
* -A => ``--authpassphrase``
|
||||
|
@ -507,13 +507,13 @@ I get the error: "UNKNOWN: Cannot load module 'xxx'."
|
|||
|
||||
The problem can be:
|
||||
|
||||
* A prerequisite cpan module is missing. You need to install it
|
||||
* The cpan module cannot be loaded because of its path. Perl modules must be installed on some specific paths
|
||||
* A prerequisite CPAN module is missing. You need to install it.
|
||||
* The CPAN module cannot be loaded because of its path. Perl modules must be installed on some specific paths.
|
||||
|
||||
I can't see help messages
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
"centreon-plugins" files must unix format (no windows carriage returns). You can change it with the following command:
|
||||
"centreon-plugins" files must Unix format (no Windows carriage returns). You can change it with the following command:
|
||||
::
|
||||
|
||||
$ find . -name "*.p[ml]" -type f -exec dos2unix \{\} \;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,10 +1,10 @@
|
|||
#################
|
||||
Guide développeur
|
||||
#################
|
||||
####################
|
||||
Guide de développeur
|
||||
####################
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
:glob:
|
||||
|
||||
guide
|
||||
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ Bienvenue dans la documentation Centreon Plugins!
|
|||
=================================================
|
||||
|
||||
Centreon Plugins est un ensemble de bibliothèques et plugins de supervision
|
||||
écrits en Perl. Ceci est licencié sour les termes de `GNU General Public
|
||||
License Version 2 <https://www.gnu.org/licenses/gpl-2.0.html>`_ tel que
|
||||
publié par la "Fondation pour le logiciel libre".
|
||||
écrits en Perl. Cet ensemble est licencié sous les termes de `GNU General Public
|
||||
License Version 2 <https://www.gnu.org/licenses/gpl-2.0.html>` tel que
|
||||
publié par la "Free Software Fondation".
|
||||
|
||||
Sommaire :
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
Description
|
||||
***********
|
||||
|
||||
"centreon-plugins" est un projet gratuit et open source de supervision des sytèmes.
|
||||
Ce projet peut être utilisé avec Centreon, Icinga et tout logiciel de supervision compatible avec les plugins nagios.
|
||||
"centreon-plugins" est un projet gratuit et open source de supervision des systèmes.
|
||||
Ce projet peut être utilisé avec Centreon, Icinga et tout autre logiciel de supervision compatible avec les plugins Nagios.
|
||||
|
||||
La dernière version est disponible sur le dépôt git suivant: http://git.centreon.com/centreon-plugins.git
|
||||
|
||||
|
@ -15,40 +15,40 @@ Installation
|
|||
Debian Wheezy
|
||||
-------------
|
||||
|
||||
Télécharger la dernière version de "centreon-plugins" depuis le dépôt:
|
||||
Télécharger la dernière version de "centreon-plugins" depuis le dépôt :
|
||||
::
|
||||
|
||||
# aptitude install git
|
||||
# git clone http://git.centreon.com/centreon-plugins.git
|
||||
|
||||
Pour superviser les systèmes SNMP, vous devez installer les paquets suivants:
|
||||
Pour superviser les systèmes SNMP, vous devez installer les paquets suivants :
|
||||
::
|
||||
|
||||
# aptitude install perl libsnmp-perl
|
||||
|
||||
Vous pouvez installer d'autres paquets pour utiliser plus de plugins:
|
||||
Vous pouvez installer d'autres paquets pour utiliser plus de plugins :
|
||||
::
|
||||
|
||||
# aptitude install libxml-libxml-perl libjson-perl libwww-perl libxml-xpath-perl libnet-telnet-perl libnet-ntp-perl libnet-dns-perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl
|
||||
|
||||
Pour utiliser la fonctionnalité 'memcached', vous devez installer le module CPAN suivant (pas de paquet debian): http://search.cpan.org/~wolfsage/Memcached-libmemcached-1.001702/libmemcached.pm
|
||||
|
||||
|
||||
-------------
|
||||
Centos/Rhel 6
|
||||
-------------
|
||||
|
||||
Télécharger la dernière version de "centreon-plugins" depuis le dépôt:
|
||||
Télécharger la dernière version de "centreon-plugins" depuis le dépôt :
|
||||
::
|
||||
|
||||
# yum install git
|
||||
# git clone http://git.centreon.com/centreon-plugins.git
|
||||
|
||||
Pour superviser les systèmes SNMP, vous devez installer les paquets suivants:
|
||||
Pour superviser les systèmes SNMP, vous devez installer les paquets suivants :
|
||||
::
|
||||
|
||||
# yum install perl net-snmp-perl
|
||||
|
||||
Vous pouvez installer d'autres paquets pour utiliser plus de plugins:
|
||||
Vous pouvez installer d'autres paquets pour utiliser plus de plugins :
|
||||
::
|
||||
|
||||
# yum install perl-XML-LibXML perl-JSON perl-libwww-perl perl-XML-XPath perl-Net-Telnet perl-Net-DNS perl-DBI perl-DBD-MySQL perl-DBD-Pg
|
||||
|
@ -60,14 +60,14 @@ Utilisation basique
|
|||
*******************
|
||||
|
||||
Nous allons utiliser un exemple basique pour montrer comment superviser un système. J'ai terminé partie installation et je veux superviser un système Linux par SNMP.
|
||||
Tout d'abord, j'ai besoin de trouver le plugin à utiliser dans la liste:
|
||||
Tout d'abord, j'ai besoin de trouver le plugin à utiliser dans la liste :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --list-plugin | grep -i linux | grep 'PLUGIN'
|
||||
PLUGIN: os::linux::local::plugin
|
||||
PLUGIN: os::linux::snmp::plugin
|
||||
|
||||
Il semblerait que 'os::linux::snmp::plugin' est le bon. donc je vérifie avec l'option ``--help`` pour être sûr:
|
||||
Il semblerait que 'os::linux::snmp::plugin' est le bon donc je vérifie avec l'option ``--help`` pour être sûr :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --help
|
||||
|
@ -75,7 +75,7 @@ Il semblerait que 'os::linux::snmp::plugin' est le bon. donc je vérifie avec l'
|
|||
Plugin Description:
|
||||
Check Linux operating systems in SNMP.
|
||||
|
||||
C'est exactement ce dont j'ai besoin. Maintenant je vais utiliser l'option ``--list-mode`` pour connaître ce que je peux faire avec celui-ci:
|
||||
C'est exactement ce dont j'ai besoin. Maintenant je vais utiliser l'option ``--list-mode`` pour connaître ce que je peux faire avec celui-ci :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --list-mode
|
||||
|
@ -100,18 +100,18 @@ C'est exactement ce dont j'ai besoin. Maintenant je vais utiliser l'option ``--l
|
|||
tcpcon
|
||||
storage
|
||||
|
||||
J'aimerai tester le mode 'load':
|
||||
J'aimerais tester le mode 'load':
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=load
|
||||
UNKNOWN: Missing parameter --hostname.
|
||||
|
||||
Il ne fonctionne pas car certaines options sont manquantes. Je peux avoir une description du mode et ses options avec l'option ``--help``:
|
||||
Il ne fonctionne pas car certaines options sont manquantes. Je peux avoir une description du mode et ses options avec l'option ``--help`` :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=load --help
|
||||
|
||||
Je dois éventuellement configurer certaines options SNMP:
|
||||
Je dois éventuellement configurer certaines options SNMP :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=load --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public
|
||||
|
@ -133,203 +133,203 @@ Qu'est ce que je peux superviser ?
|
|||
|
||||
L'option ``--list-plugin`` peut être utilisée pour obtenir la liste des plugins, ainsi qu'une courte description.
|
||||
|
||||
Les en-têtes du tableau signifient:
|
||||
Les en-têtes du tableau signifient :
|
||||
|
||||
* Transport: Le point de contrôle a des options internes pour le transport
|
||||
* Protocole: qu'est-ce qui est utilisé pour obtenir les inforations de supervision?
|
||||
* Experimental: Le point de contrôle est en cours de développement
|
||||
* Transport : Le point de contrôle a des options internes pour le transport.
|
||||
* Protocole : qu'est-ce qui est utilisé pour obtenir les informations de supervision ?
|
||||
* Expérimental : Le point de contrôle est en cours de développement.
|
||||
|
||||
+----------------+--------------------+----------------------------+--------------------------------------------+--------------+--------------------------------------------------------------------------+
|
||||
| | | Transport | Protocole | | |
|
||||
| Categorie | Point de contrôle +-------+----------+---------+--------+--------+-------+-------+----------+ Experimental | Commentaires |
|
||||
| | | ssh | telnet | wsman | snmp | http | wmi | jmx | custom | | |
|
||||
+================+====================+=======+==========+=========+========+========+=======+=======+==========+==============+==========================================================================+
|
||||
| | Active Directory | | | | | | | | * | | Utilise la commande 'dcdiag'. Doit être installée sur Windows. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Apache | | | | | * | | | | | Requiert le module Apache 'mod_status'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Apc | | | | | * | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Apcupsd | * | | | | | | | * | | Utilise les commandes 'apcupsd'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Bluemind | | | | | * | | | | | Utilise l'API 'influxdb'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Exchange | | | | | | | | * | | Utilise un script powershell. Doit être installé sur Windows. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Hddtemp | | | | | | | | * | | Ouvre une connexion TCP personnalisée |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | | | | | | | * | | | | Doit être installé sur Windows. |
|
||||
| | IIS +-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| Application | | | | * | | | * | | | * | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Lmsensors | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Msmq | | | | | | | | * | * | Doit être installé sur Windows. Pas encore développé. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Nginx | | | | | * | | | | | Requiert le module 'HttpStubStatusModule'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Pacemaker | * | | | | | | | * | | Utilise la commande 'crm_mon'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Pfsense | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Selenium | | | | | | | | * | | Se connecte à un serveur Selenium pour jouer un scenario. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Tomcat | | | | | * | | | | | Requiert tomcat webmanager. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Varnish | * | | | | | | | * | | Utilise les commandes varnish. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | VMWare | | | | | | | | * | | Requiert le connecteur 'centreon_esxd' de Merethis. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Pfsense | | | | * | | | | | | |
|
||||
+----------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Informix | | | | | | | | * | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | MS SQL | | | | | | | | * | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| Base de | MySQL | | | | | | | | * | | |
|
||||
| données +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Oracle | | | | | | | | * | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Postgres | | | | | | | | * | | |
|
||||
+----------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | ATS Apc | | | | * | | | | | * | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | PDU Apc | | | | * | | | | | * | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | PDU Eaton | | | | * | | | | | * | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Standard Printers | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Sensorip | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Sensormetrix Em01 | | | | | * | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Cisco UCS | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| Matériel | Dell Openmanage | | | | * | | | | | | Requiert "l'agent openmanage" sur le système d'exploitation. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | HP Proliant | | | | * | | | | | | Requiert "l'agent HP Insight" sur le système d'exploitation. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | HP Blade Chassis | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM HMC | * | | | | | | | * | * | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM IMM | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Sun hardware | * | * | | * | | | | * | | Peut superviser plusieurs types de matériel Sun. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | UPS Mge | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | UPS Standard | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | UPS Powerware | | | | * | | | | | | |
|
||||
+----------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Alcatel Omniswitch | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Arkoon | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Aruba | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Bluecoat | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Brocade | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Checkpoint | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Cisco | | | | * | | | | | | Plusieurs modèles cisco (2800, Nexus,...) |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Citrix Netscaler | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Dell Powerconnect | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| Réseau | F5 Big-Ip | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Fortinet Fortigate | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Fritzbox | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | HP Procurve | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Juniper | | | | * | | | | | | Peut superviser: 'SSG', 'SA', 'SRX' et 'MAG'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Palo Alto | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Radware Alteon | | | | * | | | | | * | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Ruggedcom | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Securactive | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Stonesoft | | | | * | | | | | | |
|
||||
+----------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | | * | | | | | | | * | | Utilise les commandes AIX. |
|
||||
| | AIX +-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | | | | | | | * | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Freebsd | | | | * | | | | | | Utilise l'agent 'bsnmpd'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| Système | | * | | | | | | | * | | Utilise les commandes Linux. |
|
||||
| d'exploitation | Linux +-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Solaris | * | | | | | | | * | | Utilise les commandes Solaris. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | | | | | * | | | | | | |
|
||||
| | Windows +-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | | | | * | | | * | | | * | |
|
||||
+----------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Dell MD3000 | | | | | | | | * | | Requiert la commande 'SMcli'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Dell TL2000 | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | EMC Clariion | | | | | | | | * | | Requiert la commande 'navisphere'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | EMC DataDomain | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | EMC Recoverypoint | * | | | | | | | * | | Utilise les commandes de l'appliance. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | HP Lefthand | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | HP MSA2000 | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| Stockage | HP p2000 | | | | | | * | | | | Utilise l'API XML. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM DS3000 | | | | | | | | * | | Utilise la commande 'SMcli'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM DS4000 | | | | | | | | * | | Utilise la commande 'SMcli'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM DS5000 | | | | | | | | * | | Utilise la commande 'SMcli'. |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM TS3100 | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | IBM TS3200 | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Netapp | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Qnap | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Synology | | | | * | | | | | | |
|
||||
| +--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
| | Violin 3000 | | | | * | | | | | | |
|
||||
+----------------+--------------------+-------+----------+---------+--------+--------+-------+-------+----------+--------------+--------------------------------------------------------------------------+
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | Transport | Protocole | | | | | | | | |
|
||||
| Categorie | Point de contrôle +-------+----------+---------+--------+--------+-------+-------+----------+ Experimental | Commentaires | | | | | | | | | |
|
||||
| | | SSH | TELNET | WSMAN | SNMP | HTTP | WMI | JMX | custom | | |
|
||||
+=============+=============================================================================================================+===================================+============================+========+=======+=======+======+======+=========+========+================================================================+
|
||||
| | Active Directory | | | | | | | | * | | Utilise la commande 'dcdiag'. Doit être installée sur Windows. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Apache | | | | | * | | | | | Requiert le module Apache 'mod_status'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Apc | | | | | * | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Apcupsd | * | | | | | | | * | | Utilise les commandes 'apcupsd'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Bluemind | | | | | * | | | | | Utilise l'API 'influxdb'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Exchange | | | | | | | | * | | Utilise un script powershell. Doit être installé sur Windows. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Hddtemp | | | | | | | | * | | Ouvre une connexion TCP personnalisée. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | | | | | | * | | | | Doit être installé sur Windows. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| Application | | | | * | | | * | | | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Lmsensors | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Msmq | | | | | | | | * | * | Doit être installé sur Windows. Pas encore développé. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Nginx | | | | | * | | | | | Requiert le module 'HttpStubStatusModule'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Pacemaker | * | | | | | | | * | | Utilise la commande 'crm_mon'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Pfsense | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Selenium | | | | | | | | * | | Se connecte à un serveur Selenium pour jouer un scenario. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Tomcat | | | | | * | | | | | Requiert tomcat webmanager. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Varnish | * | | | | | | | * | | Utilise les commandes varnish. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | VMWare | | | | | | | | * | | Requiert le connecteur 'centreon_esxd' de Merethis. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Pfsense | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Informix | | | | | | | | * | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | MS SQL | | | | | | | | * | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| Base de | MySQL | | | | | | | | * | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Oracle | | | | | | | | * | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Postgres | | | | | | | | * | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | ATS Apc | | | | * | | | | | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | PDU Apc | | | | * | | | | | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | PDU Eaton | | | | * | | | | | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Standard Printers | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Sensorip | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Sensormetrix Em01 | | | | | * | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Cisco UCS | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| Matériel | Dell Openmanage | | | | * | | | | | | Requiert "l'agent openmanage" sur le système d'exploitation. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | HP Proliant | | | | * | | | | | | Requiert "l'agent HP Insight" sur le système d'exploitation. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | HP Blade Chassis | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM HMC | * | | | | | | | * | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM IMM | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Sun hardware | * | * | | * | | | | * | | Peut superviser plusieurs types de matériel Sun. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | UPS Mge | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | UPS Standard | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | UPS Powerware | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Alcatel Omniswitch | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Arkoon | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Aruba | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Bluecoat | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Brocade | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Checkpoint | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Cisco | | | | * | | | | | | Plusieurs modèles cisco (2800, Nexus,...). |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Citrix Netscaler | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Dell Powerconnect | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| Réseau | F5 Big-Ip | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Fortinet Fortigate | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Fritzbox | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | HP Procurve | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Juniper | | | | * | | | | | | Peut superviser: 'SSG', 'SA', 'SRX' et 'MAG'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Palo Alto | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Radware Alteon | | | | * | | | | | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Ruggedcom | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Securactive | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Stonesoft | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | * | | | | | | | * | | Utilise les commandes AIX. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | | | | | | * | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Freebsd | | | | * | | | | | | Utilise l'agent 'bsnmpd'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| Système | | * | | | | | | | * | | Utilise les commandes Linux. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Solaris | * | | | | | | | * | | Utilise les commandes Solaris. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | | | | * | | | * | | | * | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Dell MD3000 | | | | | | | | * | | Requiert la commande 'SMcli'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Dell TL2000 | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | EMC Clariion | | | | | | | | * | | Requiert la commande 'navisphere'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | EMC DataDomain | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | EMC Recoverypoint | * | | | | | | | * | | Utilise les commandes de l'appliance. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | HP Lefthand | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | HP MSA2000 | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| Stockage | HP p2000 | | | | | | * | | | | Utilise l'API XML. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM DS3000 | | | | | | | | * | | Utilise la commande 'SMcli'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM DS4000 | | | | | | | | * | | Utilise la commande 'SMcli'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM DS5000 | | | | | | | | * | | Utilise la commande 'SMcli'. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM TS3100 | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | IBM TS3200 | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Netapp | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Qnap | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Synology | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
| | Violin 3000 | | | | * | | | | | | |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------+-----------------------------------+----------------------------+--------+-------+-------+------+------+---------+--------+----------------------------------------------------------------+
|
||||
|
||||
------------------------------------------------------
|
||||
Comment puis-je supprimer les données de performance ?
|
||||
------------------------------------------------------
|
||||
|
||||
Par exemple, je vérifie les connexions tcp d'un serveur linux par SNMP avec la commande suivante:
|
||||
Par exemple, je vérifie les connexions TCP d'un serveur Linux par SNMP avec la commande suivante :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=tcpcon --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public
|
||||
OK: Total connections: 1 | 'total'=1;;;0; 'con_closed'=0;;;0; 'con_closeWait'=0;;;0; ' con_synSent'=0;;;0; 'con_established'=1;;;0; 'con_timeWait'=0;;;0; 'con_lastAck'=0;;;0 ; 'con_listen'=5;;;0; 'con_synReceived'=0;;;0; 'con_finWait1'=0;;;0; 'con_finWait2'=0; ;;0; 'con_closing'=0;;;0;
|
||||
|
||||
Il y a trop de données de performances et je veux seulement garder la donnée de performance 'total'. J'utilise l'option ``--filter-perfdata='total'``:
|
||||
|
||||
Il y a trop de données de performances et je veux seulement garder la donnée de performance 'total'. J'utilise l'option ``--filter-perfdata='total'`` :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=tcpcon --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --filter-perfdata='total'
|
||||
OK: Total connections: 1 | 'total'=1;;;0;
|
||||
|
||||
Je peux utiliser une expression régulière dans l'option ``--filter-perfdata``. Donc, je peux exclure les données de performance commençant par 'total':
|
||||
Je peux utiliser une expression régulière dans l'option ``--filter-perfdata``. Donc je peux exclure les données de performance commençant par 'total' :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=tcpcon --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --filter-perfdata='^(?!(total))'
|
||||
|
@ -339,13 +339,13 @@ Je peux utiliser une expression régulière dans l'option ``--filter-perfdata``.
|
|||
Comment puis-je ajuster un seuil: critique si valeur < X ?
|
||||
----------------------------------------------------------
|
||||
|
||||
"centreon-plugins" gère les seuils nagios: https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
|
||||
Par exemple, je veux vérifier que 'crond' fonctionne (s'il y a moins de 1 processus, critique). J'ai deux solutions:
|
||||
"centreon-plugins" gère les seuils Nagios : https://nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
|
||||
Par exemple, je veux vérifier que 'crond' fonctionne (s'il y a moins de 1 processus, critique). J'ai deux solutions :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=processcount --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --process-name=crond --critical=1:
|
||||
CRITICAL: Number of current processes running: 0 | 'nbproc'=0;;1:;0;
|
||||
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=processcount --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --process-name=crond --critical=@0:0
|
||||
CRITICAL: Number of current processes running: 0 | 'nbproc'=0;;@0:0;0;
|
||||
|
||||
|
@ -353,7 +353,7 @@ Par exemple, je veux vérifier que 'crond' fonctionne (s'il y a moins de 1 proce
|
|||
Comment puis-je vérifier la valeur d'un OID SNMP générique ?
|
||||
------------------------------------------------------------
|
||||
|
||||
Il y a un plugin SNMP générique pour vérifier cela. Voici un exemple pour obtenir l'OID SNMP 'SysUptime':
|
||||
Il y a un plugin SNMP générique pour vérifier cela. Voici un exemple pour obtenir l'OID SNMP 'SysUptime' :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=snmp_standard::plugin --mode=numeric-value --oid='.1.3.6.1.2.1.1.3.0' --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public
|
||||
|
@ -362,10 +362,10 @@ Il y a un plugin SNMP générique pour vérifier cela. Voici un exemple pour obt
|
|||
Comment utiliser un serveur memcached pour la rétention des données ?
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Quelques plugins ont besoin de stocked des données. Il y a deux solutions pour les stocker:
|
||||
Quelques plugins ont besoin de stocker des données. Il y a deux solutions pour cela :
|
||||
|
||||
* Un fichier sur le disque (par default)
|
||||
* Un serveur memcached
|
||||
* Un fichier sur le disque (par default).
|
||||
* Un serveur memcached.
|
||||
|
||||
Pour utiliser 'memcached', vous devez avoir un serveur memcached et le module CPAN 'Memcached::libmemcached' installé.
|
||||
Vous pouvez renseigner le serveur memcached avec l'option ``--memcached``:
|
||||
|
@ -386,7 +386,7 @@ Qu'est-ce que l'option ``--dyn-mode`` fait ?
|
|||
|
||||
Avec cette option, vous pouvez utiliser un mode avec un plugin. Cela est couramment utilisé pour les bases de données.
|
||||
Par exemple, j'ai une application qui stocke des informations de supervision dans une base de données. Le développeur peut utiliser un autre plugin pour créer le point de contrôle
|
||||
(pas besoin de faire les connexions SQL,... cela fait gagner du temps):
|
||||
(pas besoin de faire les connexions SQL,... cela fait gagner du temps) :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=database::mysql::plugin --dyn-mode=apps::centreon::mysql::mode::pollerdelay --host=10.30.3.75 --username='test' --password='testpw' --verbose
|
||||
|
@ -401,7 +401,7 @@ Par exemple, j'ai une application qui stocke des informations de supervision dan
|
|||
Comment puis-je vérifier la version du plugin ?
|
||||
-----------------------------------------------
|
||||
|
||||
Vous pouvez vérifier la version des plugins et des modes avec l'option ``--version``:
|
||||
Vous pouvez vérifier la version des plugins et des modes avec l'option ``--version`` :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --version
|
||||
|
@ -410,7 +410,7 @@ Vous pouvez vérifier la version des plugins et des modes avec l'option ``--vers
|
|||
Mode Version: 1.0
|
||||
|
||||
Vous pouvez également utiliser l'option ``--mode-version`` pour exécuter le mode seulement s'il est dans la bonne version.
|
||||
Par exemple, nous voullons exécuter le mode seulement si sa version >= 2.x:
|
||||
Par exemple, nous voulons exécuter le mode seulement si sa version >= 2.x :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=storage --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --verbose --mode-version='2.x'
|
||||
|
@ -428,40 +428,40 @@ J'ai l'erreur SNMP: 'UNKNOWN:.* (tooBig).*'
|
|||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
L'erreur suivante peut se produire avec certains équipements.
|
||||
Vous pouvez la résoudre si vous paramétrez les options suivantes:
|
||||
Vous pouvez la résoudre si vous paramétrez les options suivantes :
|
||||
|
||||
* ``--subsetleef=20`` ``--maxrepetitions=20``
|
||||
|
||||
J'ai l'erreur SNMP: 'UNKNOWN:.*Timeout'
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
L'erreur suivante signifie:
|
||||
L'erreur suivante signifie :
|
||||
|
||||
* Pas d'accès réseau vers le serveur SNMP cible (un pare-feu peut bloquer le port UDP 161)
|
||||
* La communauté ou la version SNMP paramétrées n'est pas correcte
|
||||
* Pas d'accès réseau vers le serveur SNMP cible (un pare-feu peut bloquer le port UDP 161).
|
||||
* La communauté ou la version SNMP paramétrées n'est pas correcte.
|
||||
|
||||
J'ai l'erreur SNMP: 'UNKNOWN:.*Cant get a single value'
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
L'erreur suivante signifie: l'accès SNMP fonctionne mais vous ne pouvez pas récupérer les valeurs SNMP.
|
||||
Plusieurs raisons possibles:
|
||||
Plusieurs raisons possibles :
|
||||
|
||||
* La valeur SNMP n'est pas encore renseignée (peut se produire lorsqu'un serveur snmp vient juste de démarrer)
|
||||
* La valeur SNMP n'est pas implémentée par le constructeur
|
||||
* La valeur SNMP est renseignée sur un Firmware ou OS spécifique
|
||||
* La valeur SNMP n'est pas encore renseignée (peut se produire lorsqu'un serveur SNMP vient juste de démarrer).
|
||||
* La valeur SNMP n'est pas implémentée par le constructeur.
|
||||
* La valeur SNMP est renseignée sur un firmware ou OS spécifique.
|
||||
|
||||
Il semblerait que le contrôle de processus ne fonctionne pas avec certains filtres sur les arguments
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Avec le SNMP, il y a une limite pour la longueur des arguments qui est fixée à 128 caractères.
|
||||
Donc, si vous essayez de filter avec un argument après 128 caractères, cela ne fonctionnera pas. Cela peut arriver avec les arguments java.
|
||||
Pour résoudre le problème, vous devez priviliégier le contrôle via NRPE.
|
||||
Donc, si vous essayez de filtrer avec un argument après 128 caractères, cela ne fonctionnera pas. Cela peut arriver avec les arguments Java.
|
||||
Pour résoudre le problème, vous devez privilégier le contrôle via NRPE.
|
||||
|
||||
Pas d'accès en SNMP v3
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Tout d'abord, vous devez valider la connexion SNMP v3 avec snmpwalk. Lorsque cela fonctionne, vous renseignez les options SNMP v3 en ligne de commande.
|
||||
L'association entre les options 'snmpwalk' et les options centreon plugin:
|
||||
L'association entre les options 'snmpwalk' et les options "centreon-plugins" :
|
||||
|
||||
* -a => ``--authprotocol``
|
||||
* -A => ``--authpassphrase``
|
||||
|
@ -479,7 +479,7 @@ Divers
|
|||
J'utilise une options mais il semblerait qu'elle ne fonctionne pas
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Avant d'ouvrir un ticket sur la forge, utilisez l'option ``--sanity-options``. Cela vérifie si vous avez mal orthographié une option:
|
||||
Avant d'ouvrir un ticket sur la forge, utilisez l'option ``--sanity-options``. Cela vérifie si vous avez mal orthographié une option :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=traffic --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --interface='.*' --name --regex --verbose --skip --skip-speed0 --sanity-options
|
||||
|
@ -488,13 +488,15 @@ Avant d'ouvrir un ticket sur la forge, utilisez l'option ``--sanity-options``. C
|
|||
J'ai l'erreur: "UNKNOWN: Need to specify '--custommode'."
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Certains plugins ont besoin de renseigner l'option ``--custommode``. Vous pouvez connaître la valeur à renseigner avec l'option ``--list-custommode``. Un exemple::
|
||||
Certains plugins ont besoin de renseigner l'option ``--custommode``. Vous pouvez connaître la valeur à renseigner avec l'option ``--list-custommode``.
|
||||
Un exemple :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=storage::ibm::DS3000::cli::plugin --list-custommode
|
||||
...
|
||||
Custom Modes Available:
|
||||
smcli
|
||||
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=storage::ibm::DS3000::cli::plugin --custommode=smcli --list-mode
|
||||
|
||||
J'ai l'erreur: "UNKNOWN: Cannot write statefile .*"
|
||||
|
@ -507,18 +509,18 @@ J'ai l'erreur: "UNKNOWN: Cannot load module 'xxx'."
|
|||
|
||||
Le problème peut être:
|
||||
|
||||
* Un module CPAN prérequis est manquant. Vous devez l'installer
|
||||
* Le module CPAN ne peut pas être chargé en raison de son chemin d'accès. Les modules Perl doivent être installés dans des chemins spécifiques
|
||||
* Un module CPAN prérequis est manquant. Vous devez l'installer.
|
||||
* Le module CPAN ne peut pas être chargé en raison de son chemin d'accès. Les modules Perl doivent être installés dans des chemins spécifiques.
|
||||
|
||||
Je ne peux pas vois les messages d'aide
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Les fichiers "centreon-plugins" doivent être sous format unix (pas de retour à la ligne windows). Vous pouvez les modifier avec la commande suivante:
|
||||
Les fichiers "centreon-plugins" doivent être sous format Unix (pas de retour à la ligne Windows). Vous pouvez les modifier avec la commande suivante :
|
||||
::
|
||||
|
||||
$ find . -name "*.p[ml]" -type f -exec dos2unix \{\} \;
|
||||
|
||||
.. Warning:: Exécutez cette commande dans le dossier "centreon-plugins".
|
||||
.. Warning:: Exécuter cette commande dans le dossier "centreon-plugins".
|
||||
|
||||
*********************
|
||||
Examples de commandes
|
||||
|
@ -531,7 +533,7 @@ Windows
|
|||
Contrôler tous les disques en SNMP
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Dégradé si l'espace utilisé > 80% et critique sur l'espace utilisé > 90%:
|
||||
Dégradé si l'espace utilisé > 80% et critique sur l'espace utilisé > 90% :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --hostname=xxx.xxx.xxx.xxx --snmp-version=2c --snmp-public=community --verbose --storage='.*' --name --regexp --display-transform-src='(..).*' --display-transform-dst='$1' --warning=80 --critical=90
|
||||
|
@ -539,14 +541,14 @@ Dégradé si l'espace utilisé > 80% et critique sur l'espace utilisé > 90%:
|
|||
Storage 'C:' Total: 126.66 GB Used: 35.97 GB (28.40%) Free: 90.69 GB (71.60%)
|
||||
Storage 'D:' Total: 126.66 GB Used: 35.97 GB (28.40%) Free: 90.69 GB (71.60%)
|
||||
|
||||
Dégradé si l'espace disponible < 5G et critique si l'espace disponible < 2G:
|
||||
Dégradé si l'espace disponible < 5G et critique si l'espace disponible < 2G :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --hostname=xxx.xxx.xxx.xxx --snmp-version=2c --snmp-public=community --verbose --storage='.*' --name --regexp --display-transform-src='(..).*' --display-transform-dst='$1' --warning=5497558138880 --critical=2199023255552 --units='B' --free
|
||||
OK: All storages are ok. | 'free_C:'=97372344320B;0:5497558138880;0:2199023255552;0;135996108800 'free_D:'=97372344320B;0:5497558138880;0:2199023255552;0;135996108800
|
||||
Storage 'C:' Total: 126.66 GB Used: 35.97 GB (28.40%) Free: 90.69 GB (71.60%)
|
||||
Storage 'D:' Total: 126.66 GB Used: 35.97 GB (28.40%) Free: 90.69 GB (71.60%)
|
||||
|
||||
|
||||
-----
|
||||
Linux
|
||||
-----
|
||||
|
@ -554,7 +556,7 @@ Linux
|
|||
Contrôler le trafic de toutes les interfaces en SNMP
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Dégradé si le trafic entrant/sortant utilisé > 80% et critique si le traffic entrant/sortant utilisé > 90%. L'exemple évite également les erreurs sur les interfaces déconnectées (option ``--skip``):
|
||||
Dégradé si le trafic entrant/sortant utilisé > 80% et critique si le trafic entrant/sortant utilisé > 90%. L'exemple évite également les erreurs sur les interfaces déconnectées (option ``--skip``) :
|
||||
::
|
||||
|
||||
$ perl centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=traffic --hostname=127.0.0.1 --snmp-version=2c --snmp-community=public --verbose --interface='.*' --name --regexp --skip --warning-in=80 --critical-in=90 --warning-out=80 --critical-out=90
|
||||
|
|
Loading…
Reference in New Issue