求助ZABBIX问题在线等求大神
1个回答
展开全部
使用下面指令和代码就可以了: 在服务器(统称为服务端)上192.168.218.130运行一下命令: ./zabbix_get -s 192.168.218.129 -k oracle[_buffer_cache] (从客户端192.168.218.129上获取buffer_cache) 得到的结果是: SQL*Plus: Release 11.2.0.2.0 Production on Thu Jan 24 20:53:52 2013 Copyright (c) 1982, 2010, Oracle. All rights reserved. SQL> conn mon/123456@test ERROR: ORA-12154: TNS:could not resolve the connect identifier specified SQL> SP2-0640: Not connected 在被监听的机子(统称为客户段)上,也就是192.168.218.129,运行一下命令,测试是否能获取到oracle运行参数 ./zabbix_agentd -t oracle[_buffer_cache] (在本地上运行zabbix_agent测试看能否获取buffer_cache) 运行结果如下: oracle[_buffer_cache] [t| SQL*Plus: Release 11.2.0.2.0 Production on Thu Jan 24 20:58:01 2013 Copyright (c) 1982, 2010, Oracle. All rights reserved. SQL> conn mon/123456@test Connected. SQL> TO_CHAR("SIZE(MB)" ------------------ 75497472 (这里是要获取的结果,在客户机上测试能够成功的,本来只显示数字的,我把过程都输出来。) SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询