manuales:nagios:capacitacion:anexo_-_comandos_externos
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:capacitacion:anexo_-_comandos_externos [2015/10/16 15:01] – cayu | manuales:nagios:capacitacion:anexo_-_comandos_externos [2015/10/16 15:05] (actual) – cayu | ||
|---|---|---|---|
| Línea 6: | Línea 6: | ||
| Description: | Description: | ||
| Allows you to acknowledge the current problem for the specified host. By acknowledging the current problem, future notifications (for the same host state) are disabled. If the " | Allows you to acknowledge the current problem for the specified host. By acknowledging the current problem, future notifications (for the same host state) are disabled. If the " | ||
| + | |||
| + | Shell Script Usage Example: | ||
| <code bash> | <code bash> | ||
| #!/bin/sh | #!/bin/sh | ||
| Línea 16: | Línea 18: | ||
| /bin/printf "[%lu] ACKNOWLEDGE_HOST_PROBLEM; | /bin/printf "[%lu] ACKNOWLEDGE_HOST_PROBLEM; | ||
| </ | </ | ||
| + | ==== ACKNOWLEDGE_SVC_PROBLEM ==== | ||
| + | Command Format: | ||
| + | ACKNOWLEDGE_SVC_PROBLEM;< | ||
| + | Description: | ||
| + | Allows you to acknowledge the current problem for the specified service. By acknowledging the current problem, future notifications (for the same servicestate) are disabled. If the " | ||
| + | |||
| + | |||
| + | Shell Script Usage Example: | ||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # This is a sample shell script showing how you can submit the ACKNOWLEDGE_SVC_PROBLEM command | ||
| + | # to Nagios. | ||
| + | |||
| + | now=`date +%s` | ||
| + | commandfile='/ | ||
| + | |||
| + | /bin/printf "[%lu] ACKNOWLEDGE_SVC_PROBLEM; | ||
| + | </ | ||
| + | ==== ADD_HOST_COMMENT ==== | ||
| + | Command Format: | ||
| + | ADD_HOST_COMMENT;< | ||
| + | |||
| + | Description: | ||
| + | Adds a comment to a particular host. If the " | ||
| + | |||
| + | |||
| + | Shell Script Usage Example: | ||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # This is a sample shell script showing how you can submit the ADD_HOST_COMMENT command | ||
| + | # to Nagios. | ||
| + | |||
| + | now=`date +%s` | ||
| + | commandfile='/ | ||
| + | |||
| + | /bin/printf "[%lu] ADD_HOST_COMMENT; | ||
| + | </ | ||
| + | |||
| + | ==== ADD_SVC_COMMENT ==== | ||
| + | |||
| + | Command Format: | ||
| + | ADD_SVC_COMMENT;< | ||
| + | |||
| + | Description: | ||
| + | Adds a comment to a particular service. If the " | ||
| + | |||
| + | |||
| + | Shell Script Usage Example: | ||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | # This is a sample shell script showing how you can submit the ADD_SVC_COMMENT command | ||
| + | # to Nagios. | ||
| + | |||
| + | now=`date +%s` | ||
| + | commandfile='/ | ||
| + | |||
| + | /bin/printf "[%lu] ADD_SVC_COMMENT; | ||
| + | </ | ||
| ===== Referencias ===== | ===== Referencias ===== | ||
| https:// | https:// | ||
manuales/nagios/capacitacion/anexo_-_comandos_externos.1445007713.txt.gz · Última modificación: 2015/10/16 15:01 por cayu
