Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
MultiURL Patch
Compatible With
- Nagios 3.x
Owner
Hits
162219
Files:
File | Description |
---|---|
nagios-3.2.1-multiurl-patch.txt | nagios-3.2.1-multiurl-patch.txt |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This patch, currently against Nagios 3.2.1 , changes the parsing of action_url and notes_url by the CGI-bins. For example, if you specify
notes_url '/wiki?page=$HOSTNAME$' '/stats?host=$HOSTNAME$&srv=$SERVICEDESC$' /doc/$HOSTNAME$.html
for a service, you will get ***three*** icons with hyperlinks to the three URLs.
The icons referenced will be "1-notes.gif" for the link to /wiki, "2-notes.gif" for the /stats link, and the usual "notes.gif" for the link to /doc because it does not *start* with a single quote.
If you need to use "URLs" which themselves contain single quotes (see the PNP4Nagios docs for a real-world example), you will have to put them *last* and *not* start them with a single quote.
Known bug: The part of the Nagios CGI code dealing with *_urls of host/service *groups* is structured in a different way, and has *not* been patched accordingly.
Important note: There's a bug in Nagios 3.2.1 which may cause action_url / notes_url URLs to get truncated within a status.cgi page; the MultiURL patch makes this problem more visible than before. You may want to install my "Nagios 3.2.1 *_url Fix" as well. Upcoming versions of Nagios will already include that fix.
notes_url '/wiki?page=$HOSTNAME$' '/stats?host=$HOSTNAME$&srv=$SERVICEDESC$' /doc/$HOSTNAME$.html
for a service, you will get ***three*** icons with hyperlinks to the three URLs.
The icons referenced will be "1-notes.gif" for the link to /wiki, "2-notes.gif" for the /stats link, and the usual "notes.gif" for the link to /doc because it does not *start* with a single quote.
If you need to use "URLs" which themselves contain single quotes (see the PNP4Nagios docs for a real-world example), you will have to put them *last* and *not* start them with a single quote.
Known bug: The part of the Nagios CGI code dealing with *_urls of host/service *groups* is structured in a different way, and has *not* been patched accordingly.
Important note: There's a bug in Nagios 3.2.1 which may cause action_url / notes_url URLs to get truncated within a status.cgi page; the MultiURL patch makes this problem more visible than before. You may want to install my "Nagios 3.2.1 *_url Fix" as well. Upcoming versions of Nagios will already include that fix.
Reviews (0)
Be the first to review this listing!