Page 1 of 2

System call sent warnings to stderr: pst3:

PostPosted: Thu Oct 17, 2019 2:04 pm
by Unixnagios
We are receiving System call sent warnings to stderr: pst3: This program can only be run by the root user! error on Solaris 10 sparc machine while testing the plugin for checking ClearCase process.

We have changed the pst3's ownership to root, still receiving the same error.

Re: System call sent warnings to stderr: pst3:

PostPosted: Fri Oct 18, 2019 10:11 am
by benjaminsmith
Hello @Unixnagios,

Can you post the check command you are using and the full error output from the terminal for us to review. Also, is this only happening for this check command or is this occurring on all of them?

Thanks.

Re: System call sent warnings to stderr: pst3:

PostPosted: Mon Oct 21, 2019 2:59 pm
by Unixnagios
Here is the check command output,

[nagios@usa030043 ~]$ /usr/local/nagios/libexec/check_nrpe -2 -H 13.*.*.* -c check_clearcase -t 60
System call sent warnings to stderr: pst3: This program can only be run by the root user!

And This is happening only with solaris 10 T5-2 zone servers.

Re: System call sent warnings to stderr: pst3:

PostPosted: Mon Oct 21, 2019 3:04 pm
by benjaminsmith
Hello @Unixnagios,

This is looks like a permission issue with pst3. Try running the plugin as root user from the terminal and let me know if it works.

Re: System call sent warnings to stderr: pst3:

PostPosted: Mon Oct 21, 2019 3:05 pm
by benjaminsmith
Also, I came across this blog post which is similar to this issue.

https://little418.com/2009/12/system-ca ... -user.html

Re: System call sent warnings to stderr: pst3:

PostPosted: Tue Oct 22, 2019 8:34 am
by Unixnagios
I can see the same error when executed with root too. Same is the result after changing pst3's permission.

Re: System call sent warnings to stderr: pst3:

PostPosted: Tue Oct 22, 2019 2:24 pm
by benjaminsmith
Hello @Unixnagios,
And This is happening only with solaris 10 T5-2 zone servers.

Is this happening for any check run on these remote hosts. Are you able to communicate with NRPE on the remote hosts from the Nagios Server?

Code: Select all
./check_nrpe -H <ipaddress>

What instructions did you follow to install nrpe on those servers? Please let me know.

Re: System call sent warnings to stderr: pst3:

PostPosted: Tue Oct 22, 2019 3:04 pm
by Unixnagios
yes, all other checks like check_disk, load, memory, nfs stale woking fine except check_clearcase.

The nrpe package and plugins are pushed to the server through puppet.

Re: System call sent warnings to stderr: pst3:

PostPosted: Tue Oct 22, 2019 3:16 pm
by tgriep
The plugin has to be set to the following owner and group, root.nagios so the plugin can run as the root user.

To set the permissions of the plugin and the pst3 file go to the folder where the plugin is located and and run the following.

Code: Select all
chown root.nagios check_clearcase
chmod 777 check_clearcase
chmod ug+s check_clearcase
chown root.root pst3


Then test the plugin again to see if it works.

Re: System call sent warnings to stderr: pst3:

PostPosted: Thu Oct 31, 2019 9:42 am
by Unixnagios
Tried all the given solutions, still getting same error.