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

 这样子就解决了问题

相关文章:

  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-09-01
  • 2022-03-05
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案