Page 1 of 2

Vcenter wizard and host groups

Posted: Fri Sep 29, 2017 8:16 am
by lndifferent
I used VMware wizard to add vcenter server and to monitor all virtual machines that vcenter manages. That created few services for each virtual machine so I ended up with a lot of independent services. I watched Nagios best practices video and they say that creating a host group and assigning a service to the host group saves time but it doesn't say anything about vcenter there. Say that I want to change CPU and memory monitoring interval for every single virtual machine managed by vcenter. It seems that I have to modify each service one by one in my current vcenter environment. Is there a better way to do that?

Re: Vcenter wizard and host groups

Posted: Fri Sep 29, 2017 9:27 am
by scottwilkerson
lndifferent wrote:It seems that I have to modify each service one by one in my current vcenter environment. Is there a better way to do that?
It is for this very reason we added the " Bulk Modifications Tool" to the enterprise version of XI.
Configure -> Core Config Manager -> Tools -> Bulk Modifications Tool
You can select Change a Single Config Option
select the item you want to change
then select all the hosts/services you want to make the change on
click Save

Now they are all update in one go!

Re: Vcenter wizard and host groups

Posted: Fri Sep 29, 2017 12:45 pm
by lndifferent
That works, thanks a lot. Do you happen to know how to reconfigure vcenter host in order to change which virtual machines to monitor or not? I think vcenter host does not see newly added or removed virtual machines. I will open another discussion if you don't.

Re: Vcenter wizard and host groups

Posted: Fri Sep 29, 2017 12:55 pm
by tacolover101
i don't believe auto-config for hosts under vcenter is a current function of XI, but it would make a great feature. :)

Re: Vcenter wizard and host groups

Posted: Fri Sep 29, 2017 1:36 pm
by scottwilkerson
You would need to provision them. The problem is XI needs to know when you want to start monitoring something and when to stop.

Shutting off a VM could mean you need to be notified, or it could mean there was a problem.

Re: Vcenter wizard and host groups

Posted: Sat Sep 30, 2017 8:21 pm
by krutaw
Why not just have a script (python, powershell, perl, whatever) that interrogates the vCenter host for all virtual machines, and then do an export from the Nagios XI 5 API, compare and contrast. Then you take each of the virtual machines that are in vCenter but not in Nagios and add it via the API. If you're attaching services via hostgroups, then it's a single command. Even better, if you've attached your thresholds to "free variables" that are assigned by host templates, you can even make quick work of changing thresholds without editing single checks. PM me if you're curious what the heck I'm talking about. :)

Re: Vcenter wizard and host groups

Posted: Sun Oct 01, 2017 1:37 pm
by scottwilkerson
Thanks for sharing @krutaw!

Re: Vcenter wizard and host groups

Posted: Wed Oct 04, 2017 7:32 am
by lndifferent
That is good to know but I shouldn't be doing that with the enterprise edition. I would to know what is the official response about this.

Re: Vcenter wizard and host groups

Posted: Wed Oct 04, 2017 1:45 pm
by dwhitfield
lndifferent wrote:I would to know what is the official response about this.
For clarity, you've gotten three responses from the CTO in this thread. A green (as opposed to shades of blue) username means the response is from a Nagios employee.

Did you need some clarification about Scott's last post (the one before thanking @krutaw, I mean)?

Re: Vcenter wizard and host groups

Posted: Mon Oct 16, 2017 10:33 am
by lndifferent
dwhitfield wrote:
lndifferent wrote:I would to know what is the official response about this.
For clarity, you've gotten three responses from the CTO in this thread. A green (as opposed to shades of blue) username means the response is from a Nagios employee.

Did you need some clarification about Scott's last post (the one before thanking @krutaw, I mean)?
Yes, please. What does he mean by provisioning them?