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/03/25 13:45] – [TIP´s varios] cayu | manuales:nagios [2015/09/15 17:47] (actual) – [Sitios de consultas] cayu | ||
---|---|---|---|
Línea 2871: | Línea 2871: | ||
< | < | ||
define hostgroup { | define hostgroup { | ||
- | hostgroup_name | + | hostgroup_name |
- | alias | + | alias |
- | members | + | members |
} | } | ||
</ | </ | ||
Línea 2901: | Línea 2901: | ||
Host que son miembros del grupo, debemos ingresar el host_name de cada uno separado por comas "," | Host que son miembros del grupo, debemos ingresar el host_name de cada uno separado por comas "," | ||
- | |||
//Se deberá crear el archivo {nagios-dir}/ | //Se deberá crear el archivo {nagios-dir}/ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
==== Agregando Hosts ==== | ==== Agregando Hosts ==== | ||
Línea 5114: | Línea 5104: | ||
Esta versión es mas actualizada que la anterior y tiene mejor mantenimiento. Deberemos tener el paquete nwrfcsdk, para proceder a su compilación | Esta versión es mas actualizada que la anterior y tiene mejor mantenimiento. Deberemos tener el paquete nwrfcsdk, para proceder a su compilación | ||
+ | < | ||
+ | check_sap | ||
+ | </ | ||
https:// | https:// | ||
Línea 6364: | 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 6369: | Línea 6389: | ||
En Brasil se utiliza la Nota Fiscal eletrônica, | En Brasil se utiliza la Nota Fiscal eletrônica, | ||
+ | |||
+ | **Referencias útiles de NFE** | ||
+ | |||
+ | * Portal Principal | ||
+ | * http:// | ||
+ | |||
+ | * Mapa de disponibilidad de servicio | ||
+ | * http:// | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
== check_heartbeat == | == check_heartbeat == | ||
Línea 6647: | 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 6860: | 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.1427291120.txt.gz · Última modificación: 2015/03/25 13:45 por cayu