Compensating for hostname changes
![](https://secure.gravatar.com/avatar/a8f7f23f357ea6a471f31f31a374575f.jpg?s=120&d=mm&r=g)
My company wants to institute a naming convention change and as such, we'd need to update the hostnames in Observium to match.
I presume that Observium will not magically update anything if a hostname changes, and I'm sure others have gone through this activity in the past, so I'd like feedback on what's the best way to go about it and any caveats.
From my very limited perspective on the matter, I think all I need to do is change the hostnames in the hostname column of the devices table in conjunction with renaming the $observium/rrds/$hostname to match the change.
Yes? No? Maybe So?
Thanks in advance.
![](https://secure.gravatar.com/avatar/42d9edbe2df229bd7f590c4f289ba563.jpg?s=120&d=mm&r=g)
On 06.11.2013 19:46, Jason Lixfeld wrote:
My company wants to institute a naming convention change and as such, we'd need to update the hostnames in Observium to match.
I presume that Observium will not magically update anything if a hostname changes, and I'm sure others have gone through this activity in the past, so I'd like feedback on what's the best way to go about it and any caveats.
From my very limited perspective on the matter, I think all I need to do is change the hostnames in the hostname column of the devices table in conjunction with renaming the $observium/rrds/$hostname to match the change.
Yes? No? Maybe So?
$ php ./rename_device.php <old hostname> <new hostname>
Thanks in advance. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/a8f7f23f357ea6a471f31f31a374575f.jpg?s=120&d=mm&r=g)
Amazeballs!
On Nov 6, 2013, at 11:03 AM, Mike Stupalov landy2005@gmail.com wrote:
On 06.11.2013 19:46, Jason Lixfeld wrote:
My company wants to institute a naming convention change and as such, we'd need to update the hostnames in Observium to match.
I presume that Observium will not magically update anything if a hostname changes, and I'm sure others have gone through this activity in the past, so I'd like feedback on what's the best way to go about it and any caveats.
From my very limited perspective on the matter, I think all I need to do is change the hostnames in the hostname column of the devices table in conjunction with renaming the $observium/rrds/$hostname to match the change.
Yes? No? Maybe So?
$ php ./rename_device.php <old hostname> <new hostname>
Thanks in advance. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
This has existed for almost as long as observium has existed for these reasons:
a) everyone else's naming schemes suck b) i always change naming schemes at new companies c) it usually takes longer to change the naming scheme than it does to install observium
:D
adam.
On 2013-11-06 16:11, Jason Lixfeld wrote:
Amazeballs!
On Nov 6, 2013, at 11:03 AM, Mike Stupalov landy2005@gmail.com wrote:
On 06.11.2013 19:46, Jason Lixfeld wrote: My company wants to institute a naming convention change and as such, we'd need to update the hostnames in Observium to match.
I presume that Observium will not magically update anything if a hostname changes, and I'm sure others have gone through this activity in the past, so I'd like feedback on what's the best way to go about it and any caveats.
From my very limited perspective on the matter, I think all I need to do is change the hostnames in the hostname column of the devices table in conjunction with renaming the $observium/rrds/$hostname to match the change.
Yes? No? Maybe So?
$ php ./rename_device.php <old hostname> <new hostname>
Thanks in advance. _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
On 11/06/2013 04:46 PM, Jason Lixfeld wrote:
My company wants to institute a naming convention change and as such, we'd need to update the hostnames in Observium to match.
I presume that Observium will not magically update anything if a hostname changes, and I'm sure others have gone through this activity in the past, so I'd like feedback on what's the best way to go about it and any caveats.
From my very limited perspective on the matter, I think all I need to do is change the hostnames in the hostname column of the devices table in conjunction with renaming the $observium/rrds/$hostname to match the change.
Yes? No? Maybe So?
Thanks in advance.
What about the renamehost.php cli command we provide for this? :)
Tom
participants (4)
-
Adam Armstrong
-
Jason Lixfeld
-
Mike Stupalov
-
Tom Laermans