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.
passiv service syntax in nrdp.cfg
Re: passiv service syntax in nrdp.cfg
Try this:
Code: Select all
%HOSTNAME%|MyService1 = services?service=MyService1&status=runningPassive 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.
Re: passiv service syntax in nrdp.cfg
Can I be renamed so It would turn up as the displayname?
Re: passiv service syntax in nrdp.cfg
I looks like the first name are what shows in Nagios
So if you write %HOSTNAME%|MultiSendcon = services?service=MyService1&status=running
I works.
So if you write %HOSTNAME%|MultiSendcon = services?service=MyService1&status=running
I works.
Re: passiv service syntax in nrdp.cfg
That is correct, are we okay to lock the topic and mark it as resolved or do you have any related questions?