Pular para o conteúdo principal
Versão Next

Gestão do Serviço de Alertas - Notifier

Apresentam-se de seguida os comandos disponíveis para controlar o Serviço de Alertas.

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

Operações:

  • Status Estado 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 está instalado
  • -h, --help => Ajuda
  • -q, --quiet => Execução não interativa para controlo do Serviç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

Estado do Serviço de Alertas

Terminal input
  pgsmart obs notifier status
  1. Selecione o Agente do PgSmart ou registe um novo.
Figura 1 - Exportador de Métricas - notifier - Status
Figura 1 - Exportador de Métricas - notifier - Status

Parar o Serviço de Alertas

Terminal input
  pgsmart obs notifier stop
  1. Selecione o Agente do PgSmart ou registe um novo.
Figura 3 - Exportador de Métricas - notifier - Paragem
Figura 3 - Exportador de Métricas - notifier - Paragem

Iniciar o Serviço de Alertas

Terminal input
  pgsmart obs notifier start
  1. Selecione o Agente do PgSmart ou registe um novo.
Figura 2 - Exportador de Métricas - notifier - Inicialização
Figura 2 - Exportador de Métricas - notifier - Inicialização

Reiniciar o Serviço de Alertas

Terminal input
  pgsmart obs notifier restart
  1. Selecione o Agente do PgSmart ou registe um novo.
Figura 4 - Exportador de Métricas - notifier - Reinicialização
Figura 4 - Exportador de Métricas - notifier - Reinicialização

Recarregar o Serviço de Alertas

Terminal input
    pgsmart obs notifier reload
  1. Selecione o Agente do PgSmart ou registe um novo.
Figura 5 - Exportador de Métricas - notifier - Recarregamento
Figura 5 - Exportador de Métricas - notifier - Recarregamento