如何解决我已经在Zabbix 5.0.2中将Template DB MySQL模板添加到2个服务器中我可以看到指标标题,但看不到指标值
我看到一个独特的问题,我已经从两个不同的主机上部署了“ Template DB MysqL”,但是无法检索指标值。
我已经创建并测试了"/etc/zabbix/zabbix_agentd.d/userparameter_MysqL.conf"
文件,并且已经创建了"/var/lib/zabbix/.my.cnf"
文件。我还在"/etc/zabbix/zabbix_agentd.conf"
文件中包含了该文件的路径。
我可以从zabbiz_agentd CLI zabbix_agentd -t MysqL.Server-Status
MysqL.Server-Status [t|{"Aborted_clients":"6","Aborted_connects":"1","Access_denied_errors":"0","Acl_column_grants":"0","Acl_database_grants":"0","Acl_function_grants":"0","Acl_procedure_grants":"0","Acl_package_spec_grants":"0","Acl_package_body_grants":"0","Acl_proxy_users":"0","Acl_role_grants":"0","Acl_roles":"0","Acl_table_grants":"0","Acl_users":"0","Aria_pagecache_blocks_not_flushed":"0","Aria_pagecache_blocks_unused":"15706","Aria_pagecache_blocks_used":"10","Aria_pagecache_read_requests":"27900","Aria_pagecache_reads":"25","Aria_pagecache_write_requests":"242","Aria_pagecache_writes":"242","Aria_transaction_log_syncs":"0","binlog_commits":"0","binlog_group_commits":"0","binlog_group_commit_trigger_count":"0","binlog_group_commit_trigger_lock_wait":"0","binlog_group_commit_trigger_timeout":"0","binlog_snapshot_file":"","binlog_snapshot_position":"0","binlog_bytes_written":"0","binlog_cache_disk_use":"0","binlog_cache_use":"0","binlog_stmt_cache_disk_use":"0","binlog_stmt_cache_use":"0","Busy_time":"0.000000","Bytes_received":"5490960","Bytes_sent":"28215386"--snip--
在代理登录调试4中,我看到以下消息:
820133:20201022:104034.062 Requested [MysqL.version["localhost","3306"]] 820133:20201022:104034.062 Sending back [ZBX_NOTSUPPORTED: Item does not allow parameters.
但前端未显示任何指标。有人知道怎么回事吗?
在此先感谢您的帮助!
解决方法
好的,我发现模板宏{$ MYSQL.USER}已自动将用户名的首字母更正为大写。当我更正指标开始流入时。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。