Announcement

Collapse
No announcement yet.

All hosts unknown (No output returned from host check)

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

  • All hosts unknown (No output returned from host check)

    Hi,

    I installed a new Centreon with the lastest ISO on CentOS (centreon-3.4.x86_64.iso).
    I exported all my configuration from an old Centreon using CLAPI, and imported it in the news one. Postfix is configured and tested.

    All my hosts are in unknown state! $USER1$ is correctly set, when I test the command into a shell it's OK, via the web interface too, but no check. I've the error (No output returned from host check). I've found on forums issues about nrpe pluging and ARG2 to delete in the command, but I don't think it's my issue, this is an example:

    Code:
    define command {
    command_name check_host_alive
    command_line $USER1$/check_icmp -H $HOSTADDRESS$
    }
    Code:
    define service {
        host_name                      Centreon-Server
        service_description            Check Host Alive
        contact_groups                 group1
        register                       1
        use                            Check_Host_Alive
        _SERVICE_ID                    56
    }
    Code:
    ./check_icmp -H 127.0.0.1
    OK - 127.0.0.1: rta 0,042ms, lost 0%|rta=0,042ms;200,000;500,000;0; pl=0%;40;80;; rtmax=0,182ms;;;; rtmin=0,006ms;;;;
    Thanks for your help
    Attached Files

  • #2
    Hi, try an echo before $USER1$ in you're command : "echo $USER1$/check_icmp -H $HOSTADDRESS$"

    Comment


    • #3
      Hi,

      I solved my issue, probably enableing shell in commands.

      Thanks

      Comment

      Working...
      X