Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
[root@zabbix /usr/share/fonts/dejavu]#zabbix_get -s 172.16.1.8 -k tcp_22
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
0
场景:因为使用了netstat -p参数。
权限问题,zabbix_agentd是zabbix用户启动的,默认不能执行netstat -p等命令,导致从服务器取到的自动发现脚本为空
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
解决方法 :
chmod +s /bin/netstat
chmod +s 是什么意思呢?
为了方便普通用户执行一些特权命令,SUID/SGID程序允许普通用户以root身份暂时执行该程序,并在执行结束后再恢复身份。
欢迎来撩 : 汇总all