Nagios: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Mb (Diskussion | Beiträge) |
Mb (Diskussion | Beiträge) |
||
| Zeile 60: | Zeile 60: | ||
rrd_color a00000 | rrd_color a00000 | ||
} | } | ||
| + | |||
| + | ===Screenshot=== | ||
| + | [[Datei:Netways check gude hygro.png]] | ||
Version vom 21. April 2016, 10:20 Uhr
Nagios
netways Nagios Plugin check_gude (SNMP)
Download
Test
./check_gude.pl --host 10.113.0.26 --community=public -k Temp1 -w 30 -c 35
Expert Sensor Box 7211-0: WARNING - WARNING: Temp1=30.2C (w:30, c:35) sysDescr: Expert Sensor Box 7211-0 enterprise oid: .1.3.6.1.4.1.28507.31 Temp1 = 302 | Temp1=30.2C;30;35
Nagios Configuration
- Command
define command {
command_name check_gudesensor
command_line /usr/local/bin/check_gude.pl -H '$HOSTADDRESS$' -k $ARG1$ -w $ARG2$ -c $ARG3$
}
- Services
define service {
use generic-service
host_name 10.113.0.26
service_description Temp1
check_command check_gudesensor!Temp1!30!35
}
define service {
use generic-service
host_name 10.113.0.26
service_description Hygro1
check_command check_gudesensor!Hygro1!60!70
}
- Nagiosgrapher
define ngraph{
service_name Hygro
graph_log_regex Hygro\d+=(\d+\.\d+)%
graph_value RTA
graph_units %
graph_legend humidity
rrd_plottype AREA
rrd_color 00a000
}
define ngraph{
service_name Temp
graph_log_regex Temp\d+=(\d+\.\d+)C
graph_value RTA
graph_units C
graph_legend temperature
rrd_plottype LINE2
rrd_color a00000
}
