<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br><div><div>Am 30.04.2014 um 14:16 schrieb Alexander Winkler <<a href="mailto:work@winkler-alexander.de">work@winkler-alexander.de</a>>:</div><blockquote type="cite"><div dir="ltr"><div>this patch worked and nrpe is up and running again.</div><div>Thank you very much.</div><div><br></div><div>It seems to be a generic problem with S11. Will you update the cswnrpe package?</div></div></blockquote><div><br></div><div>@Rafi: I guess Juergen is missing in action, there are also some other bugs open:</div><div>  <a href="https://www.opencsw.org/buglist/buglist.cgi#nrpe">https://www.opencsw.org/buglist/buglist.cgi#nrpe</a></div><div><br></div><div>Can you please have a look?</div><div><br></div><div><br></div><div>Best regards</div><div><br></div><div>  — Dago</div><br><blockquote type="cite"><div dir="ltr">
<div><br></div><div>Bye,</div><div>Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-30 14:08 GMT+02:00 Rafael Ostertag <span dir="ltr"><<a href="mailto:raos@opencsw.org" target="_blank">raos@opencsw.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex<br>
<div class=""><br>
On Wed, Apr 30, 2014 at 11:49:06AM +0200, Alexander Winkler wrote:<br>
> Hello,<br>
> I have been running an Solaris 11.1 System with your nrpe 2.12. This<br>
> package was quite old from a stable branch.<br>
> Today, I updated my stalbe mirror and there was an nrpe update 2.13. It<br>
> works with every Solaris 10 system, but not with solaris 11:<br>
><br>
> The service goes into maintenance:<br>
> [ Apr 30 11:36:02 Executing start method<br>
> ("/var/opt/csw/svc/method/svc-cswnrpe start"). ]<br>
> /var/opt/csw/svc/method/svc-cswnrpe: line 44: syntax error at line 58: `('<br>
> unexpected<br>
> [ Apr 30 11:36:02 Method "start" exited with status 3. ]<br>
><br>
> It seems like an scripting error, since nrpe seems to work:<br>
<br>
</div>Yes, nrpe works just fine.<br>
<br>
I attached a patch. Copy it to the affected Sol11 machines and do<br>
<br>
 # patch -p0 < /path/to/patchfile<br>
<br>
Essentially, the patch adds<br>
<br>
 unalias -a<br>
<br>
to the top of /etc/opt/csw/init.d/cswnrpe.<br>
<div class=""><br>
> But i haven't been able to find the reason yet.<br>
> Can anybody reproduce this problem?<br>
<br>
</div>The problem is, that in Sol11, /bin/sh is a link to ksh which by default<br>
defines some aliases, and `stop' is one of them. The nrpe start script dies on<br>
line 58, because a function is defined which is also called `stop'. So, when<br>
the script is read, line 58 is expanded to 'kill -s STOP' which doesn't make<br>
much sense in that context.<br>
<br>
Let me know of the outcome.<br>
<br>
cheers<br>
rafi<br>
<br>
><br>
> Best regards<br>
> Alex<br>
</blockquote></div><br></div>
</blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span style="font-family: monospace; ">-- </span><br style="font-family: monospace; "><span style="font-family: monospace; ">"You don't become great by trying to be great, you become great by wanting to do something,</span><br style="font-family: monospace; "><span style="font-family: monospace; ">and then doing it so hard that you become great in the process." - xkcd #896</span></div>
</div>
<br></div></body></html>