Website URL Monitoring Wizard - Invalid URL

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
mmchalla
Posts: 2
Joined: Thu Aug 30, 2012 5:54 am

Website URL Monitoring Wizard - Invalid URL

Post by mmchalla »

Hi,

I am new to Nagios and I have a requirement to monitor a specific URL. I have used the Website URL Monitoring Wizard and see Invalid URL message in Step 2. The URL has , and when I remove that it is accepting. Please suggest me how to monitor URL that has ,

Thanks
Murali
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Website URL Monitoring Wizard - Invalid URL

Post by yancy »

mmchella,

We'll look into fixing the sanity filters for allowing a "," if it's a valid URL character.

In the meantime, you could remove that peice that does the check in the wizard.

edit the following:
/usr/local/nagiosxi/html/includes/configwizards/website/website.inc.php

remove the following two lines on 80 and 81

Code: Select all

                        else if(!valid_url($url))
                                $errmsg[$errors++]="Invalid URL.";
mmchalla
Posts: 2
Joined: Thu Aug 30, 2012 5:54 am

Re: Website URL Monitoring Wizard - Invalid URL

Post by mmchalla »

Hi Yancy

I have removed the lines from the file and it accepted the URL with ,. Thanks a lot for your immediate repsonse.

Murali
Locked