Monitor VMware ESXi hardware without root (Nagios)

Download and configure the plugin: https://exchange.nagios.org/directory/Plugins/Operating-Systems/*-Virtual-Environments/VMWare/check_esxi_hardware-2Epy/

– Create a new user in ESXi with no access privilege, you need to login to the ESXi directly to do that.

– Enable SSH, and add nagios user to root group:
# vi /etc/group
root:x:0:root,nagios

– Check from the command line, if it works
./check_esxi_hardware.py --host https://esxihost:5989 --user file:credentials.txt --pass file:credentials.txt
OK - Server: Cisco Systems Inc.....

– Configure the credentials files to use the nagios user credentials.


Posted

in

,

by

Comments

One response to “Monitor VMware ESXi hardware without root (Nagios)”

  1. QkiZ Avatar

    How to edit group file while filesystem is read only?

Leave a Reply

Your email address will not be published. Required fields are marked *