Home » Categories » Products » NRPE » Troubleshooting » Common Problems

NRPE - Warning: This Plugin Must Be Either Run As Root Or Setuid

Problem Description

This KB article addresses the following NRPE error:

Warning: This Plugin Must Be Either Run As Root Or Setuid

 

Assumed Knowledge

The following KB article contains an explanation of how NRPE works and may need to be referenced to completely understand the problem and solution that is provided here:

NRPE - Agent and Plugin Explained

 

Troubleshooting The Error

This error is usually plugin specific and is most commonly experienced when trying to use a third-party hardware check plugin (most often disk smart checks and raid health plugins). You need to setup the sudoers file and associated config changes mentioned in the following KB article:

NRPE - NRPE: Unable To Read Output

 

Alternatively, you could set the sticky bit on the plugin's permissions. Sudoers is considered safer, so only use this option if you understand the consequences:

chmod u+s /usr/local/nagios/libexec/<plugin>

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
NRPE - CHECK_NRPE: Received 0 Bytes From Daemon. Check The Remote Server Logs For Error Messages
Viewed 863 times since Mon, Jul 17, 2017
NRPE - Agent and Plugin Explained
Viewed 5937 times since Fri, Jul 14, 2017
NRPE - No Output Returned From Plugin
Viewed 1978 times since Mon, Jul 17, 2017
NRPE - ERROR: Missing Argument Exception
Viewed 402 times since Mon, Jul 17, 2017
NRPE - Error While Loading Shared Libraries: libssl.so
Viewed 847 times since Mon, Jul 17, 2017
NRPE - CHECK_NRPE: Socket Timeout After n Seconds
Viewed 8912 times since Sun, Jul 16, 2017
NRPE - Remote does not support Version 3 Packets
Viewed 1951 times since Mon, Nov 27, 2017
NRPE - Linux Cached Memory Not Added to Free Memory
Viewed 778 times since Wed, Jan 27, 2016
NRPE - v3 Compatibility With Previous Versions
Viewed 3484 times since Fri, Jun 24, 2016
NRPE - Return Code Of 126 Is Out Of Bounds - Plugin May Not Be Executable
Viewed 701 times since Fri, Jul 14, 2017