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.
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
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!
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.
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?
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.
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?
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.
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.
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
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.