<br><br>
<div class="gmail_quote">On Fri, Nov 7, 2008 at 1:37 PM, Victor Lanza <span dir="ltr"><<a href="mailto:vicjalan@gmail.com">vicjalan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Thanks for your suggestion Bo, however I tried that and it did not work. </div>
<div>
<div></div>
<div class="Wj3C7c">
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Fri, Nov 7, 2008 at 10:59 AM, Bo Lynch <span dir="ltr"><<a href="mailto:blynch@ameliaschools.com" target="_blank">blynch@ameliaschools.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div>On Fri, November 7, 2008 9:57 am, Victor Lanza wrote:<br>> Hi guys, I'm about go nuts here with this plugin. I'm running Fedora 8<br>> with<br>> Nagios <a href="http://3.0.1./" target="_blank">3.0.1.</a><br>
><br>> I've installed the plugin I tested it via the CLI as follows:<br>> ./check_ssl_certificate -H <a href="http://192.168.1.120/" target="_blank">192.168.1.120</a> -c 7 -w 30<br>><br>> I get the following response:<br>
><br>> m=Nov, d=6, h=20, m=25, s=34, y=2009, z=GMT<br>><br>> However when Nagios runs it, all I get is a big fat (null) on the<br>> interface<br>> with a critical state.<br>><br>> I've changed my command file to look the following ways:<br>
> define command{<br>>         command_name    check_ssl<br>>         command_line    $USER1$/check_ssl_certificate -H<br>> $HOSTADDRESS$ -c $ARG1$ -w $ARG2$<br>>         }<br>><br>> define command{<br>
>         command_name    check_ssl<br>>         command_line    $USER1$/check_ssl_certificate -H $HOSTADDRESS$ -c<br>> 7<br>> -w 30<br>>         }<br>><br>> define command{<br>>         command_name    check_ssl<br>
>         command_line    $USER1$/check_ssl_certificate -H <a href="http://192.168.1.120/" target="_blank">192.168.1.120</a> -c<br>> 7<br>> -w 30<br>>         }<br>><br>> None of which has worked, any way I put it, I still get a (null) output in<br>
> the Nagios interface. It works in the CLI under both the root and nagios<br>> user. I really preferred this plugin because it allows me to specifiy a<br>> warning and critical criteria. Has anyone had any luck using it or has<br>
> some<br>> insight into what I may be doing wrong?<br>><br>> --<br>> Thanks in Advance,<br>><br>> Victor Lanza<br><br><br></div></div>Try using -H $ARG1$ instead of -H $HOSTADDRESS$.<br>I had a similar problem with a different plugin and that got it working.<br>
Hopefully this will be the case for you as well.<br><font color="#888888"><br>Bo<br><br></font></blockquote></div><br><br></div></div></blockquote></div>
<div><br>I got it! The plugin check_ssl_certificate that I downloaded had installation instructions inside the code. I would have thought I would need to look in there for that but in any case the solution was there.</div>

<div> </div>
<div>The script needed to know the path of the nagios plugins directory and by default it had "usr/lib/nagios/plugins". I changed it to the correct path to the plugins and it worked. </div>
<div> </div>
<div>Hopes this helps any one else out there.<br clear="all"><br>-- <br>Best Regards,<br><br>Victor Lanza<br></div>