manuales:nagios
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
manuales:nagios [2015/04/07 15:03] – [Plugins] cayu | manuales:nagios [2015/09/15 17:47] (actual) – [Sitios de consultas] cayu | ||
---|---|---|---|
Línea 6356: | Línea 6356: | ||
} | } | ||
?> | ?> | ||
+ | </ | ||
+ | |||
+ | En Python | ||
+ | <file python check_xml_afip.php> | ||
+ | # | ||
+ | import errno, sys, urllib2 | ||
+ | from xml.etree.ElementTree import XML | ||
+ | |||
+ | response = urllib2.urlopen(' | ||
+ | xml_afip = XML(response.read()) | ||
+ | |||
+ | dummy_afip = {} | ||
+ | contador = 0 | ||
+ | |||
+ | for elem in xml_afip: | ||
+ | dummy_afip[elem.tag]=elem.text | ||
+ | if elem.text != ' | ||
+ | if contador <= 0: | ||
+ | contador = 1 | ||
+ | else: | ||
+ | contador = 1 | ||
+ | |||
+ | if contador != 1: | ||
+ | print "OK - ", | ||
+ | sys.exit(0) | ||
+ | else: | ||
+ | print " | ||
+ | sys.exit(1) | ||
</ | </ | ||
Línea 6652: | Línea 6680: | ||
</ | </ | ||
+ | En perl | ||
+ | <file perl check_microstrategy.pl> | ||
+ | # | ||
+ | |||
+ | open SSH, ("ssh " | ||
+ | |||
+ | while ( defined( my $line = <SSH> ) ) { | ||
+ | chomp($line); | ||
+ | if ($line eq " | ||
+ | print "OK - Proceso MicroStrategy corriendo (" | ||
+ | exit 0; | ||
+ | } else { | ||
+ | print " | ||
+ | exit 2; | ||
+ | } | ||
+ | } | ||
+ | close SSH; | ||
+ | </ | ||
**count_archlogs.pl** | **count_archlogs.pl** | ||
Línea 6865: | Línea 6911: | ||
http:// | http:// | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | 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:// | ||
+ | http:// | ||
manuales/nagios.1428418987.txt.gz · Última modificación: 2015/04/07 15:03 (editor externo)