check_http issues...
Victor Lanza
vicjalan at gmail.com
Thu Jun 5 20:28:21 CEST 2008
Ok....it gets weirder..
When I run the command again with that debug script, the log file doesn't
get written. All users have access to write to the tmp directory by default
so I don't know why it is not writing the log.
I tried also running the debug script via the command line in case it was a
permission issue. This time it did write the log file but it isn't much use
since the check_http works from the command line anyways.
I also tried this and got the same results:
http://www.waggy.at/nagios/capture_plugin.htm
My commands were:
define command{
command_name check_http_arg
command_line /$USER1$/check_debug.sh /$USER1$/check_http -H
$HOSTADDRESS$ -a $ARG1$
}
define command{
command_name check_http_arg
command_line /$USER1$/capture_plugin.pl /$USER1$/check_http -H
$HOSTADDRESS$ -a $ARG1$
}
-----Original Message-----
From: richard at quintinz.com [mailto:richard at quintinz.com] On Behalf Of
Richard Quintin
Sent: Thursday, June 05, 2008 1:18 PM
To: Victor Lanza
Cc: nagios Mailinglist
Subject: Re: [Nagios-users] check_http issues...
And the host address for mdfbbsw01 is defined as 10.10.4.10?
If so, I would take a look at check_debug to figure out what's going on.
http://www.nagios.org/faqs/viewfaq.php?faq_id=379
On Thu, Jun 5, 2008 at 1:06 PM, Victor Lanza <vicjalan at gmail.com> wrote:
> I've actually tried both the H and I interchangeably and it only works on
> the command line..regardless of H or I..
>
> -----Original Message-----
> From: richard at quintinz.com [mailto:richard at quintinz.com] On Behalf Of
> Richard Quintin
> Sent: Thursday, June 05, 2008 12:58 PM
> To: Victor Lanza
> Cc: nagios Mailinglist
> Subject: Re: [Nagios-users] check_http issues...
>
> You're using -I and the command line and -H in your conf. This makes
> a difference. I haven't figured out all the details yet, but I
> believe it affects what gets sent in the header...
>
> On Thu, Jun 5, 2008 at 11:57 AM, Victor Lanza <vicjalan at gmail.com> wrote:
>> I feel like this plugin hates me!...
>>
>>
>>
>> I get a critical status with a (Null) Status Information and I can't seem
> to
>> figure out what I am doing wrong.
>>
>>
>>
>> My command looks like this:
>>
>> define command{
>>
>> command_name check_http_arg
>>
>> command_line $USER1$/check_http -H $HOSTADDRESS$ -a $ARG1$
>>
>> }
>>
>>
>>
>> And my service definition looks like this:
>>
>> define service{
>>
>> use master-service
>>
>> host mdfbbsw01
>>
>> service_description Web Interface
>>
>> check_command check_http_arg!admin:'12345'
>>
>> }
>>
>>
>>
>>
>>
>>
>>
>> However from the command line (with root and nagios users) I execute
this:
>>
>> /usr/local/nagios/libexec/check_http -I 10.10.4.10 -a admin:'12345'
>>
>>
>>
>> HTTP OK HTTP/1.1 200 OK - 16447 bytes in 0.150 seconds
>> |time=0.150422s;;;0.000000 size=16447B;;;0
>>
>>
>>
>>
>>
>> Can anyone see anything that I don't?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> --
> Richard Quintin, DBA
> Database & Application Administration
> Virginia Tech
>
>
--
Richard Quintin, DBA
Database & Application Administration
Virginia Tech
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list