How would you monitor a large list of URLs?

Jonah Horowitz JHorowitz at looksmart.net
Wed Oct 15 21:56:05 CEST 2008


On 10/15/08 12:28 PM, "Sean Carolan" <scarolan at gmail.com> wrote:

> I'm sure at least one of you may have been down this path before, so
> here's my question:
> 
> I have a large list of URLs that I'd like to monitor with Nagios.  At
> some point I may break them into groups but for the time being I'd be
> happy to have a simple check_url monitor with the same options for all
> URLs.  How would you tackle this problem?
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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

I would define a URL check template like so:

define service{
        name                            url-service
        active_checks_enabled           1
        passive_checks_enabled          1
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        register                        0
        notification_options            w,u,c,f,r
        servicegroups                   url,notifications
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           2
        retry_check_interval            1
        contact_groups                  admins
        notification_interval           10
        notification_period             24x7
        }

And then follow that with a bunch of short checks.

define service{
        use                             url-service
        host_name                       foo.looksmart.com
        service_description             http check
        check_command                   check_url!/foo/bar/weeeeee
}

define service{
        use                             url-service
        host_name                       bar.looksmart.com
        service_description             http check
        check_command                   check_url!/bar/foo/weeeeee
}

define service{
        use                             url-service
        host_name                       weeeeee.looksmart.com
        service_description             http check
        check_command                   check_url!/weeeeee/query?foo=bar
}


-- 
Jonah Horowitz · Monitoring Manager · jhorowitz at looksmart.net
W: 415-348-7694 · F: 415-348-7033 · M: 415-513-7202
LookSmart - Premium and Performance Advertising Solutions
625 Second Street, San Francisco, CA 94107

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2151 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081015/a96225c7/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- 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