Error Request Contained Illegal Metachars
• All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Nagios Core Mailing Lists Nagios Core Nagios network monitoring software is enterprise server monitoring https://support.nagios.com/forum/viewtopic.php?f=18&t=33531 Brought to you by: egalstad, swilkerson Summary Files Reviews Support Wiki Mailing Lists Donate SVN CVS Git ▾ Nagios BPI Nagios Core Nagios Core Docs Nagios V-Shell NDOUtils NRDP NRPE NSCA NSTI nagios-announce nagios-checkins nagios-devel nagios-devteam nagios-drama nagios-project nagios-users nagios-users-br nagios-users-ru Re: [Nagios-devel] nrpe, arguments and security Re: [Nagios-devel] nrpe, arguments and security From: Andreas Ericsson
Start here for a quick overview of the site Help Center Detailed answers to http://serverfault.com/questions/652646/nrpe-custom-script-returns-unable-to-read-input-but-the-script-works-correctly any questions you might have Meta Discuss the workings and https://deangrant.wordpress.com/2013/11/21/nsclient-reports-request-string-contained-illegal-metachars/ policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer error request site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top NRPE: Custom script returns unable to read input, but the script works correctly, what error request contained could it be? up vote 2 down vote favorite I wrote a Nagios check script which receives a path as argument and checks: if the path is mounted if it is accessible by touching a file in the path. If the mount point directory is empty [root@hadoop-nn1 mass1]# su - nagios [nagios@hadoop-nn1 ~]$ /usr/lib64/nagios/plugins/check_nfsmount.sh /mass2/hpfiles/ Warning: /mass2/hpfiles/ is mounted but directory is empty! [nagios@hadoop-nn1 ~]$ /usr/lib64/nagios/plugins/check_nfsmount.sh /mass1/hpfiles/ Warning: /mass1/hpfiles/ is MOUNTED properly but not writeable for user nagios [nagios@hadoop-nn1 ~]$ /usr/lib64/nagios/plugins/check_nfsmount.sh /mass1/hp_offline/ Ok: /mass1/hp_offline/ is MOUNTED properly and writeable for user nagios [nagios@hadoop-nn1 ~]$ The command in /etc/nagios/nrpe.cfg looks like this: command[check_nfsmounts]=/usr/lib64/nagios/plugins/check_nfsmounts.sh $ARG1$ As you see, when running the command from the monitored machine using Nagios user, the result is as expected, but when I run the command using nrpe from the Nagios server, it returns "NRPE: Unable to read input". Other stuff I tried: Providing the path within the script itself so no
dean1609's profile on TwitterView deangrant2's profile on LinkedInView dean1609's profile on GitHubFollow Blog via Email Enter your email address to follow this blog and receive notifications of new posts by email. Join 320 other followers Recent Posts Regular Expression CheatSheet How to Adopt Infrastructure as Code byNGINX Windows PowerShell cmdlets to secure PSCredentialObjects Creating JetBrains YouTrack issues with WindowsPowerShell Implementing R functionality on TableauServer Twitter Feed RT @vBrianGraf: New Blog Post: #VMware cloud on #AWS. See what this means to you and how to find out more. vtagion.com/vmware-partner… #VMWonAWS 17hoursago RT @starwars: A rebellion built on hope. #RogueOne: A Star Wars Story is in theaters December 16. https://t.co/DOhjvMGnyK 18hoursago vCloud Air Network Spotlight: Neverfail and VMware team up to fuel Clever Device’s Move to the Cloud blogs.vmware.com/vcloud/2016/10… 19hoursago Again another example of bizarre scoring from the judges. Very close fight never 4 rounds in that, nevermind 118-110... #BurnsRelikh 6daysago RT @docker: Creating a @docker #container host on #Windows Nano Server with @chef ow.ly/nSSz304HDYX via @mwrockx 1weekago Follow @dean1609Active Directory Amazon Web Services Analysis Services API Automation AWS Backup Best Practices Bulk Certificates CHECK_NRPE Chef CLI cloudCheckr Cost Cost Optimisation CPU EC2 ESXi Exchange Exchange 2010 Export Firewall Get-Stat Get-VM Group Policy Install Inventory Likewise Logging Mailbox mob MongoDB Monitoring MySQL Nagios Network New-MailboxExportRequest NSClient Patch Management performance Permissions PHP phpIPAM PowerCLI Powershell PST Puppet Replication Security Service Pack 1 snapshots SNMP SQL SQL Server SSL Status Storage Template Ubuntu VCAP5-DCA vCenter VM VM sprawl VMware vRanger vSphere vSphere 5 Watchguard Windows Windows 7 Windows Server 2012 Windows Update WSUS WuInstall Dean Grant in Nagios, Powershell, Scripting November 21, 2013 93 Words NSClient reports "Request string contained illegal metachars!" I as recently compiling an external script within Nagios XI to run using the NSClient where upon execution I was receiving the following message in the nsclient.log: 2013-11-21 17:02:10: error:modules\CheckExternalScripts\CheckExternalScripts.cpp:202: Request string contained illegal metachars! This is due to the NRPE daemon by default not accepting the use of the the characters `&><‘"\[]{} in arguments. In order to resolve the issue I had to enable the ‘allow_nasty_meta_chars' setting for External Scripts and restart the NSClient++ service: [External Script] allow