Icinga with NRPE on linux host problem

Discussion in 'Installation/Configuration' started by mmidgett, Aug 29, 2011.

  1. mmidgett

    mmidgett Member

    I just followed this tutorial http://www.howtoforge.com/server-monitoring-with-icinga-on-debian-squeeze-p3 but I was using Ubuntu 10.4

    I have the service running and I can access it and I see my four hosts but I had to comment out all the checks that use the 'check_nrpe'

    Here is is the logfile. Can someone help me with this?

    Processing object config file '/usr/local/icinga/etc/objects/timeperiods.cfg'...
    Processing object config file '/usr/local/icinga/etc/objects/templates.cfg'...
    Processing object config file '/usr/local/icinga/etc/objects/localhost.cfg'...
    Processing object config file '/usr/local/icinga/etc/objects/ns1_icinga.cfg'...
    Processing object config file '/usr/local/icinga/etc/objects/ns2_icinga.cfg'...
    Processing object config file '/usr/local/icinga/etc/objects/webster_icinga.cfg'...
    Processing object config directory '/usr/local/icinga/etc/modules'...
    Read object config files okay...

    Running pre-flight check on configuration data...

    Checking services...
    Error: Service check command 'check_nrpe' specified in service 'Disk Space' for host 'ns1.trickhosting.biz' not defined anywhere!
    Checked 24 services.
    Checking hosts...
    Checked 4 hosts.
    Checking host groups...
    Checked 1 host groups.
    Checking service groups...
    Checked 0 service groups.
    Checking contacts...
    33,1 25%
     
  2. mmidgett

    mmidgett Member

    Here is where I have defined the services.


    define host{
    use linux-server
    host_name ns1.trickhosting.biz
    alias ns1
    address 70.148.75.234
    }
    define service{
    use generic-service
    host_name ns1.trickhosting.biz
    service_description PING
    check_command check_ping!100.0,20%!500.0,60%
    }
    #define service{
    # use generic-service ; Name of service template to use
    # host_name ns1.trickhosting.biz
    # service_description Disk Space
    # check_command check_nrpe!check_all_disks!20%!10%
    #}
    #define service{
    # use generic-service
    # host_name ns1.trickhosting.biz
    # service_description Current Users
    "objects/ns1_icinga.cfg" 66L, 2531C 1,1 Top
     

Share This Page