LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-19-2022, 08:54 AM   #16
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by TB0ne View Post
So, back to the Nagios knowledgebase, for your exact error, with troubleshooting steps:
https://support.nagios.com/kb/articl...fined-621.html

...that *SPECIFICALLY MENTION* single-quotes being a problem. Again, you have YEARS of experience with Nagios and SNMP...why can't you do basic research, and apply what you know??
Thank you very much for the link. I have read the documentation they say to upgrade check_nrpe server , but as i said it doesnot work only with manual scripts on remote hosts not all of them

Last edited by 1s440; 09-19-2022 at 08:59 AM.
 
Old 09-19-2022, 10:22 AM   #17
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,745

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by 1s440 View Post
Thank you very much for the link. I have read the documentation they say to upgrade check_nrpe server , but as i said it doesnot work only with manual scripts on remote hosts not all of them
...and as the documentation ALSO says (if you read it all), that the single-quotes that you say are in your commands, are the problem. There are also TWO solutions listed in the Nagios doc, and you only mention one of them.

AGAIN: Putting your error into any search-engine will tell you the '$HOSTNAME' is going to cause you problems.
AGAIN: You have *YEARS* of experience with Nagios/SNMP...why can you not apply what you know??
 
Old 09-20-2022, 03:24 AM   #18
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
...and as the documentation ALSO says (if you read it all), that the single-quotes that you say are in your commands, are the problem. There are also TWO solutions listed in the Nagios doc, and you only mention one of them.

AGAIN: Putting your error into any search-engine will tell you the '$HOSTNAME' is going to cause you problems.
AGAIN: You have *YEARS* of experience with Nagios/SNMP...why can you not apply what you know??
Hello, I tried with the quotes and without and still the same. The only thing observed, it was working with NRPE3 versions and after upgradation to NRPE4 it doesnot actually. I have also updated check_nrpe to the version 4 and then did check again, its the same issue

Code:
 '/usr/lib/nagios/plugins/check_nrpe4' '-H' 'host'
NRPE v4.0.0
-------> gives me nrpe version of client

But
Code:
 
'/usr/lib/nagios/plugins/check_nrpe4' '-H' 'host' '-c' 'check_script'
---- gives command not defined

on the remote host the command is already defined

Last edited by 1s440; 09-20-2022 at 07:02 AM.
 
Old 09-20-2022, 07:49 AM   #19
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,828

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
The thread title "Unable to read output"
is actually a step further: it found the command/tag and could run the associated (check-)command - but it gave no output. Maybe it needs certain arguments?
 
Old 09-20-2022, 08:21 AM   #20
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,745

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by 1s440 View Post
Hello, I tried with the quotes and without and still the same. The only thing observed, it was working with NRPE3 versions and after upgradation to NRPE4 it doesnot actually. I have also updated check_nrpe to the version 4 and then did check again, its the same issue
Code:
 '/usr/lib/nagios/plugins/check_nrpe4' '-H' 'host' NRPE v4.0.0
-------> gives me nrpe version of client
But
Code:
 '/usr/lib/nagios/plugins/check_nrpe4' '-H' 'host' '-c' 'check_script'
---- gives command not defined
on the remote host the command is already defined
Sorry, but are you not paying attention??? AGAIN: the single-quotes are part of the problem, and you are SPECIFICALLY INCLUDING THEM. The page that had to be looked up for you and handed to you says this, along with DOZENS of other Nagios forum articles saying the same thing. AGAIN: the article says there were more problems *BEFORE* V3, so upgrading (there is no such word as 'upgradation') isn't needed and has nothing to do with your problem.

From the page you were given:
Quote:
Originally Posted by Nagios Docs
If the arguments were enclosed in single quotes -a '-w 5 -c 10' then everything in the single quotes is sent as a string and not interpreted by the check_nrpe plugin.
Understand???? AGAIN: there is MORE THAN ONE SOLUTION on the page that was given to you, and you can't seem to try the OTHER solution; is there a reason you can't read/understand the whole page???
Quote:
Originally Posted by Same page, further down
The other solution is to change how you are sending the arguments to the NRPE client and also change the command definition on your NRPE client. Please refer to the following KB article as there are several examples that show how:
Understand???

Some of the more than 24,000 hits for your exact error, with solutions; have you looked at any???
https://serverfault.com/questions/99...llow-arguments
https://stackoverflow.com/questions/...nd-not-defined
https://support.nagios.com/forum/vie...hp?f=7&t=45108
https://support.nagios.com/forum/vie...hp?f=7&t=48556
https://sourceforge.net/p/nagios/mai...sage/17831254/
 
Old 09-21-2022, 01:43 AM   #21
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
[QUOTE=TB0ne;6381349]Sorry, but are you not paying attention??? AGAIN: the single-quotes are part of the problem, and you are SPECIFICALLY INCLUDING THEM. The page that had to be looked up for you and handed to you says this, along with DOZENS of other Nagios forum articles saying the same thing. AGAIN: the article says there were more problems *BEFORE* V3, so upgrading (there is no such word as 'upgradation') isn't needed and has nothing to do with your problem.

From the page you were given:

Understand???? AGAIN: there is MORE THAN ONE SOLUTION on the page that was given to you, and you can't seem to try the OTHER solution; is there a reason you can't read/understand the whole page???


I already mentioned that I have tried with single quotes and without and still the same and you are again me sending the documentation I know before posting anything everyone have read documentation and only ask question here if there is any additional thing missing
Understand???

Some of the more than 24,000 hits for your exact error, with solutions; have you looked at any???
https://serverfault.com/questions/99...llow-arguments
https://stackoverflow.com/questions/...nd-not-defined
https://support.nagios.com/forum/vie...hp?f=7&t=45108
https://support.nagios.com/forum/vie...hp?f=7&t=48556
https://sourceforge.net/p/nagios/mai...sage/17831254/[/QUOTE

I have also gone through the URLs and checked which is no helping me hence I posted here. Better rather than sending me links if you would like to suggest me something just suggest. If you have well understood the documentation then tell me or pass me the command where I am wrong.
 
Old 09-21-2022, 02:30 AM   #22
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
the issue is solved there was some configuration issues in nrpe.cfg file and the permissions were wrong for the nagios user.

Last edited by 1s440; 09-21-2022 at 05:39 AM.
 
Old 09-21-2022, 08:18 AM   #23
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,745

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by 1s440 View Post
the issue is solved there was some configuration issues in nrpe.cfg file and the permissions were wrong for the nagios user.
Really??? You mean, like the documentation said to check in one of the associated links on that page that you claim to have read?? Or in any of the other links (apparently you read all 24,300 of them), that said to check the nrpe.cfg/permissions??

Good to know.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Event Handler not running - NRPE: Unable to read output notque Linux - Software 7 04-05-2013 06:27 AM
[SOLVED] NRPE/Ubuntu: Unable to read output lyron Linux - Networking 1 03-07-2013 09:31 AM
NRPE: Unable to read output theking2 Linux - Software 4 08-04-2010 04:59 PM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
NRPE: Unable to read output theamrit Linux - General 2 12-03-2008 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration