I would like to add a custom URL pointing to a network share on a per node basis. We used to have that setup in my previous job, but I don't know how it was done. Can somebody share some instructions? Thanks in advance
test using a link like this - which takes advantage of "macros" within NPM...
http://<DNSNAME>/${<macro>}
Replace:
<DNSNAME> = name of URL to point to...
<macro> = column name of field used for substitution. i.e. ip_address for the IP of the system or if you have custom property called URL for each node...
Here is my real world example:
The linux team uses snmp description [<decsription> column] to put system ID in for their "kickstart" system.
<a href="https://xxxx.yyyyy.com/rhn/systems/details/Overview.do?sid=${Description}">https://xxx.yyyyy.com/rhn/systems/details/Overview.do?sid=${Description}</a> or
<a href="https://xxxx.yyyyy.com/rhn/systems/details/Overview.do?sid=${Description}">readable link title</a>
Hi, thanks for the help. Where do I put that? In Custom HTML block or do I add the link to the site's Custom Properties?
custom HTML block is probably easiest, though you could do either. Custom HTML block will show up on the page(s) you add to where custom property will not unless you display that custom property specifically.
Well, I am able to display the path to the shared drive, but it's not showing a hyperlink. This is what I was trying to do:
I added a custom property field called Documents: \\shared\drive\path\etc
On Custom HTML I display different properties using this: "<strong>Documents:</strong> ${Documentation}<br>"
I am able to display the path to each folder (per site) but don't know how to make it a hyperlink.
assuming not a typo, the ${} macro has to be same "column" name as custom property.
"<strong>Documents:</strong> ${Documentats}<br>"
Though HTML may just interpret that directly and not make it a link.
try:
"<strong><a href="${Documentation}"> Documents:</a></strong><br>"
No go.. the link doesn't even show ...
nothing in the <a href .....> section will show up. if you click on the "Documents:" though, that should take you to your original link "\\shared\drive\path\etc"
look at W3Schools Online Web Tutorials This is a great place to quickly get html running. look at linking sections for this type of link.