更新后删除OMS配置 [英] OMS configuration deleted after update

查看:92
本文介绍了更新后删除OMS配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将OMS代理配置为收集apache日志.直到2018年8月13日(UTC.12:50 UTC)的最新更新(我的配置文件被删除)为止,此操作一直没有问题.

已删除文件的位置:

解决方案

你好,

您可以更改文件的权限,以便不能将其删除:

https://www.thegeekstuff.com/2011/02/sticky-bit-on-directory-file/

这不是为什么会发生的解释,但我希望它会有所帮助!


I had configured the OMS Agent to collect apache logs. This was working without problems until the last update on 13 Aug 2018 (ca. 12:50 UTC) where my configuration file was deleted.

The location of the deleted file:

/etc/opt/microsoft/omsagent/<workspace id>/conf/omsagent.d/apache_logs.conf

Any explanation on why this happened and how to prevent it?

解决方案

Hello,

You could change the permissions on the file so it cannot be deleted:

https://www.thegeekstuff.com/2011/02/sticky-bit-on-directory-file/

This is not an explanation of why it is happening but I hope it helps!


这篇关于更新后删除OMS配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆