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?
Custom check for barman
-
- Posts: 258
- Joined: Wed Aug 23, 2023 11:29 am
Re: Custom check for barman
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!
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!