Page 1 of 1

NRPE: run tasks on single thread

Posted: Wed Jan 18, 2017 8:10 am
by optionstechnology
Hi,

We have a client that is concerned the NRPE agent will run concurrent checks, using multiple cpus to run the workload.

The client would like NRPE ran in a serial fashion on a single thread. To prevent it stealing cpu cycles / context switching.

How do we run NRPE so it runs on a single thread?

This will be ran on RHEL6 and 7.

Thanks,

Re: NRPE: run tasks on single thread

Posted: Wed Jan 18, 2017 5:46 pm
by rkennedy
I spoke with one of our developers, and he informed me that NRPE will run single threaded, and call fork() for each additional call that comes in which would then spawn another process. This would be in a standalone setup.

If you're running it through xinetd, then I believe a new process will be initiated every time NRPE is called. You'll want to look at /etc/xinetd.d/nrpe and modify wait no to be wait yes
(see https://access.redhat.com/documentation ... onfig.html - wait — Defines whether the service is single-threaded (yes) or multi-threaded (no). )