Page 1 of 1

Notes_URL/Action_URL query

Posted: Wed Sep 16, 2015 7:05 am
by neworderfac33
Good afternoon,

I'm trying to use the following:

Code: Select all

define host{
        use             windows-server
        host_name MyServerName
        alias           Jenkins-Test-UAT
        address         88.88.88.88
        hostgroups      jenkins-test-masters
        #contact_groups admins
        notes_url       www.bbc.co.uk/sport
        action_url      www.bbc.co.uk/news
        contacts        nagiosadmin
        }
but the host returns:

Not Found
The requested URL /nagios/cgi-bin/www.bbc.co.uk/sport was not found on this server.
Apache/2.2.15 (Red Hat) Server at 10.15.18.112 Port 80

Can anyone advise as to where I'm going wrong, please?

Thanks in advance

Pete

Re: Notes_URL/Action_URL query

Posted: Wed Sep 16, 2015 10:11 am
by tmcdonald
Stick some http:// goodness in front of the URL and you should be good to go.

Re: Notes_URL/Action_URL query

Posted: Wed Sep 16, 2015 10:22 am
by neworderfac33
Good afternoon, thanks for coming back to me.

I tried your suggestion - prefixing my entry with "http:/" was fine, but when I added the second "/", everything after it turned blue (I'm using VIM to edit) like this (leading me to think that it wouldn't work):

define host{
use windows-server
host_name
alias Jenkins-Test-UAT
address 88.88.88.88
hostgroups jenkins-test-masters
#contact_groups admins
notes_url http://www.bbc.co.uk/sport
action_url http://www.bbc.co.uk/news
contacts nagiosadmin
}

However, it DOES verify OK and it DOES work OK in the browser interface, so thank you!

This thread can now be closed.

Thanks

Pete

Re: Notes_URL/Action_URL query

Posted: Wed Sep 16, 2015 10:30 am
by tmcdonald
Considering it didn't highlight the http: part, vim likely was treating it as a comment. Should be fine, I'll lock this up.