Zabbix监控——inode监控

Zabbix监控——inode监控

agent端配置

创建监控脚本

[root@wshile ~]# vi /home/ctchat/shell/inode.sh
#!/bin/bash
df -i|grep nfs|awk -F% '{print $(NF-1)}'|awk '{print $NF}'
[root@wshile ~]# chmod +x /home/ctchat/shell/inode.sh

配置agent

[root@wshile ~]# vi /etc/zabbix/zabbix_agentd.d/userparameter_web.conf 
UserParameter=innode_status,/bin/sh /home/ctchat/shell/inode.sh
[root@wshile ~]#  /etc/init.d/zabbix-agent restart

 zabbix-server端测试

[root@wshile ~]# zabbix_get -s 172.16.209.21 -p 10050 -k "innode_status"

监控页面配置

 

 

 

posted @ 2020-05-09 14:32  Wshile  阅读(746)  评论(0编辑  收藏  举报