monitoring website
Harry John
irvine.harris at gmail.com
Tue Mar 10 08:40:57 CET 2009
When I enter
define command {
command_name check_http_path
command_line /usr/local/nagios/libexec/check_http -H '$ARG1$' -u
'$ARG2$' -w $ARG3$ -c $ARG4$
}
it gives error
Name or service not known
HTTP CRITICAL - Unable to open TCP socket
thx
On Tue, Mar 10, 2009 at 11:33 AM, Harry John <irvine.harris at gmail.com>wrote:
> Hello friends,
> First of all thanks for ur immense support..
> But im making some mistake,I get this error from nagios webpage
>
> Current Status: CRITICAL
> (for 0d 0h 42m 23s) Status Information: (Return code of 127 is out of
> bounds - plugin may be missing)
>
> My command.cfg is as follows
>
> # 'check_http' command definition
> define command{
> command_name check_http
> command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
> }
> # 'check_http_path'
> define command {
> command_name check_http_path
> command_line check_http -H '$ARG1$' -u '$ARG2$' -w $ARG3$ -c $ARG4$
> }
>
> i've the check_http plugin at /usr/local/nagios/libexec/check_http (with
> chown nagios.nagios)
>
> Should I change the commandline as it is just IP?
> Thanks,
> Harry
>
>
>
>
>
> On Tue, Mar 10, 2009 at 12:14 AM, Justin Pasher <
> justinp at newmediagateway.com> wrote:
>
>> Justin Pasher wrote:
>>
>>> Harry John wrote:
>>>
>>>
>>>> Hi friends,
>>>> am just wondering how to monitor a website as
>>>> http://172.168.1.1:82/xap/murl2?language=en
>>>> define service{
>>>> use generic-service ; Inherit default values from a template
>>>> host_name remotehost
>>>> service_description HTTP
>>>> check_command check_http
>>>> }
>>>> How do I fit this link here?
>>>>
>>>>
>>>
>>> define service {
>>> use generic-service ; Inherit default values from a template
>>> host_name remotehost
>>> service_description HTTP
>>> check_command check_http_path!172.168.1.1:82 <
>>> http://172.168.1.1:82/xap/murl2?language=en>!/xap/murl2?language=en <
>>> http://172.168.1.1:82/xap/murl2?language=en>!25!50
>>> }
>>>
>>>
>>
>> Agh.. stupid Thunderbird. It should look like this:
>>
>> define service {
>> use generic-service ; Inherit default values from a template
>> host_name remotehost
>> service_description HTTP
>> check_command check_http_path!172.168.1.1:82
>> !/xap/murl2?language=en!25!50
>> }
>>
>>
>>
>> --
>> Justin Pasher
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090310/d11b9aec/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
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