NRPE: run tasks on single thread

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

NRPE: run tasks on single thread

Post 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,
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: run tasks on single thread

Post 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). )
Former Nagios Employee
Locked