Page 1 of 1

Setup Yum alerts with NCPA agent

Posted: Thu Feb 17, 2022 2:27 pm
by gdolidze
Hello,

We setup NCPA agents on our new redhat/centos 7 machines.
We used to use nrpe for alerts and now we switched to NCPA
How do we setup the new agent to alert us for yum updates.

Re: Setup Yum alerts with NCPA agent

Posted: Fri Feb 18, 2022 12:32 pm
by pbroste
Hello @gdolidze,

Thanks for reaching out, want to suggest checking out the plugins found in the Nagios Exchange.

To find more checks using NCPA, the easiest way is to access to Web GUI for NCPA and use the API.
https://www.nagios.org/ncpa/getting-sta ... ng-the-gui

Here is the help documentation, which has a lot of information on NCPA itself.
https://www.nagios.org/ncpa/help.php

Using Nagios plugins with NCPA is the best way to get the checks you want. Here's an example

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H 192.168.x.x -t '<your token>' -M 'plugins/check_yum/<the_switches_here>'
Let us know how this goes!
Perry