check_cluster_process

Description

This plugin is used to monitor whether a particular service is running on more than one of the nodes in a cluster.

Compatible versions

  • OpMon 5.3 or higher.

Requirements

  • perl 5.8.8 or higher
  • strict;
  • Getopt::Long;
  • POSIX;
  • File::Basename;
  • nagios-plugins
  • nrpe-2x

Example of use and return of command

You must access the command directory before running it trough the following path: /usr/local/opmon/libexec/

On this example the return of command is CRITICAL, because it is running on 2 nodes at the same time.

[root@opmon]# ./check_cluster_process.pl -H <IP ou NOME>, -c process -a "1: 1: rtgpoll"
: Running
: Running

On this example the return of command is OK, because it is running just on 1 nodo.

[root@opmon]# .check_cluster_process.pl -H <IP ou NOME>:5666,<IP ou NOME>:5667 -c process -a "1: 1: rtgpoll"
: Not Running 
: Running

On this example the return of command is CRITICAL, because it is not running in any nodo.

[root@opmon]# .check_cluster_process.pl -H <IP ou NOME>,<IP ou NOME>-c process -a "1: 1: rtgpoll"
: Not Running
: Not Running

 Compatibility

  • CentOS 5.9 or higher
Updated on 01/09/2021

Was this article helpful?

Ficou com alguma dúvida?

Perguntas & Respostas

Participe da nossa comunidade e tire dúvidas ou compartilhe respostas e ideias.

Participar

Professional Support

Não encontrou a resposta que procura? Não se preocupe, estamos aqui para ajudar!

Abrir chamado

Treinamento Online

Através da plataforma Udemy, você encontra todos os treinamentos das nossas soluções.

Inscreva-se