Hi, we use <a href="http://webinject.pl">webinject.pl</a> but have not made any major modifications to it.  If you are interested in sharing your script I would be happy to test it out in our setup.<div><br></div><div>Cheers,</div>

<div>Ian O</div><div><br><div><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 1:17 AM, PRP <span dir="ltr"><<a href="mailto:f.hugh@comcast.net">f.hugh@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Well after some work I found a few issues with the <a href="http://webinject.pl" target="_blank">webinject.pl</a>  script that<br>
I introduced.  Anyone new to this world like me if you need to run tests as<br>
the nagios user use "sudo su nagios"  That will give you a shell running<br>
under the nagios user.  That took me some time to figure that out.<br>
Unfortunately, that did not solve my problem.  I can run my script under the<br>
nagios user without issue, but if I allow the service to run it in the same<br>
nature, it fails.  I am perplexed so if anyone has any ideas I would greatly<br>
appreciate it.<br>
<div class="im"><br>
-----Original Message-----<br>
From: <a href="mailto:f.hugh@comcast.net">f.hugh@comcast.net</a> [mailto:<a href="mailto:f.hugh@comcast.net">f.hugh@comcast.net</a>]<br>
Sent: Friday, May 28, 2010 12:04 PM<br>
To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
</div><div><div></div><div class="h5">Subject: [Nagios-users] Nagios and a custom <a href="http://webinject.pl" target="_blank">webinject.pl</a><br>
<br>
    We just deployed a new site that requires client certificates so I found<br>
a discussion thread on how to make a few changes to the script so that it<br>
would use the client certificate that I specified.  I left the original<br>
script intact along with all the nagios configs and named this new script<br>
<a href="http://webinjectcert.pl" target="_blank">webinjectcert.pl</a>.  I wanted 2 separate scripts and configs so that I did not<br>
disrupt what I already had running successfully<br>
    The new script works perfectly as long as I run it manually as sudo.<br>
The problem is when I configure it for nagios with the same script, config<br>
file, and test case, it returns results that claim it could not log onto the<br>
site.  I have enabled debugging in the nagios.cfg, but I just can't see what<br>
the problem is.  I looked at the permissions on the new script and<br>
certificate to make sure that wasn't it and they look fine.  I am not really<br>
sure how to run it as the nagios user since I can't remember what the<br>
password is and don't want to make a mess and change it.<br>
    Any ideas?<br>
    Paul<br>
<br>
<br>
<br>
----------------------------------------------------------------------------<br>
--<br>
<br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting<br>
any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
<br>
</div></div><div class="im">------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit.  See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br></div></div>