Page 1 of 1

host check pending in nagios setup

Posted: Fri Aug 31, 2012 2:14 pm
by maxwellmiranda
i created some services for a host...
all the services are in green and active..however the host check still shows as greyed and in PENDING state...
this is a linux server...
can you tell me how to fix t his....
i checked the configurations and there are no errors or warning

Re: host check pending in nagios setup

Posted: Sat Sep 01, 2012 7:55 am
by scottwilkerson
Do you have a check command specified for the host? If so what is it?
Configure -> CCM -> Host -> Modify

Re: host check pending in nagios setup

Posted: Wed Sep 05, 2012 9:41 am
by maxwellmiranda
i dont have any check command specified ......

the check command is blank for my other servers and they are not in PENDING state...

Re: host check pending in nagios setup

Posted: Wed Sep 05, 2012 11:49 am
by lmiltchev
If it is blank, then it it probably defined in the template. Go to:

Configure -> CCM -> Host -> Modify and check what is the template that you are using (under "Common Settings" tab).

Then go to:

Configure -> CCM -> Templates -> Host Templates -> <your_template> -> Modify, and see what is the check command.

Note: The template used should be the "xiwizard_linuxserver_host", and the command is probably "check_xi_host_ping".

Try running the following command from the command line:

Code: Select all

/usr/local/nagios/libexec/check_icmp -H <IP of the host> -w 3000.0,80% -c 5000.0,100% -p 5
and show us the output.

Re: host check pending in nagios setup

Posted: Wed Sep 05, 2012 12:33 pm
by maxwellmiranda
i changed the template to linux server host....

the out put of the command is as shown below....
nagprod:/usr/local/nagios/libexec> /usr/local/nagios/libexec/check_icmp -H mxtjmfgdrmhau.bose.com -w 3000.0,80% -c 5000.0,100% -p 5
OK - mxtjmfgdrmhau.bose.com: rta 139.250ms, lost 0%|rta=139.250ms;3000.000;5000.000;0; pl=0%;80;100;;


still the host check is in PENDING STATE

Re: host check pending in nagios setup

Posted: Wed Sep 05, 2012 1:34 pm
by lmiltchev
Go to the Core Config Manager->Hosts->find the mxtjmfgdrmhau.bose.com host, click on the "Download" action button (diskette icon), save and post the config file.

Re: host check pending in nagios setup

Posted: Wed Sep 05, 2012 1:47 pm
by maxwellmiranda
###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-09-05 14:47:08
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define host {
host_name mxtjmfgdrmhau.bose.com
alias MXTJMFGDRMHAU Linux Production
display_name MXTJMFGDRMHAU Linux Production
address mxtjmfgdrmhau.bose.com
parents nagprod.bose.com
hostgroups linux-servers
initial_state o
max_check_attempts 2
check_interval 15
retry_interval 2
active_checks_enabled 1
check_period 24x7
contacts dbapage,dbauser
notification_interval 15
notification_period 24x7
first_notification_delay 0
notification_options d,u,r,f,s
notifications_enabled 1
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

Re: host check pending in nagios setup

Posted: Wed Sep 05, 2012 4:54 pm
by scottwilkerson
Can you verify that linux-server is specified under Additional templates.

Make sure once you select it you click "Insert"

Then Save
Apply Configuration

Re: host check pending in nagios setup

Posted: Thu Sep 06, 2012 10:57 am
by maxwellmiranda
it worked....i didnot click "Insert"
i selected the linux host template and applied the configuration....

the host looks green now...
thank you