Herramientas de usuario

Herramientas del sitio


manuales:nagios

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
manuales:nagios [2015/04/07 15:03] – [Plugins] cayumanuales:nagios [2015/09/15 17:47] (actual) – [Sitios de consultas] cayu
Línea 6356: Línea 6356:
 } }
 ?> ?>
 +</file>
 +
 +En Python
 +<file python check_xml_afip.php>
 +#!/usr/bin/python
 +import errno, sys, urllib2
 +from xml.etree.ElementTree import XML
 +
 +response = urllib2.urlopen('https://serviciosjava.afip.gob.ar/wsmtxca/services/MTXCAService/dummy')
 +xml_afip = XML(response.read())
 +
 +dummy_afip = {}
 +contador = 0
 +
 +for elem in xml_afip:
 +    dummy_afip[elem.tag]=elem.text
 +    if elem.text != 'OK':
 +     if contador <= 0:
 + contador = 1
 +     else:
 + contador = 1
 +
 +if contador != 1:
 +    print "OK - ",dummy_afip,"|rc=0"
 +    sys.exit(0)
 +else:
 +    print "CRITICAL - ",dummy_afip,"|rc=1"
 +    sys.exit(1)
 </file> </file>
  
Línea 6652: Línea 6680:
 </file> </file>
  
 +En perl
 +<file perl check_microstrategy.pl>
 +#!/usr/bin/perl
 +
 +open SSH, ("ssh ".$ARGV[0]." -l monitoreo \"sudo /msis/var/opt/MicroStrategy/bin/mstrctl -s IntelligenceServer gs\" | grep state|  sed 's/<[^>]*[>]//g' | sed 's/\\t//g' | sed 's/\\n//g'|");
 +
 +while ( defined( my $line = <SSH> )  ) {
 +    chomp($line);
 +    if ($line eq "running") {
 + print "OK - Proceso MicroStrategy corriendo (".$line.")\n";
 + exit 0;
 +    } else {
 + print "CRITICAL - Hay un problema con el proceso MicroStrategy (".$line.")\n";
 + exit 2;
 +  }
 +}
 +close SSH;
 +</file>
  
 **count_archlogs.pl** **count_archlogs.pl**
Línea 6865: Línea 6911:
 http://signa.googlecode.com/svn/trunk/entrega2/anexos/Anexo%20F%20-%20Descripci%C3%B3n%20de%20los%20Sistemas%20Finalistas.doc \\ http://signa.googlecode.com/svn/trunk/entrega2/anexos/Anexo%20F%20-%20Descripci%C3%B3n%20de%20los%20Sistemas%20Finalistas.doc \\
 https://code.google.com/p/signa/ https://code.google.com/p/signa/
 +
 +
 +TRABAJO DE GRADO PREVIO A LA OBTENCIÓN DEL TÍTULO DE INGENIERÍA EN ELECTRÓNICA Y REDES DE COMUNICACIÓN \\
 +OPTIMIZACIÓN DE LA ADMINISTRACIÓN EN LA RED DE DATOS DE LA UNIVERSIDAD TÉCNICA DEL NORTE IMPLEMENTANDO UN SISTEMA DE MONITOREO DE EQUIPOS Y SERVICIOS UTILIZANDO SOFTWARE LIBRE \\
 +
 +http://repositorio.utn.edu.ec/handle/123456789/4466 \\
 +http://repositorio.utn.edu.ec/bitstream/123456789/4466/1/04%20RED%20055%20TESIS.pdf \\
  
  
manuales/nagios.1428418987.txt.gz · Última modificación: 2015/04/07 15:03 (editor externo)