Announcement

Collapse
No announcement yet.

Génération du fichier nagios.cfg

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

  • casi266
    replied
    tu n'as pas lue la documentation a mon avis :roll:

    Jun 7 10:14:26 localhost nagios: Warning: Host 'gema' has no services associated with it!
    un hote sans service associé c'est pas bon déja
    après y'a un problème avec le group admin
    et le fait que rien ne s'affiche qlors que tout semble pourtant fonctionner peut venir de beaucoup de chose...
    vérifi bien les chemins vers nagios dans la configuration d'oréon, regarde sur, le forum, le wiki...
    merci et patience :wink:

    Leave a comment:


  • folkein
    replied
    Quand je regarde mes log:

    /usr/local/nagios/libex/var/log/messages/


    Jun 7 10:14:26 localhost nagios: Caught SIGTERM, shutting down...
    Jun 7 10:14:26 localhost nagios: Nagios 1.2 starting... (PID=11016)
    Jun 7 10:14:26 localhost nagios: Warning: Host 'gema' has no services associated with it!
    Jun 7 10:14:26 localhost nagios: Finished daemonizing... (New PID=11017)
    Jun 7 10:14:26 localhost nagios: Warning: Could not get group entry for 'admin'
    Jun 7 10:14:26 localhost nagios: Warning: Could not get passwd entry for 'admin'
    Jun 7 10:14:36 localhost nagios: HOST ALERT: localhost;DOWN;SOFT;1;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST EVENT HANDLER: localhost;DOWN;SOFT;1;check_disk_space
    Jun 7 10:14:36 localhost nagios: Warning: Attempting to execute the command "/usr/local/nagios/libexec//check_nt -H 127.0.0.1 -v USEDDISKSPACE -l -w -c " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
    Jun 7 10:14:36 localhost nagios: HOST ALERT: localhost;DOWN;SOFT;2;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST EVENT HANDLER: localhost;DOWN;SOFT;2;check_disk_space
    Jun 7 10:14:36 localhost nagios: Warning: Attempting to execute the command "/usr/local/nagios/libexec//check_nt -H 127.0.0.1 -v USEDDISKSPACE -l -w -c " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
    Jun 7 10:14:36 localhost nagios: HOST ALERT: localhost;DOWN;HARD;3;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-service-perfdata;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-host-perfdata;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-epager;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-email;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-epager;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-email;(No output!)
    Jun 7 10:14:36 localhost nagios: HOST EVENT HANDLER: localhost;DOWN;HARD;3;check_disk_space
    Jun 7 10:14:36 localhost nagios: Warning: Attempting to execute the command "/usr/local/nagios/libexec//check_nt -H 127.0.0.1 -v USEDDISKSPACE -l -w -c " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
    Jun 7 10:14:36 localhost nagios: SERVICE ALERT: localhost;ping;CRITICAL;HARD;1;(No output!)
    Jun 7 10:15:01 localhost crond(pam_unix)[11069]: session opened for user root by (uid=0)
    Jun 7 10:15:01 localhost crond(pam_unix)[11070]: session opened for user root by (uid=0)
    Jun 7 10:15:01 localhost crond(pam_unix)[11071]: session opened for user root by (uid=0)
    Jun 7 10:15:01 localhost crond(pam_unix)[11072]: session opened for user root by (uid=0)
    Jun 7 10:15:02 localhost crond(pam_unix)[11070]: session closed for user root
    Jun 7 10:15:02 localhost crond(pam_unix)[11069]: session closed for user root
    Jun 7 10:15:02 localhost crond(pam_unix)[11071]: session closed for user root
    Jun 7 10:15:02 localhost crond(pam_unix)[11072]: session closed for user root
    Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-service-perfdata;(No output!)
    Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;process-host-perfdata;(No output!)
    Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-epager;(No output!)
    Jun 7 10:15:36 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;notify-by-email;(No output!)
    Jun 7 10:15:37 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-epager;(No output!)
    Jun 7 10:15:37 localhost nagios: HOST NOTIFICATION: Fouletier;localhost;DOWN;host-notify-by-email;(No output!)

    Leave a comment:


  • folkein
    replied
    Merci tout fonctionne correctement, du mois presque.

    Détails des Hostgroup
    Stat not available for the moment.



    Détails des Servicegroup
    Stat not available for the moment.

    Pourtant nagios est lancé. J"ai généré les fichiers de configurations mais il me dit:

    Pas de stat pour cet Host.

    Pensez à générer les fichiers de configura]tion.


    Host "localhost"
    Name : localhost
    Alias : local
    Address : 192.168.198.166
    Parents :
    # Host Groups : test
    Check_command :
    Max_check_attempts : 10
    Checks_enabled : Nothing
    Event_handler_enabled : Nothing
    Event_handler :
    Low_flap_threshold : 0 %
    High_flap_threshold : 0 %
    Flap_detection_enabled : Nothing
    Process_perf_data : Nothing
    Retain_status_information : Nothing
    Retain_nonstatus_information : Nothing
    Notification_interval : 1 * 60 secondes
    Notification_period : 24x7
    Notification_options : d,u,r
    Notifications_enabled : Nothing
    Stalking_options :
    Etat : Activé
    Comment :
    Modifier Supprimer

    Merci de votre aide :lol:

    Leave a comment:


  • rom
    replied
    Le chemin de tes plugins.
    Cette MACRO va etre utilisée dans la définition de tes commandes, par exemple :

    Code:
    $USER1$/check_nt

    Leave a comment:


  • folkein
    replied
    dans le fichier resource.cfg?

    Quand j'édite le fichier:
    vi /usr/local/nagios/etc/resource.cfg

    y a que ca dedans
    #path tothe plugins
    $USER1$=

    Que dois je mettre apres le = ?

    Merci

    Leave a comment:


  • rom
    replied
    Tu n'as pas renseigne de variable dans le resource.cfg ?

    Leave a comment:


  • folkein
    started a topic Génération du fichier nagios.cfg

    Génération du fichier nagios.cfg

    Lors de la génération de mon fichier nagios.cfg, oreon me retourne ca:

    Nagios 1.2
    Copyright (c) 1999-2004 Ethan Galstad ([email protected])
    Last Modified: 02-02-2004
    License: GPL
    Reading configuration data...
    Error: NULL variable value - Line 21 of resource file '/usr/local/nagios/etc/resource.cfg'
    Running pre-flight check on configuration data...
    Checking services...
    Checked 1 services.


    Merci de votre aide
Working...
X