码迷,mamicode.com
首页 > 其他好文 > 详细

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.)

时间:2020-05-02 11:33:40      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:pre   you   aof   方法   解决方法   登陆   show   roo   bin   

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

 这样子就解决了问题

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.)

标签:pre   you   aof   方法   解决方法   登陆   show   roo   bin   

原文地址:https://www.cnblogs.com/FengGeBlog/p/12817347.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!