Setup a Messaging Broker for super Nagios
Install packages
Install below packages:
-
yum install jmx4perl-agent
and restart ActiveMQ
-
yum install nagios-nrpe
-
yum install nagios-plugins
-
yum install grid-monitoring-org.nagiosexchange-probes
Configure packages
Once this is done, you can configure the packages.
- Add super Nagios ip address on
allowed_hosts
in /etc/nagios/nrpe.cfg
- Add below commands in the end of NRPE configuration
/etc/nagios/nrpe.cfg
and restart NRPE daemon doing service nrpe restart
command[check_activemq_proc1]=/usr/lib64/nagios/plugins/check_procs -c 1:1 -a '/usr/share/activemq/bin/run.jar'
command[check_activemq_proc2]=/usr/lib64/nagios/plugins/check_procs -c 1:1 -a '/usr/share/activemq/bin/linux/wrapper'
command[check_nrpe_daemon]=/usr/lib64/nagios/plugins/check_procs -C nrpe -c 1:
command[check_activemq_established_connections]=/usr/libexec/grid-monitoring/probes/org.nagiosexchange/check_netstat.pl -p 6162,6163,6166,6167 -A 6162,6163,6166,6167 -w "1000,1000,1000,1000" -e
command[check_activemq_listening_sockets]=/usr/libexec/grid-monitoring/probes/org.nagiosexchange/check_netstat.pl -p 6162,6163,6166,6167 -A 6162,6163,6166,6167 -c "<1,<1,<1,<1" -l