![](https://secure.gravatar.com/avatar/5f0b4aff1c1665c0f465959e36f917e9.jpg?s=120&d=mm&r=g)
Make it a config option and submit it as a patch!
On Fri, Mar 15, 2013 at 6:21 AM, Andreas Rüdel < observium@blueeyedcreature.net> wrote:
thanks so much!
works
Andreas
On 15 March 2013 12:29, Michiel Klaver michiel@klaver.it wrote:
At 15-03-2013 09:59, Andreas Rüdel wrote:
Hi, Observium
- I need some hint where I can change the behaviour of observium to cut
avay domains after the first dot - we used subdomains to segment our hardware so now all devices are called the same on the overview screen. (alarms / events)
Example: switch1.site1.country1 switch1.site2.country1 switch1.site1.country2 and so on.. (I know it's boring but we ran out of elven names at one point...) ;)
on the overview page they would all be called "switch1" when I go to "devices" everything is just fine
can this be changed somewhere? could not find in config.php and don't
dare
editing the other files
It's not changeable as config option, but located here: /opt/observium/includes/common.php
Search for line 149: function shorthost($hostname, $len=12)
And change 12 to 30, or something that fit's your needs...
THIS IS A QUICK HACK, COULD BREAK SVN, NO SUPPORT.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium