- 论坛徽章:
- 14
|
为了监控Windows主机上面的网卡流量,我配置了SNMP,并且开放了主机和服务器的SNMP端口,配置了共同体名,Nagios配置文件是这样写的- define service{
- use generic-service
- host_name IP
- service_description Bandwidth
- check_command check_snmp_int!nagios!Broadcom NetXtreme Gigabit Ethernet!2!50!10!60
- #check_command check_snmp_int!nagios!eth0!2!50!10!60
- is_volatile 0
- max_check_attempts 3
- check_interval 1
- retry_interval 1
- check_period 24x7
- notification_interval 5
- notification_period 24x7
- notification_options w,u,c,r
- register 1
- }
复制代码 主要的困惑在这里- check_snmp_int!nagios!Broadcom NetXtreme Gigabit Ethernet!2!50!10!60
复制代码 网卡名字那项不知道该填什么,我还尝试过把网卡名“本地连接”改成“eth0”,配置文件也改成eth0,但是依然报错
|
|