Host up, but status is Pending

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Host up, but status is Pending

Post by psyllex »

Morning everyone.

I came in this morning and saw that on my two remote servers, I have a status of 'PENDING' on all Services. I doubled check and I have a definition for all of the services. I have the check-host-alive command in my commands.cfg. I'm not sure what I'm doing wrong. I've read a few posts and I haven't had any of the problems with not defining etc that I can see. I'm using the NRPE daemon (thru xinetd) on my remote hosts. My define for hosts is pretty standard with the

Code: Select all

check_command          check-host-alive
. My check_command in my 'remoteHost.cfg' is

Code: Select all

check_command         check_nrpe!check_local_users!20!50
; which I stole straight out of the exampels. I do define check_nrpe in my commands.cfg as

Code: Select all

define command{
  command_name     check_nrpe
  command_line        $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
I only wonder if I need to explicitly call the check_nrpe or check-host-alive in the nrpe.cfg on the remote hosts. Currently I don't have anything for check_nrpe or check-host-alive in that file. Your help is greatly appreciated! :shock:
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host up, but status is Pending

Post by abrist »

Could you post a tail of nagios.log?

Code: Select all

tail -50 /usr/local/nagios/var/nagios.log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: Host up, but status is Pending

Post by psyllex »

I can't really output the whole thing...but it looks like I'm getting the warning:
Check result queue contained results for service "Check_<some service>" on host '<server>', but the service could not be found! Perhaps you forgot to define the service in your config files?
I thought i had defined them. It's in the commands.cfg, there are actual commands in the nrpe.cfg in the remote host configurations, the definition is in the remoteHost.cfg. Did I miss anything?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host up, but status is Pending

Post by abrist »

Have you restarted the nagios service since changing the configs? Make sure you spelled "Check_<some service>" the exact same way as you spelled it in your command definition?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: Host up, but status is Pending

Post by psyllex »

abrist wrote:Have you restarted the nagios service since changing the configs? Make sure you spelled "Check_<some service>" the exact same way as you spelled it in your command definition?
I've restarted many times. It is both of my remote hosts and all of the services that are pending not just some of them. I do not have a nrpe.cfg on the Nagios server, that is the only thing I could think that was different from the other installations I've done. But I tried to stick to your installation guildlines for the NRPE daemon and not configuring the NRPE daemon on the Nagios server except for installing the plugin.

Should I re-install NRPE on the Nagios server do you think and configure it all the way through?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host up, but status is Pending

Post by abrist »

psyllex wrote: Should I re-install NRPE on the Nagios server do you think and configure it all the way through?
Nope, as that would not fix this problem. Could you post the host config and the command definition for the service/host in a code wrap?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: Host up, but status is Pending

Post by psyllex »

abrist wrote:
psyllex wrote: Should I re-install NRPE on the Nagios server do you think and configure it all the way through?
Nope, as that would not fix this problem. Could you post the host config and the command definition for the service/host in a code wrap?
which exactly?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host up, but status is Pending

Post by abrist »

The configs for the "Check_<some service>" that was failing in the logs.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: Host up, but status is Pending

Post by psyllex »

abrist wrote:The configs for the "Check_<some service>" that was failing in the logs.
Sorry not following you. Do you want the command.cfg, remote.cfg (remote host), nagios.cfg, the nrpe.cfg from the remote hosts? I have to copy them over to hard cd as their on a closed network which is why I'm asking so I don't end up burning 3 cd's
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: Host up, but status is Pending

Post by psyllex »

wait before all of that....the only thing I have in my libexec on the remote server is check_nrpe. Do I need to make sure I have executables for the service? Or will they route through the Nagios server? So I have check_users, check_load, check_sda1, check_zombie_procs, check_total_procs that I'm trying to monitor. But as I said there isn't anything but check_nrpe in my libexec.
Locked