snmp_check ゞ 浴缸里的玫瑰 2022-08-25 05:26 156阅读 0赞 \# 'check\_system' command definition define command\{ command\_name check\_system command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o sysDescr.0 \} \# 'snmp\_load' command definition define command\{ command\_name snmp\_load command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3 -w :'$ARG2$',:'$ARG3$',:'$ARG4$' -c :'$ARG5$',:'$ARG6$',:'$ARG7$' -l load \} \# 'snmp\_cpustats' command definition define command\{ command\_name snmp\_cpustats command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0,.1.3.6.1.4.1.2021.11.11.0 -l 'CPU usage (user system idle)' -u '%' \} \# 'snmp\_procname' command definition define command\{ command\_name snmp\_procname command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.2.1.5.'$ARG2$' -w '$ARG3$':'$ARG4$' -c '$ARG5$':'$ARG6$' \} \# 'snmp\_disk' command definition define command\{ command\_name snmp\_disk command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.9.1.7.'$ARG2$',.1.3.6.1.4.1.2021.9.1.9.'$ARG2$' -w '$ARG3$':,:'$ARG4$' -c '$ARG5$':,:'$ARG6$' -u 'kB free (','% used)' -l 'disk space' \} \# 'snmp\_mem' command definition define command\{ command\_name snmp\_mem command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.4.6.0,.1.3.6.1.4.1.2021.4.5.0 -w '$ARG2$': -c '$ARG3$': \} \# 'snmp\_uptime' command definition define command\{ command\_name snmp\_uptime command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o sysUpTime.0 \} \# 'snmp\_swap' command definition define command\{ command\_name snmp\_swap command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.2021.4.4.0,.1.3.6.1.4.1.2021.4.3.0 -w '$ARG2$': -c '$ARG3$': \} \# 'snmp\_procs' command definition define command\{ command\_name snmp\_procs command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrSystem.hrSystemProcesses -w :'$ARG2$' -c :'$ARG3$' -l processes \} \# 'snmp\_users' command definition define command\{ command\_name snmp\_users command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrSystem.hrSystemNumUsers -w :'$ARG2$' -c :'$ARG3$' -l users \} \# 'snmp\_mem2' command definition define command\{ command\_name snmp\_mem2 command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$' \} \# 'snmp\_swap2' command definition define command\{ command\_name snmp\_swap2 command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$' \} \# 'snmp\_mem3' command definition define command\{ command\_name snmp\_mem3 command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$' \} \# 'snmp\_swap3' command definition define command\{ command\_name snmp\_swap3 command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$',host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.'$ARG2$' -w '$ARG3$' -c '$ARG4$' \} \# 'snmp\_disk2' command definition define command\{ command\_name snmp\_disk2 command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.'$ARG2$' -w '$ARG3$' -c '$ARG4$' \} \# 'snmp\_tcpopen' command definition define command\{ command\_name snmp\_tcpopen command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o tcp.tcpCurrEstab.0 -w '$ARG2$' -c '$ARG3$' \} \# 'snmp\_tcpstats' command definition define command\{ command\_name snmp\_tcpstats command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o tcp.tcpActiveOpens.0,tcp.tcpPassiveOpens.0,tcp.tcpInSegs.0,tcp.tcpOutSegs.0,tcp.tcpRetransSegs.0 -l 'TCP stats' \} \# 'check\_snmp\_bgpstate' command definition define command\{ command\_name check\_snmp\_bgpstate command\_line /usr/lib/nagios/plugins/check\_bgpstate '$HOSTADDRESS$' -c '$ARG1$' \} \# 'check\_netapp\_uptime' command definition define command\{ command\_name check\_netapp\_uptime command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.2.1.1.3.0 --delimiter=')' -l "Uptime is" \} \# 'check\_netapp\_cpuload' command definition define command\{ command\_name check\_netapp\_cpuload command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.789.1.2.1.3.0 -w 90 -c 95 -u '%' -l "CPU LOAD " \} \# 'check\_netapp\_numdisks' command definition define command\{ command\_name check\_netapp\_numdisks command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.789.1.6.4.1.0,.1.3.6.1.4.1.789.1.6.4.2.0,.1.3.6.1.4.1.789.1.6.4.8.0,.1.3.6.1.4.1.789.1.6.4.7.0 -u 'Total Disks','Active','Spare','Failed' -l "" \} \# 'check\_compaq\_thermalCondition' command definition define command\{ command\_name check\_compaq\_thermalCondition command\_line /usr/lib/nagios/plugins/check\_snmp -H '$HOSTADDRESS$' -C '$ARG1$' -o .1.3.6.1.4.1.232.6.2.1.0,.1.3.6.1.4.1.232.6.2.2.0,.1.3.6.1.4.1.232.6.2.3.0,.1.3.6.1.4.1.232.6.2.4.0 -u 'ThermalCondition','ThermalTemp','ThermalSystem','ThermalCPUFan' -w 2:2,2:2,2:2,2:2 -c 1:2,1:2,1:2,1:2 -l "Thermal status " \}
还没有评论,来说两句吧...