Hi Tom, and all<br><br>i have solved with the check_http plugin , it's work very fine ..:)<br><br>the plugin check_apache.pl come with the package  nagios-plugins.x86_64 1.4.11-1.el5.rf from the rpmforge repository<br>
<br>thank all !!<br><br><div class="gmail_quote">On Sun, Mar 16, 2008 at 8:21 PM,  <<a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Nagios-users mailing list submissions to<br>
        <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:nagios-users-owner@lists.sourceforge.net">nagios-users-owner@lists.sourceforge.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Nagios-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: setup check_apache.pl (Tom Throckmorton)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 15 Mar 2008 15:44:28 -0400<br>
From: Tom Throckmorton <<a href="mailto:throck@duke.edu">throck@duke.edu</a>><br>
Subject: Re: [Nagios-users] setup check_apache.pl<br>
To: Carlo Alberto Bedogni <<a href="mailto:cabedogni@gmail.com">cabedogni@gmail.com</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Message-ID: <<a href="mailto:20080315194428.GA3359@duke.edu">20080315194428.GA3359@duke.edu</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Mar 15 10:57, Carlo Alberto Bedogni wrote:<br>
> hi all<br>
><br>
> i have nagios 2.10 on centos 5 , i'm trying to install check_apache.pl but<br>
> give me a error 127 .<br>
><br>
> check_apache.pl is locate in /usr/lib64/nagios/plugins/contrib/<br>
><br>
> in /etc/nagios/localhost.cfg i have add this lines :<br>
><br>
> define service{<br>
>        use                              local-service         ; Name of<br>
> service template to use<br>
>        host_name                        localhost<br>
>        service_description              Check apache<br>
>        check_command                    check_apache.pl<br>
>        }<br>
><br>
><br>
> and in /etc/nagios/command.cfg this lines:<br>
><br>
> # 'check_apache.pl' command definition<br>
> define command{<br>
>         command_name    check_apache.pl<br>
>         command_line    $USER1$/check_apache.pl -H $HOSTADDRESS$<br>
>         }<br>
<br>
Carlo,<br>
<br>
Assuming you have $USER1$ set to /usr/lib64/nagios/plugins/, then you need to<br>
change that command_line to:<br>
<br>
>         command_line    $USER1$/contrib/check_apache.pl -H $HOSTADDRESS$<br>
<br>
Regardless, I think this plugin isn't going to do what you want - it's very<br>
old, and doesn't work against Apache 2.x, which is the default on CentOS 5.  If<br>
you think checking via mod_status is really what you want/need, then someone<br>
updated this script a while ago to work with 2.x:<br>
<br>
<a href="http://readlist.com/lists/lists.sourceforge.net/nagios-users/0/320.html" target="_blank">http://readlist.com/lists/lists.sourceforge.net/nagios-users/0/320.html</a><br>
<br>
...are you really just looking to make sure your local Apache instance is<br>
alive?  Have you tried check_http?<br>
<br>
> the plugin check-apache come with a standard rpm for centos...<br>
<br>
Out of curiosity - which rpm are you using and from where?<br>
<br>
Cheers,<br>
<br>
-tt<br>
<br>
--<br>
Tom Throckmorton<br>
OIT - CSI<br>
Duke University<br>
<br>
<br>
<br>
------------------------------<br>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2008.<br>
<a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><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>
<br>
<br>
End of Nagios-users Digest, Vol 22, Issue 28<br>
********************************************<br>
</blockquote></div><br>