Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
612 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Besoin de conseil avec Nagios

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Besoin de conseil avec Nagios

n°1167417
Lanstack
Posté le 27-09-2009 à 20:14:45  profilanswer
 

Bonjour,
 
J'essaye de comprendre le fonctionnement de nagios. Je m'y perds un peu
J'ai suivi ce tuto
 
Voici mes premières erreurs :
 
srvnagios:/usr/local/nagios/libexec# ./check_nt -H 192.168.50.61 -v CLIENTVERSION -p 12489
Connexion refusée
Impossible d'obtenir l'information depuis le serveur
 
si je fais :
srvnagios:/usr/local/nagios/libexec# ./check_nt -H 192.168.50.61 -p 12489 -s None -V CLIENTVERSION
check_nt v1991 (nagios-plugins 1.4.13)
 
Quel est la différence entre les deux commandes?
 
Dans l'interface, j'ai ce message "CRITICAL - Socket timeout after 10 seconds"
 
Donc de l'aide serait bienvenue


---------------
« Mais j'vous jure, y'a dix minutes, ça marchait très bien... »  
mood
Publicité
Posté le 27-09-2009 à 20:14:45  profilanswer
 

n°1167418
anapivirtu​a
Boh.
Posté le 27-09-2009 à 20:29:09  profilanswer
 

L'argument -v est pour donner une variable à checker, le -V pour la version.
L'argument -s sert à donner un password.

 

Pour ton erreur de timeout, plusieurs raisons, soit tes check sont mal faits, soit ton client ne répond pas comme il devrait mais vu que tu obtiens une réponse lors de ta deuxième commande, je miserais plutôt sur le premier point, donc revois ta conf.


Message édité par anapivirtua le 27-09-2009 à 20:34:54

---------------
Si vis pacem, para bellum.
n°1167423
Lanstack
Posté le 27-09-2009 à 20:41:38  profilanswer
 

d'accord
Cette conf est-elle bonne?
 
###############################################################################
# WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE
#
# Last Modified: 06-13-2007
#
# NOTES: This config file assumes that you are using the sample configuration
#     files that get installed with the Nagios quickstart guide.
#
###############################################################################
 
 
 
 
###############################################################################
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
###############################################################################
 
# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation
 
define host{
    use        windows-server    ; Inherit default values from a template
    host_name    fixe    ; The name we're giving to this host
    alias        My Windows Server    ; A longer name associated with the host
    address        192.168.50.2    ; IP address of the host
    }
 
 
 
 
###############################################################################
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
###############################################################################
 
 
# Define a hostgroup for Windows machines
# All hosts that use the windows-server template will automatically be a member of this group
 
define hostgroup{
    hostgroup_name    windows-servers    ; The name of the hostgroup
    alias        Windows Servers    ; Long name of the group
    }
 
 
 
 
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
 
 
# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above
 
define service{
    use            generic-service
    host_name        fixe
    service_description    NSClient++ Version
    check_command        check_nt!CLIENTVERSION
    }
 
# Create a service for monitoring the uptime of the server
# Change the host_name to match the name of the host you defined above
 
define service{
    use            generic-service
    host_name        fixe
    service_description    Uptime
    check_command        check_nt!UPTIME
    }


Message édité par Lanstack le 27-09-2009 à 20:42:35

---------------
« Mais j'vous jure, y'a dix minutes, ça marchait très bien... »  

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Besoin de conseil avec Nagios

 

Sujets relatifs
Nagios et /proc/bus/usbProblème avec l'interface web de nagios
bios et pilotes new carte mère, besoin d'aide !Nagios Notification
besoin d'aide sur sedbesoin de conseils, multiboot et 1ere install ubuntu
[conseil] Materiel pour nas home madeNagios Alerte W3SVC: Not found et MIB uploader
[Resolu] Nagios Hostgroup comment déclarer ? 
Plus de sujets relatifs à : Besoin de conseil avec Nagios


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR