Announcement

Collapse
No announcement yet.

nagios avec config Oreon

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

  • #31
    La je seche un peu je t'avouearais !
    Alors deja nagios2 a l'air de tourner, malgré l'erreur il est lance et fais bien les test demander (enfin je pense vu les check_ping).
    Ensuite heu centreon je crois que tu as une case quand tu modifie les fichier de comf y'a marquer exporter et aussi redemarrer ou recharger. (restart, reload).
    Donc si tu lui donne une de ses cases, oui il fais en somme un /etc/init.d/nagios2 reload ou restart.

    Ensuite stp pourrais tu me coller un bloc de ligne centrer sur la 60 eme du fichier nagios.cfg stp.

    Merci

    Comment


    • #32
      pb config nagios-centreon

      bonjour,

      voila pour la ligne 60

      51 accept_passive_service_checks=1
      52 enable_event_handlers=1
      53 log_rotation_method=d
      54 log_archive_path=/var/log/nagios2/archives/
      55 check_external_commands=1
      56 command_check_interval=1s
      57 command_file=/var/lib/nagios2/rw/nagios.cmd
      58 downtime_file=/var/lib/nagios2/downtime.dat
      59 comment_file=/var/lib/nagios2/comments.dat
      60 lock_file=/var/run/nagios2/nagios2.pid
      61 retain_state_information=1
      62 state_retention_file=/var/lib/nagios2/retention.dat
      63 retention_update_interval=60
      64 use_retained_program_state=1
      65 use_syslog=0
      66 log_notifications=1
      67 log_service_retries=1
      68 log_host_retries=1
      69 log_event_handlers=1
      70 log_initial_states=1
      71 log_external_commands=1
      72 sleep_time=1
      73 service_interleave_factor=s
      74 max_concurrent_checks=20
      75 service_reaper_frequency=10
      76 interval_length=60
      77 use_agressive_host_checking=1
      78 enable_flap_detection=0
      79 low_service_flap_threshold=25.0

      Par contre , je coche bien la case reload lorsque je fais export config!!!!

      a+
      Nagios 2.6
      Centreon 1.4.1
      sur Debian Etch et Ubuntu7

      Comment


      • #33
        Ok alors la honnetement je ne vois pas ton pb ...
        On va faire un truc ...
        Code:
        killall nagios2
        rm /var/run/nagios2.pid
        mv /var/log/nagios2/nagios.log /var/log/nagios2/nagios.sav
        sur tty2 : tail -f /var/log/syslog
        sur tty3 : tail -f /var/log/messages
        sur tty4 : tail -f /var/log/nagios2/nagios.log
        
        /etc/init.d/nagios2 start
        et donne moi stp les lignes en rapport avec nagios car la honnetement le nagios.log est correct alors defois un cron qui tourne mal ... pour cela il faut voir syslog et messages sinon apres cela et bien je ne puis plus rien pour toi.
        dsl ...

        Merci

        Comment


        • #34
          pb config nagios/centreon

          bonjour,

          demarrage de nagios:
          debian-dmz:/home/reseau# /etc/init.d/nagios2 start
          Starting nagios2 monitoring daemon: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/status.dat: Aucun fichier ou répertoire de ce type
          named pipe exists - removing.

          voila pour le syslog:
          debian-dmz:/home/reseau# tail -f /var/log/syslog
          Oct 12 14:25:01 debian-dmz /USR/SBIN/CRON[1516]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:25:01 debian-dmz /USR/SBIN/CRON[1517]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
          Oct 12 14:26:01 debian-dmz /USR/SBIN/CRON[1523]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:26:01 debian-dmz /USR/SBIN/CRON[1524]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
          Oct 12 14:27:01 debian-dmz /USR/SBIN/CRON[1553]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:27:01 debian-dmz /USR/SBIN/CRON[1554]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
          Oct 12 14:28:01 debian-dmz /USR/SBIN/CRON[1582]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:28:01 debian-dmz /USR/SBIN/CRON[1584]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
          Oct 12 14:29:02 debian-dmz /USR/SBIN/CRON[1636]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:29:02 debian-dmz /USR/SBIN/CRON[1638]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
          Oct 12 14:30:01 debian-dmz /USR/SBIN/CRON[1695]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:30:01 debian-dmz /USR/SBIN/CRON[1697]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)
          Oct 12 14:31:01 debian-dmz /USR/SBIN/CRON[1773]: (nagios) CMD (/usr/local/oreon/cron/parsing_log.pl >> /usr/local/oreon/log/ods_parsing_log 2>> /usr/local/oreon/log/ods_parsing_log)
          Oct 12 14:31:01 debian-dmz /USR/SBIN/CRON[1775]: (nagios) CMD (/usr/local/oreon/cron/parsing_status.pl >> /usr/local/oreon/log/ods_parsing_status 2>> /usr/local/oreon/log/ods_parsing_status)

          pour le message:
          debian-dmz:/home/reseau# tail -f /var/log/messages
          Oct 12 11:17:02 debian-dmz -- MARK --
          Oct 12 11:37:03 debian-dmz -- MARK --
          Oct 12 11:57:03 debian-dmz -- MARK --
          Oct 12 12:17:03 debian-dmz -- MARK --
          Oct 12 12:37:03 debian-dmz -- MARK --
          Oct 12 12:57:04 debian-dmz -- MARK --
          Oct 12 13:17:04 debian-dmz -- MARK --
          Oct 12 13:37:04 debian-dmz -- MARK --
          Oct 12 13:57:04 debian-dmz -- MARK --
          Oct 12 14:17:05 debian-dmz -- MARK --

          pour le nagios.log:
          debian-dmz:/home/reseau# tail -f /var/log/nagios2/nagios.log
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192386] SERVICE ALERT: switch-dmz;switch-dmz;OK;HARD;1;PING OK - Paquets perdus = 0%, RTA = 1.44 ms
          [1192192396] HOST ALERT: NAGIOS;UP;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.09 ms
          [1192192406] SERVICE ALERT: Fedora;switch-dmz;OK;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.15 ms
          [1192192426] HOST ALERT: IPCOP;UP;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.30 ms
          [1192192426] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192426] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...
          [1192192427] Warning: Attempting to execute the command "/usr/lib/nagios/plugins//check_cisco -H 192.168.0.100 -c -i -s" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...

          "Attention , j'ai un pb de config check_snmp" .

          voila.....
          a+
          Nagios 2.6
          Centreon 1.4.1
          sur Debian Etch et Ubuntu7

          Comment


          • #35
            pb config nagios-centreon

            bonjour,

            j'ai reinstallé Etch4.0 puis nagios/centreon ( avec la procedure du site wiki);
            et la tout est OK;
            Je pense que dans la procédure , il manque l'article concernant le password d'accès à Nagios;

            Je vais reinstaller , sur l'autre machine qui me pose pb, on verra bien, car je ne comprends pas ce qui se passe sur celle-ci !!!!!

            a+
            Nagios 2.6
            Centreon 1.4.1
            sur Debian Etch et Ubuntu7

            Comment


            • #36
              Same problem

              Please,

              I am having the same problem:

              # /etc/init.d/nagios2 reload
              Reloading nagios2 monitoring daemon configuration files: nagios2/etc/init.d/nagios2: line 60: /var/cache/nagios2/: is a directory

              but I do not understand French, so I do not know if this thread has solved the problem. Somebody could help me?

              Un saludo,

              Pablo

              Comment


              • #37
                Hi,

                the following text is from this thread http://forum.oreon-project.org/archi...hp/t-3446.html and apparently solved the problem:

                Code:
                Edit /oreon_path/www/include/configuration/configCGI/formCGI.ihtml
                
                look for:
                
                {if $nagios == 1}
                <tr class="list_one"><td class="FormRowField">{$form.nagios_check_command.label}</td><td class="FormRowValue">{$form.nagios_check_command.html}</td></tr>
                {/if}
                
                and replace the 3 lines by this one only:
                
                <tr class="list_one"><td class="FormRowField">{$form.nagios_check_command.label}</td><td class="FormRowValue">{$form.nagios_check_command.html}</td></tr>
                
                
                
                Then edit: /oreon_path/www/include/configuration/configCGI/formCGI.php
                
                look for:
                
                if ($oreon->user->get_version() == 1)
                
                an delete this line.
                
                restart apache /etc/init.d/apachexxx restart (adapt to your distro)

                Comment


                • #38
                  But I do not understand what is the relation of that with my init.d script...

                  Un saludo,

                  Pablo

                  Comment


                  • #39
                    Well,

                    I have tried it and it works! Thanks a lot, spoon...

                    Un saludo,

                    Pablo

                    Comment


                    • #40
                      no problem

                      Comment

                      Working...
                      X