obagent部署完成curl取值异常

【产品名称】obagent

【产品版本】obagent-1.0.0

【问题描述】obagent部署完成curl取值异常

1.obagent安装完成后,采用单机3个obagent方式部署,查看服务正常:

[admin@ob3 ~]$ obd cluster display obagent Get local repositories and plugins ok Open ssh connection ok Cluster status check ok ±----------------------------------------------+ | obagent | ±----------±------------±-----------±-------+ | ip | server_port | pprof_port | status | ±----------±------------±-----------±-------+ | 127.0.0.1 | 8088 | 8089 | active | | 127.0.0.1 | 9088 | 9089 | active | | 127.0.0.1 | 10088 | 10089 | active | ±----------±------------±-----------±-------+

2.执行curl异常:

[admin@ob3 ~]$ curl --user admin:rundba http://127.0.0.1:8088/metrics/ob/basic 404 page not found[admin@ob3 ~]$ [admin@ob3 ~]$ curl --user admin:rundba http://127.0.0.1:8088/metrics/ob/basic | grep ob_cache_size_bytes % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18 100 18 0 0 18595 0 --:–:-- --:–:-- --:–:-- 18000

obagent 有个账户要连接 ob集群的sys租户,在配置文件里。

请看在sys租户 里是否创建 了这个账户。

1.admin用户没有创建

MySQL [mysql]> select user,host,password from user;
+------------+------+-------------------------------------------+
| user    | host | password                 |
+------------+------+-------------------------------------------+
| root    | %  | *63a41a6ec2b102f084e64e301477e21c01775ff5 |
| ORAAUDITOR | %  | *9753e2cf9d2dcd5e13c052f581c310ac70c62723 |
| proxyro  | %  |                      |
+------------+------+-------------------------------------------+
3 rows in set (0.086 sec)