CONFIGURATION MORE TYPES OF NOTIFICATIONS PASSIVE NRDP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
rafamicro
Posts: 7
Joined: Sat Nov 09, 2019 4:18 am

CONFIGURATION MORE TYPES OF NOTIFICATIONS PASSIVE NRDP

Post by rafamicro »

I have a Ubuntu 24.04 Server with Nagios Version 4.5.8 installed. Communication with the NCPA agent on Windows Servers through the local network works perfectly and notifications remotes Windows Servers to connect to the NCPA agent through NRPD.

Now I'm at the step of being able to configure more types of notifications in the client than those that come by default:

%HOSTNAME%|CPU Usage = cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
%HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
%HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
%HOSTNAME%|Process Count = processes --warning 900 --critical 1000

Let's see if someone could help me to be able to notify through passive nrdp notifications statuses such as that of a service, bytes of writing, bytes of reading, version of windows, updates Windows, etc.

Thanks again to anyone who can help me.
bbahn
Posts: 297
Joined: Thu Jan 12, 2023 5:42 pm

Re: CONFIGURATION MORE TYPES OF NOTIFICATIONS PASSIVE NRDP

Post by bbahn »

Hello @rafamicro,

You can use the given checks as reference for creating your own. You can also use the following documentation: https://assets.nagios.com/downloads/ncp ... Checks.pdf

Essentially, you form the check as

Code: Select all

<host_name>|<check_name> = <NCPA api endpoint> <options>
Note that host_name and check_name MUST match those configured in XI or else it will not recognize them and they will not be received properly. The given examples use %HOSTNAME% as the host name, which will substitute whatever you have set in your NCPA configuration file.

If you want something beyond what the NCPA API offers, you can use the plugins/ endpoint to extend NCPA's functionality.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply