Nagios Drbd Pacemaker

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajsshah
Posts: 30
Joined: Thu Dec 06, 2018 8:00 am

Nagios Drbd Pacemaker

Post by rajsshah »

Hi Team
I have successfully setup NAgios with DRBD , pacemkaer as per guideline in linbit . However I have one query .
The pacemaker makes sure that process like nagios are running all the time so it continiously monitors it . What happen when we click apply configuration in nagios??
Ideally it restarts the nagios core process ( as I see in the logs as well )

Caught SIGTERM, shutting down...

Doesn't this conflicts with pacemaker monitoring . As pacemaker will see that nagios is down , it will also try to restart it and hence there will be clash ??

The reason I am asking is that I see sometime that my pacemaker blocks the nagios ( as it tries to restart it multiple times ) , mostly during apply config task .

Also in the linbit doc "At the time of writing this guide, if npcd is controlled by Pacemaker via it’s init script or the more generic anything
resource agent Nagios will complain that the service isn’t running properly. Forking the npcd init script off of Nagios'
init script mitigates the problem"


But in Linux there is not /etc/init.d/nagios . Should I include npcd as well in pacemaker config ??
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Drbd Pacemaker

Post by ssax »

As we do not use pacemaker, it's a 3rd party solution/we are not the developers of pacemaker, and don't admin any pacemaker servers, you will need to reach out to the developers of pacemaker to get support on what their product does and its features/limitations.

On the nagios side though, here's what happens on an apply config:

Code: Select all

su - nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
The rest of the questions not directly related to our product will need to be directed to Linbit support (if you used their solution) or the Pacemaker devs (if it's a custom solution).

NPCD needs to be running on the actively monitoring server to process the performance data, please see the performance data architecture doc here:

https://support.nagios.com/kb/article.php?id=41

If there isn't an init script then you'd need to modify your systemd unit file or put the init script in place (reach out to Linbit on this, only they know what their solution requires, we don't):

This one:

[root@xid ~]# systemctl status nagios
● nagios.service - Nagios Core 4.4.3
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2019-08-07 16:41:25 CDT; 33min ago
Locked