Hi Team,
Recently we observed that Nagios skipping the checks of vCenter parameters whenever maintenance mode active on vCenter. Due to we missed the genuine alerts and hit the vCenter issue. Could you please help us to sort it on priority.
Plugin : check_vmware_api.pl
Parameter: All Data Store - Free Space
Output: CHECK_VMWARE_API.PL OK - NOTICE: "<hostname>" is in maintenance mode, check skipped
Thanks.
vmware monitoring in maintenance mode
Re: vmware monitoring in maintenance mode
I don't think there is a way around this because the vmware API is not queryable when it is in maintenance mode, that's why it returns that message.
Are you pointing the checks at the vcenter server or the esxi host?
Are you pointing the checks at the vcenter server or the esxi host?
Re: vmware monitoring in maintenance mode
we are pointing checks to the vCenter
Re: vmware monitoring in maintenance mode
I was able to get the plugin to work if I remove the "is in maintenance mode, check skipped" die lines from the plugin, that looks to be a design choice by the developer of the plugin, there wasn't an option to turn that off and I'm not sure why they decided to do that. If you do that, the plugin will be replaced on an XI upgrade and you may need to re-implement the change after:
Try that and see if it works for you (back up your current plugin first).
Code: Select all
sed -i '/maintenance mode, check skipped/d' /usr/local/nagios/libexec/check_vmware_api.pl