System call sent warnings to stderr: pst3:

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Unixnagios
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

System call sent warnings to stderr: pst3:

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Unixnagios
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Post by benjaminsmith »

Also, I came across this blog post which is similar to this issue.

https://little418.com/2009/12/system-ca ... -user.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Unixnagios
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Post by Unixnagios »

I can see the same error when executed with root too. Same is the result after changing pst3's permission.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Unixnagios
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: System call sent warnings to stderr: pst3:

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Unixnagios
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Post by Unixnagios »

Tried all the given solutions, still getting same error.
Locked