host check pending in nagios setup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

host check pending in nagios setup

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: host check pending in nagios setup

Post by scottwilkerson »

Do you have a check command specified for the host? If so what is it?
Configure -> CCM -> Host -> Modify
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: host check pending in nagios setup

Post 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...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: host check pending in nagios setup

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: host check pending in nagios setup

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: host check pending in nagios setup

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: host check pending in nagios setup

Post 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
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: host check pending in nagios setup

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: host check pending in nagios setup

Post 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
Locked