安装OP5 Monitor / Nagios:

时间:2016-10-07 06:40:50

标签: linux oracle oracle11g nagios

在实施监控数据库的情况下,oracle控制方法需要明确的标准应用程序用户名和密码。如何绕过需要输入明文密码登录数据库的oracle,这在OP5 Monitor和Nagios配置文件系统的屏幕上是可见的。?

1 个答案:

答案 0 :(得分:4)

有几种可能性。

通用解决方案

使用$ USERnn $宏,它们在resources.cfg中定义。有关如何使用此功能的更多信息:https://kb.op5.com/display/DOC/Macros#Macros-Custommacros USER宏在图形用户界面中不可见,但任何有权访问resources.cfg配置文件的人都可以读取。 有关用户宏的Naemon文档,请参阅http://www.naemon.org/documentation/usersguide/macrolist.html#user

check_oracle插件的具体解决方案(如果您正在使用的话)

在auth文件中指定凭据。从插件的帮助文本:

  -f <auth-file> can be used instead of -u <username> -p <password>. If both
options are used the <auth-file> will override -u/-p. The <authfile> should
be a textfile (readable by the nrpe-user) containing two rows. File format:
username=<username>
password=<password>

特定于OP5监视器的解决方案

使用以OP5SECRET为前缀的自定义变量。遗憾的是,这些文档记录不完整,但请查看使用此功能的独立VMware ESXi虚拟主机管理包。

完全披露:我在OP5担任开发团队负责人。