Custom check for barman

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
kbauma01
Posts: 26
Joined: Wed May 25, 2022 6:39 am

Custom check for barman

Post by kbauma01 »

Hello all,

I am trying to create a custom command for a barman process. Here is what I need to run, which works on the command line.

$sudo -u barman /usr/bin/barman check all --nagios
BARMAN CRITICAL - 1 server out of 29 have issues * server1-db1-sessreg FAILED: archiver errors..

What do I have to do to create a custom command for that?
gwesterman
Posts: 106
Joined: Wed Aug 23, 2023 11:29 am

Re: Custom check for barman

Post by gwesterman »

Hi @kbauma01,

You can either make it an external command which will automatically be called by the nagios daemon, or (and this is more likely what your are looking for) you can make it a custom plugin . With the custom plugin, you can define an associated command and apply it to a service in XI.

Both options have plenty of additional documentation at the ready.

Let us know if you need anything else!

Thank you!
Post Reply