Likes Likes:  0
Resultaten 1 tot 12 van de 12
  1. #1
    Nagios probleem; escalations.cfg
    Welcome ! NL(:)tukkerz
    179 Berichten
    Ingeschreven
    28/08/06

    Locatie
    Willemstad (NA)

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: op aanvraag
    Ondernemingsnummer: nvt

    Thread Starter

    Nagios probleem; escalations.cfg

    Beste,

    ik wil van mijn windows monitoring af en nu ben ik bezig met de setup van Nagios maar ik krijg een error bij de setup kan iemand mij helpen ?

    Code:
    [root@fibnob-hilversum nagios]# nagios -v nagios.cfg
    
    Nagios 2.10
    Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
    Last Modified: 10-21-2007
    License: GPL
    
    Reading configuration data...
    
    Error: Could not find any host matching 'fibnob-hilversum'
    Error: Could not expand hostgroups and/or hosts specified in service escalation (config file '/etc/nagios/escalations.cfg', starting on line 1)
    
    ***> One or more problems was encountered while processing the config files...
    
         Check your configuration file(s) to ensure that they contain valid
         directives and data defintions.  If you are upgrading from a previous
         version of Nagios, you should be aware that some variables/definitions
         may have been removed or modified in this version.  Make sure to read
         the HTML documentation regarding the config files, as well as the
         'Whats New' section to find out what has changed.
    
    [root@fibnob-hilversum nagios]#
    nu heb ik zo de inhoud van : escalations.cfg

    Code:
    define serviceescalation{
            host_name                      fibnob-hilversum 
            service_description            SMTP
            first_notification              2
            last_notification              6
            contact_groups              admin
            notification_interval          0
            }
    wie kan me helpen ?

    ps. ik maak gebruik van deze handleiding: http://wiki.centos.org/HowTos/Nagios
    (systeem: CentOS 4.5)

  2. #2
    Nagios probleem; escalations.cfg
    moderator
    4.784 Berichten
    Ingeschreven
    04/11/05

    Locatie
    Gent

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    12 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: nvt
    Ondernemingsnummer: 0475284162

    en toon even de definitie van "fibnob-hilversum" (vermoedelijk in hosts.cfg)...

  3. #3
    Nagios probleem; escalations.cfg
    Welcome ! NL(:)tukkerz
    179 Berichten
    Ingeschreven
    28/08/06

    Locatie
    Willemstad (NA)

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: op aanvraag
    Ondernemingsnummer: nvt

    Thread Starter
    Code:
    # Generic host definitions
    define host{
            name                            fibnob-hilversum    ; Generic template name
            notifications_enabled           1               ; Host notifications are enabled
            event_handler_enabled           1               ; Host event handler is enabled
            flap_detection_enabled          1               ; Flap detection is enabled
            process_perf_data               1               ; Process performance data
            retain_status_information       1               ; Retain status information across program restarts
            retain_nonstatus_information    1               ; Retain non-status information across program restarts
            register                        0               ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
            }
    
    # This creates a generic template that any host can use.
    # Notifies never, checks 15 times before showing critical on CGI interface,
    
    define host{
            name                    basic-host
            use                     generic-host
            check_command           check-host-alive
            max_check_attempts      15
            notification_interval   0
            notification_period     none
            notification_options    n
            register                0
            }
    
    # This creates a generic host that your routers can use
    # monitors host(s) 24x7, notifies on down and recovery, checks 15 times before going critical,
    # notifies the contact_group every 30 minutes
    
    define host{
            name                    your-routers-host
            use                     generic-host
            check_command           check-host-alive
            max_check_attempts      15
            notification_interval   30
            notification_period     24x7
            notification_options    d,r
            register                0
            }
    
    define host{
            use                     basic-host
            host_name               mymachine1
            alias                   mymachine1
            address                 192.168.100.101
            contact_groups          einsteins
    #       notification_options    d,r  #overrides the basic-host option
            }
    
    define host{
            use                     your-routers-host
            host_name               router1
            alias                   router1
            address                 192.168.100.100
            contact_groups          einsteins
            }

  4. #4
    Nagios probleem; escalations.cfg
    moderator
    4.784 Berichten
    Ingeschreven
    04/11/05

    Locatie
    Gent

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    12 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: nvt
    Ondernemingsnummer: 0475284162

    En lees nu even de volgende lijn

    Code:
            register                        0               ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
    ... en ga dan verder met het configureren van nagios.

    Denk eraan dat templates handig zijn, dus je kan dit best even goed overdenken.

  5. #5
    Nagios probleem; escalations.cfg
    Welcome ! NL(:)tukkerz
    179 Berichten
    Ingeschreven
    28/08/06

    Locatie
    Willemstad (NA)

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: op aanvraag
    Ondernemingsnummer: nvt

    Thread Starter
    Code:
    Nagios 2.10
    Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
    Last Modified: 10-21-2007
    License: GPL
    
    Reading configuration data...
    
    Error: Could not find any host matching 'fibnob-hilversum'
    Error: Could not expand hostgroups and/or hosts specified in service escalation (config file '/etc/nagios/escalations.cfg', starting on line 1)
    
    ***> One or more problems was encountered while processing the config files...
    
         Check your configuration file(s) to ensure that they contain valid
         directives and data defintions.  If you are upgrading from a previous
         version of Nagios, you should be aware that some variables/definitions
         may have been removed or modified in this version.  Make sure to read
         the HTML documentation regarding the config files, as well as the
         'Whats New' section to find out what has changed.
    en wat nu dan ?

    file: escalations.cfg

    Code:
    define serviceescalation{
            host_name                      fibnob-hilversum
            service_description            SMTP
            first_notification              2
            last_notification              6
            contact_groups                  admin
            notification_interval          0
            }

  6. #6
    Nagios probleem; escalations.cfg
    moderator
    4.784 Berichten
    Ingeschreven
    04/11/05

    Locatie
    Gent

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    12 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: nvt
    Ondernemingsnummer: 0475284162

    wat heb je aangepast?

  7. #7
    Nagios probleem; escalations.cfg
    Welcome ! NL(:)tukkerz
    179 Berichten
    Ingeschreven
    28/08/06

    Locatie
    Willemstad (NA)

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: op aanvraag
    Ondernemingsnummer: nvt

    Thread Starter
    wat jij zij...

  8. #8
    Nagios probleem; escalations.cfg
    moderator
    4.784 Berichten
    Ingeschreven
    04/11/05

    Locatie
    Gent

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    12 Berichten zijn liked


    Registrar SIDN: ja
    KvK nummer: nvt
    Ondernemingsnummer: 0475284162

    zet dan nog eens je hosts hier neer... de error is duidelijk, de host die jij opgeeft wordt niet gevonden.

  9. #9
    Nagios probleem; escalations.cfg
    geregistreerd gebruiker
    3.709 Berichten
    Ingeschreven
    22/05/05

    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    24 Berichten zijn liked


    Naam: Jeroen

    Opzich is jou deel wel goed, het probleem zit hem in het feit dat je de hosttemplate de naam van je server hebt gegeven. Doe het als volgt:

    Code:
    # Generic host definitions
    define host{
            name                            basic-host          ; Generic template name
            notifications_enabled           1               ; Host notifications are enabled
            event_handler_enabled           1               ; Host event handler is enabled
            flap_detection_enabled          1               ; Flap detection is enabled
            process_perf_data               1               ; Process performance data
            retain_status_information       1               ; Retain status information across program restarts
            retain_nonstatus_information    1               ; Retain non-status information across program restarts
            max_check_attempts      15
            notification_interval   30
            notification_period     24x7
            notification_options    d,r
            check_command           check-host-alive
            contact_groups                  XXXX
            register                        0               ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
            }
    
    define host{
            use                     basic-host
            host_name               fibnob-hilversum
            alias                   fibnob-hilversum
            address                 127.0.0.1
            }
    Je maakt dus eerst een algemene template aan met daarin de instellingen die voor al je hosts moeten gelden, daarna maak je de daadwerkelijke hosts (servers) aan en die laat je de template gebruiken.

    Code:
    define serviceescalation{
            host_name                      fibnob-hilversum
            service_description            SMTP
            first_notification              2
            last_notification              6
            contact_groups                  admin
            notification_interval          0
            }

  10. #10
    Nagios probleem; escalations.cfg
    Welcome ! NL(:)tukkerz
    179 Berichten
    Ingeschreven
    28/08/06

    Locatie
    Willemstad (NA)

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: op aanvraag
    Ondernemingsnummer: nvt

    Thread Starter
    na het aanpassen wat jij zij krijg ik deze melding;

    Code:
    Nagios 2.10
    Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
    Last Modified: 10-21-2007
    License: GPL
    
    Reading configuration data...
    
    Error: Template 'basic-host' specified in host definition could not be not found (config file '/etc/nagios/hosts.cfg', starting on line 38)
    
    ***> One or more problems was encountered while processing the config files...
    
         Check your configuration file(s) to ensure that they contain valid
         directives and data defintions.  If you are upgrading from a previous
         version of Nagios, you should be aware that some variables/definitions
         may have been removed or modified in this version.  Make sure to read
         the HTML documentation regarding the config files, as well as the
         'Whats New' section to find out what has changed.

  11. #11
    Nagios probleem; escalations.cfg
    Maarten
    508 Berichten
    Ingeschreven
    13/03/03

    Locatie
    Alkmaar

    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Naam: Maarten
    Registrar SIDN: ja
    KvK nummer: 37101223
    Ondernemingsnummer: nvt

    Citaat Oorspronkelijk geplaatst door BertvArkel Bekijk Berichten
    na het aanpassen wat jij zij krijg ik deze melding;
    Kun je het hele bestandje ergens neerzetten? De tekst die hierboven staat is goed, maar waarschijnlijk heb je ergens een fout gemaakt.

  12. #12
    Nagios probleem; escalations.cfg
    Welcome ! NL(:)tukkerz
    179 Berichten
    Ingeschreven
    28/08/06

    Locatie
    Willemstad (NA)

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: op aanvraag
    Ondernemingsnummer: nvt

    Thread Starter
    Ik laat mijn collega vanmiddag er wel naar kijken.

    Dank jullie voor de hulp.

    misschien kunnen jullie hier wat basic bestanden plaatsen zo als die er standaard bij ziiten en kijken of dat werkt...
    Laatst gewijzigd door BertvArkel; 04/01/08 om 18:55. Reden: Automerged Dubbelpost

Labels voor dit Bericht

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics