Announcement

Collapse
No announcement yet.

check UH centreon

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

  • check UH centreon

    Hello,

    I'am in version centreon : 2.7.1

    I do a check UH with a result exit 1 when i do it :

    [[email protected] centreon-engine]# /usr/local/nagios/plugins/check_uh -p 5665 -H TATA
    Could not resolve hostname TATA: Name or service not known
    ping: unknown host TATA
    UH indisponible
    [[email protected] centreon-engine]# echo $?
    1

    In my centreon IHM, the host is up but my host is unavailable
    TATA UP 1.2.3.4 03/01/2017 16:20:45 1d 4h 34m 45s 1/1 (H) UH indisponible

    I put the poller to DEBUG, i have this :

    [1483368697] [1000] Not currently in macro. Running output (46): '/usr/local/nagios/plugins/check_uh -p 5665 -H '
    [1483368697] [1000] Processing part: 'HOSTNAME'
    [1483368697] [1000] macros[0] (HOSTNAME) match.
    [1483368697] [1000] Processed 'HOSTNAME', Clean Options: 0, Free: 1
    [1483368697] [1000] Processed 'HOSTNAME', Clean Options: 0, Free: 1
    [1483368697] [1000] Cleaning options: global=0, local=0, effective=0
    [1483368697] [1000] Uncleaned macro. Running output (50): '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA'
    [1483368697] [1000] Just finished macro. Running output (50): '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA'
    [1483368697] [1000] Processing part: ' -t '
    [1483368697] [1000] Not currently in macro. Running output (54): '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA -t '
    [1483368697] [1000] Processing part: 'ARG1'
    [1483368697] [1000] Processed 'ARG1', Clean Options: 0, Free: 0
    [1483368697] [1000] Processed 'ARG1', Clean Options: 0, Free: 0
    [1483368697] [1000] Cleaning options: global=0, local=0, effective=0
    [1483368697] [1000] Uncleaned macro. Running output (56): '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA -t 20'
    [1483368697] [1000] Just finished macro. Running output (56): '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA -t 20'
    [1483368697] [1000] Processing part: ''
    [1483368697] [1000] Not currently in macro. Running output (56): '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA -t 20'
    [1483368697] [1000] Done. Final output: '/usr/local/nagios/plugins/check_uh -p 5665 -H TATA -t 20'
    [1483368697] [1000] **** END MACRO PROCESSING *************
    [1483368697] [1000] Making callbacks (type 14)...
    [1483368697] [1000] Callback #1 (type 14) return (code = 0
    [1483368697] [1000] raw::run: cmd='/usr/local/nagios/plugins/check_uh -p 5665 -H TATA -t 20', timeout=10
    [1483368697] [1000] raw::run: id=6, process=0xf6a370
    [1483368697] [1000] raw::run: start process success: id=6
    [1483368697] [1000] ** Event Check Loop
    [1483368697] [1000] Next High Priority Event Time: Mon Jan 2 15:51:38 2017
    [1483368697] [1000] Next Low Priority Event Time: Mon Jan 2 15:54:12 2017
    [1483368697] [1000] Current/Max Service Checks: 0/400
    [1483368697] [1000] No events to execute at the moment. Idling for a bit...
    [1483368697] [1000] Making callbacks (type 8)...
    [1483368697] [1000] raw::finished: process=0xf6a370
    [1483368697] [1000] raw::finished: id=6
    [1483368697] [1000] raw::finished: id=6, start_time=1483368697035, end_time=1483368697113, exit_code=1, exit_status=0, output='UH indisponible
    [1483368697] [1000] '
    [1483368697] [1000] checker::finished: res=0x7f198f849250


    My question is : why my host is up and my host is nuvalaible ?

    thanks for your answers.


  • #2
    Hi, did you attribute the "generic-host" template to your host ?
    If not try it, I'll explain if it works

    Comment

    Working...
    X