Nagios: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Mb (Diskussion | Beiträge) |
Mb (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
=Nagios= | =Nagios= | ||
+ | ==gudeads check_gude.py == | ||
+ | ===Download=== | ||
+ | * https://github.com/gudeads/check_gude.py | ||
+ | |||
+ | ===Test=== | ||
+ | ./check_gude.py -H esb7213-3.gudetest --sensor 53.0.0 --nagios -w 20 -c 30 --label Temp --unit C | ||
+ | WARNING: Temp1=24.96C (w: 20, c: 30, op:>) | ||
+ | esb7213-3.gudetest | Temp1=24.96C;20;30 | ||
+ | |||
+ | ===Nagios Configuration=== | ||
+ | *Command | ||
+ | define command { | ||
+ | command_name check_gudesensor_py | ||
+ | command_line /usr/local/bin/check_gude.py -H '$HOSTADDRESS$' --sensor '$ARG1$' --nagios --warning $ARG2$ --critical $ARG3$ --operator "$ARG4$" --label "$ARG5$" --unit "$ARG6$" | ||
+ | } | ||
+ | |||
+ | *Services | ||
+ | define service { | ||
+ | use generic-service | ||
+ | host_name esb7213-3.gudetest | ||
+ | service_description Temp1 | ||
+ | check_command check_gudesensor_py!53.0.0!35!40!>!Temp!C | ||
+ | check_interval 1 | ||
+ | } | ||
+ | |||
+ | define service { | ||
+ | use generic-service | ||
+ | host_name esb7213-3.gudetest | ||
+ | service_description Hygro1 | ||
+ | check_command check_gudesensor_py!53.0.1!60!70!>!Hygro!% | ||
+ | check_interval 1 | ||
+ | } | ||
+ | |||
==netways Nagios Plugin check_gude (SNMP)== | ==netways Nagios Plugin check_gude (SNMP)== |
Version vom 21. Januar 2019, 12:40 Uhr
Nagios
gudeads check_gude.py
Download
Test
./check_gude.py -H esb7213-3.gudetest --sensor 53.0.0 --nagios -w 20 -c 30 --label Temp --unit C WARNING: Temp1=24.96C (w: 20, c: 30, op:>) esb7213-3.gudetest | Temp1=24.96C;20;30
Nagios Configuration
- Command
define command { command_name check_gudesensor_py command_line /usr/local/bin/check_gude.py -H '$HOSTADDRESS$' --sensor '$ARG1$' --nagios --warning $ARG2$ --critical $ARG3$ --operator "$ARG4$" --label "$ARG5$" --unit "$ARG6$" }
- Services
define service { use generic-service host_name esb7213-3.gudetest service_description Temp1 check_command check_gudesensor_py!53.0.0!35!40!>!Temp!C check_interval 1 }
define service { use generic-service host_name esb7213-3.gudetest service_description Hygro1 check_command check_gudesensor_py!53.0.1!60!70!>!Hygro!% check_interval 1 }
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 }