Announcement

Collapse
No announcement yet.

Problème avec 2 plugins

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • clho
    replied
    Ah ok ça y'est j'ai pigé le principe !


    Merci beaucoup pour ces excellentes explications!

    Leave a comment:


  • seb974
    replied
    Un exemple, pour ce check :

    check_disk_space:
    $USER1$/check_nt -H $HOSTADDRESS$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ -s "public"
    Tu dois entrer 3 arguments de cette façon :

    !ARG1!ARG2!ARG3
    Très important les points d'exclamations

    ---

    Leave a comment:


  • seb974
    replied
    check_nt (nagios-plugins 1.4.5) 1.45
    Copyright (c) 2000 Yves Rubin ([email protected])
    Copyright (c) 2003-2006 Nagios Plugin Development Team
    <[email protected]>

    This plugin collects data from the NSClient service running on a
    Windows NT/2000/XP/2003 server.


    Utilisation:check_nt -H host -v variable [-p port] [-w warning] [-c critical][-l params] [-d SHOWALL] [-t timeout]

    Options:
    -h, --help
    Print detailed help screen
    -V, --version
    Print version information
    Options:
    -H, --hostname=HOST
    Name of the host to check
    -p, --port=INTEGER
    Optional port number (default: 1248)
    -s <password>
    Password needed for the request
    -w, --warning=INTEGER
    Threshold which will result in a warning status
    -c, --critical=INTEGER
    Threshold which will result in a critical status
    -t, --timeout=INTEGER
    Seconds before connection attempt times out (default: 10)
    -h, --help
    Print this help screen
    -V, --version
    Print version information
    -v, --variable=STRING
    Variable to check

    Valid variables are:
    CLIENTVERSION = Get the NSClient version
    If -l <version> is specified, will return warning if versions differ.
    CPULOAD =
    Average CPU load on last x minutes.
    Request a -l parameter with the following syntax:
    -l <minutes range>,<warning threshold>,<critical threshold>.
    <minute range> should be less than 24*60.
    Thresholds are percentage and up to 10 requests can be done in one shot.
    ie: -l 60,90,95,120,90,95
    UPTIME =
    Get the uptime of the machine.
    No specific parameters. No warning or critical threshold
    USEDDISKSPACE =
    Size and percentage of disk use.
    Request a -l parameter containing the drive letter only.
    Warning and critical thresholds can be specified with -w and -c.
    MEMUSE =
    Memory use.
    Warning and critical thresholds can be specified with -w and -c.
    SERVICESTATE =
    , Check the state of one or several services.
    Request a -l parameters with the following syntax:
    -l <service1>,<service2>,<service3>,...
    You can specify -d SHOWALL in case you want to see working services
    in the returned string.
    PROCSTATE =
    Check if one or several process are running.
    Same syntax as SERVICESTATE.
    COUNTER =
    Check any performance counter of Windows NT/2000.
    Request a -l parameters with the following syntax:
    -l "\\<performance object>\\counter","<description>
    The <description> parameter is optional and is given to a printf
    output command which requires a float parameter.
    If <description> does not include "%%", it is used as a label.

    Some examples:
    "Paging file usage is %%.2f %%%%"
    "%%.f %%%% paging file used."

    Notes: - The NSClient service should be running on the server to get any information
    (http://nsclient.ready2run.nl).
    - Critical thresholds should be lower than warning thresholds
    - Default port 1248 is sometimes in use by other services. The error
    output when this happens contains "Cannot map xxxxx to protocol number".
    One fix for this is to change the port to something else on check_nt
    and on the client service it's connecting to.
    Pour avoir l'aide d'un plugin, va dans le dossier ou se trouve les plugins, ensuite utilise l'option -h :

    Exemple :
    ./check_nt -h
    ou sinon, va ici : http://wiki.oreon-project.org/index.php/PluginsocFR

    Voili voilou ^^

    Leave a comment:


  • clho
    replied
    Voila les commandes que j'ai passé

    check_cpu_load:
    $USER1$/check_nt -H $HOSTADDRESS$ -v CPULOAD -l $ARG1$ -s "public"

    check_disk_space:
    $USER1$/check_nt -H $HOSTADDRESS$ -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ -s "public"

    check_users:
    $USER1$/check_users -H $HOSTADDRESS$ -w 3 -c 5

    Je me rends compte en écrivant ce poste que j'ai pas mis d'argument (Voir services Espace Disque et Temps proc / Arguments). Mais alors une autre question. Que dois je mettre comme argument? Comment dois je les choisir et par rapport à quoi ?

    Merci pour tout

    Leave a comment:


  • seb974
    replied
    Tu as entré un mauvais argument pour le -l de la commande ^^

    Colles ici les commandes check_disk_space et check_load_cpu en allant dans Configuration / Commande et en éditant.

    Ensuite, donne les arguments que t'as entré pour ces commandes lors du choix de ce check. (Voir services Espace Disque et Temps proc / Arguments).

    Leave a comment:


  • clho
    started a topic Problème avec 2 plugins

    Problème avec 2 plugins

    Depuis mon dernier post, j'ai essayé de rajouter des plugins de supervision sur mon serveur.

    J'en suis maintenant à 4 services. Sur les 4, il y en a 2 qui fonctionnent mal.
    check_disk_space
    check_load_cpu


    Est ce que vous savez d'où cela peut il venir ?

    Merci beaucoup et pour tout.
Working...
X