Notes_URL/Action_URL query

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Notes_URL/Action_URL query

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notes_URL/Action_URL query

Post by tmcdonald »

Stick some http:// goodness in front of the URL and you should be good to go.
Former Nagios employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Notes_URL/Action_URL query

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notes_URL/Action_URL query

Post 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.
Former Nagios employee
Locked