<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px;background-color:rgb(255,255,255)"><div dir="ltr">Is there a way to display the IP address instead of the hostname in the overview webpages. I suppose I can use the NAME tag but it would mean I have to add NAME tags to every host in host.cfg</div></div></div></blockquote><div><br></div><div>Firsty, I'm curious why you would want to show the IP address and not the hostname.  If the IP address is more useful, why aren't the devices named "device-192-168-0-100"?</div><div><br></div><div>Secondly, do you know that you can click on an "info" link and get the IP addres?</div><div><br></div><div>Thirdly, I'm not aware of a simple way to do what you're asking, certainly nothing built in to Xymon.</div><div><br></div><div>Here are a few non-trivial options:</div><div><br></div><div>1. Modify the source code ;-)  Actually, there are several features that I'd love to see configurable in xymongen, such as: a) hover or click to show a pop-up with some basic information about the server, perhaps some or all of the "info" page, or the contents of the "notes" page; b) configurable click-to-connect to launch telnet:// or ssh:// URLs; c) click to popup an offline/online option for the host; d) similar for shift-clicking on a status dot.  Most, if not all of these, would have to be implemented in JavaScript, at least in part.  But an option to expand some variables in the NAME: and DESCR: tags to include $IP would be coded directly in xymongen C code.</div><div><br></div><div>2. You could automate the generation of the NAME tags in hosts.cfg.  Perhaps you could have a "hosts.src" file, and then you periodically create "hosts.cfg" such that it contains everything in "hosts.src" with an extra "NAME:192.168.0.100" type tag.</div><div><br></div><div>3. You could do a similar thing, but build a special include file containing only the IP address, hostname and alternative hostname, then use "dispinclude" to include this file BEFORE the real host description.  Like this:</div><div><br></div><div><u>hosts.cfg:</u></div><div><br></div><div>dispinclude named-by-ip.cfg</div><div><br></div><div><font face="monospace, monospace">192.168.0.100 <a href="http://host1.example.com">host1.example.com</a> # noconn ssh</font></div><div><font face="monospace, monospace">192.168.1.53 <a href="http://host2.example.com">host2.example.com</a> # dns</font></div><div><br></div><div><u>named-by-ip.cfg:</u></div><div><br></div><div><font face="monospace, monospace">192.168.0.100 <a href="http://host1.example.com">host1.example.com</a> # NAME:192.168.0.100</font></div><div><font face="monospace, monospace">192.168.1.53 <a href="http://host2.example.com">host2.example.com</a> # NAME:192.168.1.53</font></div><div><br></div><div>You would simply generate the file "named-by-ip.cfg" automatically whenever hosts.cfg is updated, or periodically.</div><div><br></div><div>4. You could probably do this sort of thing with some javascript magic.  I'm guessing it would be possible to include a little javascript within the page footer, that scans through the <span title=> tags, performs a web lookup to the "info" column to get the IP address, and replaces the hostname text.  I've done this kind of thing to allow hostnames to be clickable, enhancing the hostname text to be a hotlink to an "ssh://" or "telnet://" style URL.  Described here: <a href="http://lists.xymon.com/archive/2012-March/034227.html">http://lists.xymon.com/archive/2012-March/034227.html</a></div><div><br></div></div></div></div>