zabbix调试脚本报错(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)

zabbix_get调试脚本报错:

[root@chaofeng sql]# zabbix_get  -s 127.0.0.1 -k pgsql.ping
(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 查看进程的命令,因为是在普通用户下执行的 netstat命令,所以权限不足

解决方法就是

登陆root用户,执行如下命令,让其它用户瞬间获得文件所有者的权限

[root@chaofeng sql]# chmod +s /bin/netstat

 这样子就解决了问题

posted @ 2020-05-02 10:59  峰哥ge  阅读(1680)  评论(0编辑  收藏  举报