Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
...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
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??
...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
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?
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
---- 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:
[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???
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.
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??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.