NRPE: Call to popen() failed

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ashok
Posts: 22
Joined: Mon Jul 21, 2014 8:07 am

NRPE: Call to popen() failed

Post by ashok »

For a Unix server ,

Im getting this output for Swap and CPU Usages frequently.. and automatically it gets rectified,
NRPE: Call to popen() failed
Can someone please enlighten me what does the above ouptput mean
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE: Call to popen() failed

Post by tmcdonald »

  • Is this the service status output you are seeing?
  • What version of NRPE are you using?
  • What OS and version are each of the servers?
  • What Nagios version is this?
Former Nagios employee
ashok
Posts: 22
Joined: Mon Jul 21, 2014 8:07 am

Re: NRPE: Call to popen() failed

Post by ashok »

Is this the service status output you are seeing?
Yes.. Status Information

What version of NRPE are you using?
nrpe-2.12, nagios-plugins-1.4.15
What OS and version are each of the servers?
Hpunix V11.3i
What Nagios version is this?
Version 3.2.3
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE: Call to popen() failed

Post by abrist »

From the NRPE source:

Code: Select all

/* report an error if we couldn't run the command */
            if(fp==NULL){
                  strncpy(buffer,"NRPE: Call to popen() failed\n",sizeof(buffer)-1);
What are the permissions on the problematic plugins? Can you run them as the user "nagios"?

Code: Select all

ls -la <path/to/plugin>
su - nagios -c <check_command and args>
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE: Call to popen() failed

Post by tmcdonald »

This may be related to an older bug in NRPE:

http://tracker.nagios.org/view.php?id=330

Specifically, can you try the following post from the bug report as a potential fix?
Theoretically, this problem applies only when running under a non-root account (which is recommended).
As a workaround, you can increase the soft limit of "nofile" in /etc/security/limits.conf for the user account under which nrpe runs. You need to restart the process for the change to become effective.
Former Nagios employee
Locked