System call sent warnings to stderr: pst3:

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

System call sent warnings to stderr: pst3:

Postby Unixnagios » Thu Oct 17, 2019 2:04 pm

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.
Unixnagios
 
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Postby benjaminsmith » Fri Oct 18, 2019 10:11 am

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!
User avatar
benjaminsmith
 
Posts: 2000
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Postby Unixnagios » Mon Oct 21, 2019 2:59 pm

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.
Unixnagios
 
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Postby benjaminsmith » Mon Oct 21, 2019 3:04 pm

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!
User avatar
benjaminsmith
 
Posts: 2000
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Postby benjaminsmith » Mon Oct 21, 2019 3:05 pm

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!
User avatar
benjaminsmith
 
Posts: 2000
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Postby Unixnagios » Tue Oct 22, 2019 8:34 am

I can see the same error when executed with root too. Same is the result after changing pst3's permission.
Unixnagios
 
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Postby benjaminsmith » Tue Oct 22, 2019 2:24 pm

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!
User avatar
benjaminsmith
 
Posts: 2000
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: System call sent warnings to stderr: pst3:

Postby Unixnagios » Tue Oct 22, 2019 3:04 pm

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.
Unixnagios
 
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Re: System call sent warnings to stderr: pst3:

Postby tgriep » Tue Oct 22, 2019 3:16 pm

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

Re: System call sent warnings to stderr: pst3:

Postby Unixnagios » Thu Oct 31, 2019 9:42 am

Tried all the given solutions, still getting same error.
Unixnagios
 
Posts: 5
Joined: Fri Jul 12, 2019 10:13 am

Next

Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 8 guests