Pular para o conteúdo principal
Versão 4.0.0

Gerenciamento do Serviço de Alertas

Confira a seguir os comandos disponíveis para efetuar o controle do Serviço de Alertas.

Sintaxe do Comando
Terminal input
    pgsmart obs notifier [OPERAÇÃO] [FLAGS]

Operações:

  • Status Situação do Serviço de Alertas.
  • Iniciar Serviço de Alertas.
  • Parar Serviço de Alertas.
  • Reiniciar Serviço de Alertas.
  • Recarregar Serviço de Alertas.

Flags:

  • -a, --agent=<agent> => Alias, hostname ou IP do servidor onde o PgSmart Agent deseja está instalado.
  • -h, --help => Ajuda
  • -q, --quiet => Execução não interativa para controle dServiço de Alertas(status|start|stop|restart|reload)
Execução Não-Interativa
Terminal input
    pgsmart obs notifier [status|start|stop|restart|reload] -q -a `<agent>`
Execução Interativa

Situação do Serviço de Alertas

Terminal input
        pgsmart obs notifier status
  1. Selecione o Agente do PgSmart ou registrar um novo.

    Figura 1 - Exportador de Métricas - notifier - Status
    Figura 1 - Exportador de Métricas - notifier - Status

Parar Serviço de Alertas

Terminal input
    pgsmart obs notifier stop
  1. Selecione o Agente do PgSmart ou registrar um novo.

    Figura 3 - Exportador de Métricas - notifier - Parada
    Figura 3 - Exportador de Métricas - notifier - Parada

Iniciar Serviço de Alertas

Terminal input
    pgsmart obs notifier start
  1. Selecione o Agente do PgSmart ou registrar um novo.

    Figura 2 - Exportador de Métricas - notifier - Inicializa
    Figura 2 - Exportador de Métricas - notifier - Inicializa

Reiniciar Serviço de Alertas

Terminal input
    pgsmart obs notifier restart
  1. Selecione o Agente do PgSmart ou registrar um novo.

    Figura 4 - Exportador de Métricas - notifier - Reinicializa
    Figura 4 - Exportador de Métricas - notifier - Reinicializa

Recarregar Serviço de Alertas

Terminal input
    pgsmart obs notifier reload
  1. Selecione o Agente do PgSmart ou registrar um novo.

    Figura 5 - Exportador de Métricas - notifier - Recarga
    Figura 5 - Exportador de Métricas - notifier - Recarga