Checking a Service Health State in vCenter using vmon-cli
search cancel

Checking a Service Health State in vCenter using vmon-cli

book

Article ID: 415673

calendar_today

Updated On:

Products

VMware vCenter Server 8.0 VMware vCenter Server

Issue/Introduction

This article will show you how to check the health sate of a service using vmon-cli.
The vmon is a service that checks the health of services in vCenter Server, 
The following command displays a list of services that vmon is monitoring:
(Access the Bash Shell of the vCenter Server appliance and execute the command.)

# vmon-cli -l 

Below is an example of checking the services monitored by vmon in vCenter 8.0U3.

[email protected] [ ~ ]# vmon-cli -l
analytics
applmgmt
certificateauthority
certificatemanagement
cis-license
content-library
eam
envoy
envoy-hgw
envoy-sidecar
hvc
imagebuilder
infraprofile
lookupsvc
netdumper
observability-vapi
perfcharts
pschealth
rbd
rhttpproxy
sca
sps
sts
topologysvc
trustmanagement
updatemgr
vapi-endpoint
vc-ws1a-broker
vcha
vlcm
vmcam
vmonapi
vmware-postgres-archiver
vmware-vpostgres
vpxd
vpxd-svcs
vsan-health
vsm
vsphere-ui
vstats
vtsdb
wcp

Environment

vCenter Server 8.0.X
vCenter Server 7.0.X

Resolution

To check a servie health satate, executing the following command:

# vmon-cli -s <Service Name>

For <Service Name>, enter the service name by executing the vmon-cli -l.

Below is an example to check the health state of vpxd:

root@vcsa01 [ ~ ]# vmon-cli -s vpxd
Name: vpxd
Starttype: AUTOMATIC
RunState: STARTED
RunAsUser: vpxd
CurrentRunStateDuration(ms): 511
HealthState: HEALTHY                    <===!!!
FailStop: N/A
MainProcessId: 6142