mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-20 04:04:44 +02:00
update documentation
This commit is contained in:
parent
5e9529d66b
commit
c845968e75
@ -134,13 +134,13 @@ A description of the plugin is needed to generate the documentation :
|
|||||||
Mode creation
|
Mode creation
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Once **plugin.pm** is created and modes are declared in it, create modes in the **mode directory** :
|
Once **plugin.pm** is created and modes are declared in it, create modes in the **mode** directory:
|
||||||
::
|
::
|
||||||
|
|
||||||
cd mode
|
cd mode
|
||||||
touch mode1.pm
|
touch mode1.pm
|
||||||
|
|
||||||
Then, edit mode1.pm to add **license terms** by copying it from an other plugin. Don't forget to put your name at the end of it :
|
Then, edit mode1.pm to add **license terms** by copying it from an other mode. Don't forget to put your name at the end of it:
|
||||||
|
|
||||||
.. code-block:: perl
|
.. code-block:: perl
|
||||||
|
|
||||||
@ -254,7 +254,7 @@ This is an example to check a snmp value :
|
|||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
In this example, we check a snmp OID that we compare to wargning 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:
|
There are the methods which we use:
|
||||||
|
|
||||||
* get_leef : get a snmp value from an OID
|
* get_leef : get a snmp value from an OID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user