Nagios HTTP monitoring

Marc Powell marc at ena.com
Fri Jun 22 19:33:55 CEST 2007



> -----Original Message-----
> From: Jerad Riggin [mailto:jriggin at gmail.com]
> Sent: Friday, June 22, 2007 12:27 PM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios HTTP monitoring {Disarmed} {Fraud?}
> {Disarmed} {Fraud?}
> 
> commands.cfg
> 
> # 'check_http' command definition
> define command{
>         command_name    check_http
>         command_line    $USER1$/check_http -H $HOSTADDRESS$ $ARG1$ -a
> $ARG2$
>         }
> 
> Here is an entry in services.cfg
> 
> define service{
>         use                             basic-service
>         name                            check-site
>         notification_options            w,u,c,r
>         check_command                   check_http!-H site.com -t 5 -a
> admin:password -s "String"
>         register                        0
>         }

So the command that nagios is actually executing looks like --

/path/to/check_http -H <whatever hostaddress is> -H site.com -t 5 -a
admin:password -s "String" -a <blank>

It's not surprising it's not doing what you expect it to.

--
Marc


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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