OCS inventory | agent 运行问题 | 系统日志 | exit code is 4 | error 500

以下错误是服务端数据库用户权限不够导致的,请参考官方文档

官方提示:

Error 500:

Solution: OCS engine can’t comunicate with mysql server. Probably due to a wrong mysql account. You have to check z-ocsinventory-server.conf exactly theses few lines

错误信息如下

Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.

Failed to send Prolog <HTTP Status Code #500>
  • 开始菜单右键选择事件查看器

  • 点开Windows日志-应用程序可以看到
    存在一个错误 Failed to load/parse last inventory state
    右下角OCS图标右键点击run OCS inventory NG Agent now
    虽然显示successfully,但是并没有收集到这个错误。
    日志中多出来一个错误Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.

查看OCSInventory.log,错误信息如下:

Starting OCS Inventory NG Agent on Tuesday, October 08, 2019 21:16:40.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.0.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.6.0.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
发布了134 篇原创文章 · 获赞 57 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/stone_fall/article/details/102235800