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"

监控页面配置

 

 

 

原文地址:https://www.cnblogs.com/Wshile/p/12857283.html