Best Vcenter Monitoring Practices
-
lndifferent
- Posts: 19
- Joined: Wed Aug 16, 2017 8:19 am
Best Vcenter Monitoring Practices
I added vcenter host and selected an option to monitor guests on the vmware host. Currently, nagios monitors five services on each guest: status, networking, cpu usage, input/output, and memory. I want to configure nagios so that when a guest machine's status service is down, to stop sending me notifications for the remaining guest's services. I also want to configure nagios to stop sending me all other guests service notifications when a vmware host is down. I am little bit confused with vcenter as it appears that nagios considers vcenter server appliance as host for all other vmware hosts and their guest machines. Thank you.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Best Vcenter Monitoring Practices
Hello, @lndifferent. You should try the Service Dependency Management. You can find it in Configure => Core Configuration manager, then Advanced(in the left column), and then Service Dependencies. Add new.
In the Manage Services, you'd select a "guest machine's status service", and then in the Manage Service Dependencies, you'd select all the other services that belong to that guest machine. Then you can select the Notification Failure Criteria (you can check many options: warning, critical, etc). So that means if the "guest machine's status service" goes to into any of the states that you selected, none of the notifications for dependent services will be sent out.
And enable the following option:
After that please restart nagios with:
https://support.nagios.com/kb/article.php?id=505
In the Manage Services, you'd select a "guest machine's status service", and then in the Manage Service Dependencies, you'd select all the other services that belong to that guest machine. Then you can select the Notification Failure Criteria (you can check many options: warning, critical, etc). So that means if the "guest machine's status service" goes to into any of the states that you selected, none of the notifications for dependent services will be sent out.
You can open the following config:I also want to configure nagios to stop sending me all other guests service notifications when a vmware host is down.
Code: Select all
/usr/local/nagios/etc/nagios.cfgCode: Select all
host_down_disable_service_checks=1Code: Select all
service nagios restartAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
lndifferent
- Posts: 19
- Joined: Wed Aug 16, 2017 8:19 am
Re: Best Vcenter Monitoring Practices
Does it mean that I have to configure the above for each guest machine?In the Manage Services, you'd select a "guest machine's status service", and then in the Manage Service Dependencies, you'd select all the other services that belong to that guest machine. Then you can select the Notification Failure Criteria (you can check many options: warning, critical, etc). So that means if the "guest machine's status service" goes to into any of the states that you selected, none of the notifications for dependent services will be sent out.
Which brings back my last question: What nagios considers as a host when monitoring virtual guest machines with vcenter? In my setup, nagios thinks that vmware vcenter server appliance is host - true physical vmware hosts are not listed anywhere. Vcenter server appliance in my system is just another virtual machine so it doesn't make sense to use that as a host for other virtual machines.You can open the following config:
CODE: SELECT ALL
/usr/local/nagios/etc/nagios.cfg
And enable the following option:
CODE: SELECT ALL
host_down_disable_service_checks=1
After that please restart nagios with:
CODE: SELECT ALL
service nagios restart
https://support.nagios.com/kb/article.php?id=505
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Best Vcenter Monitoring Practices
@lndifferent
In your scenario, I agree that it wouldn't make sense to use the Vcenter server appliance status as a host status for all the other VM's.
PS: take a look at the solution in this forum post: https://support.nagios.com/forum/viewto ... 61#p240261
Yes, you'd need to set up such dependencies for each guest machine. Making all services that belong to one particular vm dependent on the corresponding VM Status check may be a way to go with this.Does it mean that I have to configure the above for each guest machine?
Yes, In your setup XI considers VMware vcenter server appliance as a host. Everything else it considers as service checks. If you want to have a host entry for each VM in the VSphere, I'd rerun the wizard against each VM separately. However, you'd need to make sure that each VM has a static IP address.Which brings back my last question: What nagios considers as a host when monitoring virtual guest machines with vcenter? In my setup, nagios thinks that vmware vcenter server appliance is host - true physical vmware hosts are not listed anywhere. Vcenter server appliance in my system is just another virtual machine so it doesn't make sense to use that as a host for other virtual machines.
In your scenario, I agree that it wouldn't make sense to use the Vcenter server appliance status as a host status for all the other VM's.
PS: take a look at the solution in this forum post: https://support.nagios.com/forum/viewto ... 61#p240261
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.