Page 1 of 1

check_multi with NCPA

Posted: Tue Mar 12, 2019 9:44 am
by junkertf
Hello!

We thinking on, than we want to use the subject combo for large ammount of checks on our architecture.

Will it work or not? Is there any configuration what MUST not to apply? What are the key points for the configuration?
Is there any significant difference of configuration regarding the side of the ncpa configuration?
Is there any good woring examples (RTM) in the subject?

Thank you, best regards,

Ferenc

Re: check_multi with NCPA

Posted: Tue Mar 12, 2019 10:50 am
by lmiltchev
What kind of servers are you going to be monitoring - Windows, Linux, etc.? You could probably use NCPA commands in the check_multi file, but according to the plugin's usage, they need to be in a NRPE style format.
Common options:
-f, --filename
config file which contains commands to be executed
multiple files can be specified serially
if filename is a directory, all '.cmd' files will be taken
(file format follows nrpe style: command[tag]=plugin command line)
The question is how are you going to be running the plugin. It would run "locally", at least on Linux. I am still trying to figure out what exactly you are trying to accomplish. Do you want to run check_multi as an active or passive check? Can you provide some more details on your current setup?

Re: check_multi with NCPA

Posted: Tue Mar 12, 2019 1:38 pm
by junkertf
Hello!

Thanks for the fast reply! :)

With NCPA agent now we want, in the first step, monitor Windows servers. NCPA agents and checks are/could be running locally and now in active mode, maybe on AIX also.

For example monitoring a disk queue length with response time and reads/sec writes/sec and read-writeKB/sec, so these 6 metric would go in one check... No warning or critical criteria would be on these checks. Also would be good to see these metrics in one graph, but maybe it is also can be solved...

These are enough information?

Thank you, best regards,

Ferenc

Re: check_multi with NCPA

Posted: Tue Mar 12, 2019 2:31 pm
by lmiltchev
You could kind of use check_multi with NCPA on Linux, but on Windows it would be quite difficult, if not impossible. I just discussed the issue with our developers, and I was told that check_multi won't work with NCPA on Windows.

In the future releases of NCPA, we may create an option to do one NCPA call to get all of the data (multiple metrics) from a host. At this time however, this is not possible.

One thing you could try is using a custom powershell script, that returns all of the info you need, formatted according to the Nagios development guidelines. You can then call the PS script via NCPA.