-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

trevor obba wrote:
|
|
| I am running Nagios 2.5 on a Suse Enterprise 10; I would
| like to monitor web server running IIS with multiple virtual web sites.

The trick is to address the website by name. Pretty much like this:

define command {
~        command_name    check_http_url
~        command_line    $USER1$/check_http -H $ARG1$ -u $ARG2$
~        }

define service{
~        use                             linux-counter-template
~        host_name                       gimel.counter.li.org
~        service_description             HTTP-counter.li.org
~        check_command
check_http_url!counter.li.org!/index.php
~        contact_groups                  linux-counter
~        }

define service{
~        use                             linux-counter-template
~        host_name                       gimel.counter.li.org
~        service_description             HTTP-i18n.counter.li.org
~        check_command
check_http_url!i18n.counter.li.org!/index.php
~        contact_groups                  linux-counter
~        }

Each virtual website becomes it's own service. But the problem is that
you send the host info with the -H option. But you should send the
virtual server details there instead. As shown in the manual:
~ -H, --hostname=ADDRESS
~    Host name argument for servers using host headers (virtual host)
~    Append a port to include it in the header (eg: example.com:5000)

Hugo.

- --
[EMAIL PROTECTED]               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

        A: Yes.
        >Q: Are you sure?
        >>A: Because it reverses the logical flow of conversation.
        >>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIQnUeBvzDRVjxmYERAj5kAJ4yN96SVErJ+YXk7w+JCFnBcfe0kQCfbXFG
5cZZGc2md6OOpYPimENLBtA=
=c4Gk
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to