Page 1 of 1

vmware monitoring in maintenance mode

Posted: Thu Jul 29, 2021 11:08 am
by vaadaud
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.

Re: vmware monitoring in maintenance mode

Posted: Thu Jul 29, 2021 7:10 pm
by ssax
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?

Re: vmware monitoring in maintenance mode

Posted: Thu Jul 29, 2021 9:39 pm
by vaadaud
we are pointing checks to the vCenter

Re: vmware monitoring in maintenance mode

Posted: Fri Jul 30, 2021 3:54 pm
by ssax
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:

Code: Select all

sed -i '/maintenance mode, check skipped/d' /usr/local/nagios/libexec/check_vmware_api.pl
Try that and see if it works for you (back up your current plugin first).