passiv service syntax in nrdp.cfg

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
JSL
Posts: 3
Joined: Tue Mar 26, 2019 9:26 am

passiv service syntax in nrdp.cfg

Post by JSL »

Hey.
I can seen to find the correct syntax for setting up the passiv check for a service for nrdp.
I have put in
%HOSTNAME%|MyService1 = services?status=running
but the the "Checks menu i says: "UNKNOWN: No services selected with 'service' value given"

Could anybody tell me the correct syntax for monitoring a service?

And another thing.
The service name are MyService1 and the displayname i called MultiSendcon. So i would be super i it turn up like MultiSendcon i Nagios.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: passiv service syntax in nrdp.cfg

Post by ssax »

Try this:

Code: Select all

%HOSTNAME%|MyService1 = services?service=MyService1&status=running
Passive Check Example

You can create a passive check using the following example. We recommend putting your passive checks in a file called something like passive.cfg in the <ncpa path>/etc/ncpa.cfg.d folder. You must add in the [passive directives] header before adding the definitions. Default installs of NCPA come with an example.cfg that shows what a basic passive check setup looks like.

%HOSTNAME%|<service name> = services?service=sshd&status=running

Make sure that you restart the passive service once you've updated the configuration.

Note: Passive checks also allow you to define individual check intervals. Add |<check duration> to the end of the service name in order to use the specified value in seconds. If no check interval is defined, the default interval in the ncpa.cfg will be used.
JSL
Posts: 3
Joined: Tue Mar 26, 2019 9:26 am

Re: passiv service syntax in nrdp.cfg

Post by JSL »

Can I be renamed so It would turn up as the displayname?
JSL
Posts: 3
Joined: Tue Mar 26, 2019 9:26 am

Re: passiv service syntax in nrdp.cfg

Post by JSL »

I looks like the first name are what shows in Nagios
So if you write %HOSTNAME%|MultiSendcon = services?service=MyService1&status=running
I works.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: passiv service syntax in nrdp.cfg

Post by ssax »

That is correct, are we okay to lock the topic and mark it as resolved or do you have any related questions?
Locked