Check ESXI Hardware
Posted: Thu Oct 05, 2017 4:16 am
Hi Nagios,
I use Nagios 4.3.2 version. I have configure that the site can monitor my VMWare hosts. It works fine
Please see attachment. Now I only monitor "host_alive":
# my example
###############################################################################
#
# BELOW HOST FOR GROUP DEFINITIONS
#
###############################################################################
define hostgroup{
hostgroup_name vmware-servers ; The name of the hostgroup
alias vmware servers ; Long name of the group
members VMWARE6,VMWARE7,VMWARE8,VMWARE9
}
define host {
host_name VMWARE6
use linux-server
alias VMWARE6
address xxx.xx.xx.xx
hostgroups vmware-servers
max_check_attempts 3
check_period 24x7
check_command check-host-alive
notification_interval 60
notification_period 24x7
}
aso.....
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
define service{
use generic-service
host_name VMWARE6
service_description Host Alive
check_command check-host-alive
}
Now I would like monitor the hardware of my ESXI/HOSTS. I have already the Nagios Plugin and "Monitoring Plugin: check_esxi_hardware.py" and python-pywhem installed. How should I configure this ? Below you see what I already have:
# my example
# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$
}
Do I have to configure a group definition for those meaning esx6,esx7,esx8,esx9 and a serrcvice definition for those ? I mean - they use the same ip.
Could any tell me how this works. We use Fujitsu Simens RX2540M1 Sercver for our VMWare.
Please see my attachments.
I use Nagios 4.3.2 version. I have configure that the site can monitor my VMWare hosts. It works fine
# my example
###############################################################################
#
# BELOW HOST FOR GROUP DEFINITIONS
#
###############################################################################
define hostgroup{
hostgroup_name vmware-servers ; The name of the hostgroup
alias vmware servers ; Long name of the group
members VMWARE6,VMWARE7,VMWARE8,VMWARE9
}
define host {
host_name VMWARE6
use linux-server
alias VMWARE6
address xxx.xx.xx.xx
hostgroups vmware-servers
max_check_attempts 3
check_period 24x7
check_command check-host-alive
notification_interval 60
notification_period 24x7
}
aso.....
###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################
define service{
use generic-service
host_name VMWARE6
service_description Host Alive
check_command check-host-alive
}
Now I would like monitor the hardware of my ESXI/HOSTS. I have already the Nagios Plugin and "Monitoring Plugin: check_esxi_hardware.py" and python-pywhem installed. How should I configure this ? Below you see what I already have:
# my example
# 'check_esxi_hardware' command definition
define command{
command_name check_esxi_hardware
command_line $USER1$/check_esxi_hardware.py -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ -V $ARG3$
}
Do I have to configure a group definition for those meaning esx6,esx7,esx8,esx9 and a serrcvice definition for those ? I mean - they use the same ip.
Could any tell me how this works. We use Fujitsu Simens RX2540M1 Sercver for our VMWare.
Please see my attachments.