vmware monitoring in maintenance mode

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vaadaud
Posts: 12
Joined: Thu Apr 29, 2021 6:06 am

vmware monitoring in maintenance mode

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: vmware monitoring in maintenance mode

Post 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?
vaadaud
Posts: 12
Joined: Thu Apr 29, 2021 6:06 am

Re: vmware monitoring in maintenance mode

Post by vaadaud »

we are pointing checks to the vCenter
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: vmware monitoring in maintenance mode

Post 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).
Locked