Nagios: Unterschied zwischen den Versionen

Aus Gude Systems GmbH
Zur Navigation springen Zur Suche springen
Zeile 17: Zeile 17:
 
===Nagios Configuration===
 
===Nagios Configuration===
  
*Command*
+
*Command
 
  define command {
 
  define command {
 
   command_name  check_gudesensor
 
   command_name  check_gudesensor
Zeile 23: Zeile 23:
 
  }
 
  }
  
*Services*
+
*Services
 
  define service {
 
  define service {
 
   use                  generic-service
 
   use                  generic-service
Zeile 39: Zeile 39:
  
  
*Nagiosgrapher*
+
*Nagiosgrapher
  
 
  define ngraph{
 
  define ngraph{
Zeile 50: Zeile 50:
 
     rrd_color              00a000
 
     rrd_color              00a000
 
   }
 
   }
 +
 
   define ngraph{
 
   define ngraph{
 
     service_name            Temp
 
     service_name            Temp

Version vom 21. April 2016, 10:17 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
 }