Host Check Pending

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Host Check Pending

Post by ahoward12 »

Hello, I have a question I cannot seem to find an answer too, I also don't have the ability post in the customer forum, although I have an unlimited license. I have Nagios XI 5.4.2, in VMware on Cent OS 6.8 64bit. While I am still adding hosts, I often come across new hosts come up under “Host Check is Pending”. I am wondering what defines this? I have everything controlled by templates, I add another host and simply add it to the right service and host group. I have a host template applied to all of my host groups which gives the simple check command of “check-host-alive”. This template is applied to virtually all of my host groups encompassing all of my hosts. However, I continue to run into select machines that are stuck in the pending status, while all of the services are green and ok. How can I avoid this, or is there something I am missing? Obviously Nagios is very large animal, so I'm not sure what to attach as far that would help..

I am good with GUI and I am good with Linux but the majority of the configuration I have done through the GUI.

Thanks,

*Update: If I take the host out of the hostgroup, and go into the host directly and apply the template, the issue is resolved. I can then remove the template and put it back to my original way, it continues to work. In conclusion, it appears I need to apply the host template directly to the host and not the host group, in order to 'jump start' it, for lack of a better phrase. Thoughts?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Host Check Pending

Post by mcapra »

ahoward12 wrote:I also don't have the ability post in the customer forum, although I have an unlimited license.
You'll need to contact our sales department and have them add your forum account name to the customer section's whitelist.

If you can send us over a system profile (attach it to a post or PM it), as well as the names of some of these hosts stuck in "Pending", we can investigate what could be causing this.

From the Nagios XI GUI, you can gather a profile via Admin -> System Profile -> Download Profile.
Former Nagios employee
https://www.mcapra.com/
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Host Check Pending

Post by ahoward12 »

Here is the Profile you wanted. I just added 3 new hosts today, Cafarosrv45, Cafarosrv46, Cafarosrv48. As I said it is just annoying. I can add the same template to the direct host then remove it and it works. Right now the host template is applied to the host group those 3 belong too. Let me know what you come up with!

Also, thank you for the heads up. I will contact sales for forum access.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Host Check Pending

Post by dwhitfield »

There is no profile attached. If you PMed it, can you also PM it to me? You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info).

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Host Check Pending

Post by ahoward12 »

I apologize, it must not have attached. Here it is.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Check Pending

Post by tmcdonald »

ahoward12 wrote:it appears I need to apply the host template directly to the host and not the host group, in order to 'jump start' it, for lack of a better phrase. Thoughts?
I think this is the crux of the issue. You don't apply a host template *to* a hostgroup. A host template can only ever be used by a host. A service template can only ever be used by a service. What you are probably doing is defining a host template and setting the hostgroups to some value - this does not mean "All hosts in this group should be using this template" but rather "All hosts using this template should be added to this hostgroup". Common enough mistake, just remember that templates are nothing but incomplete object definitions used to "build up" a final object of that type.
Former Nagios employee
ahoward12
Posts: 137
Joined: Thu Jan 05, 2017 10:24 am

Re: Host Check Pending

Post by ahoward12 »

Ok, I misunderstood how that works. Thank you very the clarification, that makes much more sense. Good wording, I would give you kudos if I could.

I also just tried that. I removed the template from the host groups and used the bulk modification to apply it to all of the hosts. 0 pending hosts :). I appreciate your help!

You can mark this is a resolved.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host Check Pending

Post by tmcdonald »

Glad to hear it! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked