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.