Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Resolved syslog error: Call OptionManager.UpdateValues for object ha-adv-options on ESXi failed

I configured successfully syslog on esxi server around thousand of esxi server in my environment with Configure syslog on VMware ESXi hosts: VMware best practices. But while configuring syslog on few esxi server I receive below error. In the Esxi edit advanced option on Syslog.global.logHost it was showing A general system error occurred: internal error.

vmware vsphere esxi syslog server edit advanced options system.global.loghost a general system error occurred internal error port 514, tcp udp.png

I can see same message under Esxi >> Monitor tab >> Tasks and Events with message, Update option values: A general system error occurred: internal error

vmware vsphere esxi syslog server edit advanced options system.global.loghost a general system error occurred internal error port 514, tcp udp, esxi monitor tab, tasks update option values

I decided to chek and configure syslog advanced settings directly connecting to esxi, but was seeing different error. 

Call “OptionManager.UpdateValues” for object “ha-adv-options” on ESXi failed.

vmware esxi advanced settings a general system error occurred internal error call optionmanager updatevalues for object ha-adv-options syslog.global.loghost

First troubleshooting diagnosis should be checked is, login to esxi server using putty, then verify nslookup and ping is working for syslog server correctly. also check ports is reachable vice versa using nc -z command. In my case there was a issue with dns name resolution but IP was pinging.

vmware vsphere esxi, putty enable ssh, secure shell, nslookup, ping syslog server failed, successded, syslog error

If everything ok and you are still facing issues, to troubleshoot further on esxi putty tried set syslog using below command.
esxcli system syslog config set –loghost=syslogserver.vcloud-lab.com:514

This shown new error Got no data from process, ideally in the background it is running esxcfg-syslog command as below, and it is another command to run it.
/usr/lib/vmware/vmsyslog/bin/esxcfg-syslog --plugin=esxcli --loghost='syslogserver.vcloud-lab.com:514'

vsphere vmware esxi vsphere security documentationa information, syslog server, esxcli system syslog config set loghost, plugin, configuration error got no data from process

Next to troubleshoot it further I checked hostd.log with below command.

less /var/log/hostd.log

Upon analyzing I found it is showing errors due to some MemoryError. As it can be seen from below screenshot.

vmware vsphere esxi, ssh configuration, less logs hostd.log, memoryerror, review logs, syslog plugin esxcli issue configuring error info, Powercli

Next to resolve the same, restart syslog process daemon. First we need to know the ID number of syslog process, which can be found using command.
ps | grep -i syslog

The second number shown in the list is the process ID, using command kill ProcessID restarts syslog service daemon. Again running ps | grep -i syslog, I see it has got another ID now, it is kind of refreshed, reloaded now.

Next I can verify using same esxcli command to set syslog and it doesn't show any error message now, I also verified the same on VMware web client, configuration is modified successfully and then on syslog server checked, logs are getting gathered, everything is good.

vmware vsphere esxi , ssh, enabled shell, ps grep syslog, kill processes esxcli system syslog config set loghost python esxi process, vmsyslogd daemon, restart process linux esxi

Useful Blogs
Configure syslog on VMware ESXi hosts: VMware best practices
vSphere PowerCLI - Configure syslog on VMware ESXi hosts and Enable security profile firewall
PART 1 : INSTALLING ESXI ON VMWARE WORKSTATION HOME LAB
PART 2 : CONFIGURING ESXI ON VMWARE WORKSTATION HOME LAB
PART 3 : ACCESSING STANDALONE ESXI SERVER IN HOME LAB USING VSPHERE CLIENT

Go Back

Comment

Blog Search

Page Views

12063699

Follow me on Blogarama