<div dir="ltr">Hello Rafi,<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><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>