THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
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/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

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 - v3/v4 Compatibility With Previous Versions
Viewed 52011 times since Fri, Jun 24, 2016
NRPE - Connection Refused Or Timed Out
Viewed 11281 times since Mon, Jul 17, 2017
NRPE - No Output Returned From Plugin
Viewed 17763 times since Mon, Jul 17, 2017
NRPE - Command ’[Your Plugin]’ Not Defined
Viewed 11110 times since Mon, Jul 17, 2017
NRPE - Return Code Of 126 Is Out Of Bounds - Plugin May Not Be Executable
Viewed 10012 times since Fri, Jul 14, 2017
Disabling Port 113 IDENT Requests
Viewed 7828 times since Tue, Mar 12, 2019
NRPE - Return Code Of 127 Is Out Of Bounds - Plugin May Be Missing
Viewed 32043 times since Fri, Jul 14, 2017
NRPE - Turn Off XINETD Logging On Success
Viewed 15056 times since Tue, Mar 7, 2017
NRPE - General Troubleshooting Tips
Viewed 20834 times since Mon, Jul 17, 2017
NRPE - NRPE: Unable To Read Output
Viewed 96747 times since Mon, Jul 17, 2017