<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I started to type this email to describe a problem I was having, and in
the process I figured it out. I thought I would share it for amusement
and learning purposes :)<br>
<br>
I have several hosts that I had to rename. Their DNS and hostname names
changed but IPs remained the same. Example:<br>
myhost-web-1 -> myhost-demoweb-1<br>
myhost-app-3 -> myhost-demoapp-1<br>
myhost-db-2 -> myhost-demodb-1<br>
<br>
I wanted to keep the historical trending info, so I proceded as follows:<br>
1. Stopped the Hobbit server<br>
2. Made the changes to bb-hosts, simply replacing the hostnames<br>
3. renamed data/<b>hist</b>/myhost-web-1.* to data/<b>hist</b>/myhost-demoweb-1
(did the same for the other hosts)<br>
4. renamed data/<b>histlogs</b>/myhost-web-1 to data/<b>histlogs</b>/myhost-demoweb-1
(did the same for the other hosts)<br>
5. renamed data/<b>hostdata</b>/myhost-web-1 to data/<b>hostdata</b>/myhost-demoweb-1
(did the same for the other hosts)<br>
6. renamed data/<b>rrd</b>/myhost-web-1 to data/<b>rrd</b>/myhost-demoweb-1
(did the same for the other hosts)<br>
7. Restarted Hobbit<br>
<br>
After the restart, the new hostnames appeared, but the only status I
had was conn and ssh. After double-checking that I renamed the files
properly and then wondering why I was getting no status updates it hit
me. The hobbit <b>clients</b> had not been restarted! So Hobbit was
polling them (I use <i>pulldata</i>), and they were reporting their
old hostnames. :-) I restarted the clients on the hosts, and viola!
They restarted with their proper hostnames and Hobbit could now
recognize them.<br>
<br>
I am pleased to report that now everything is now as it should be, and
the trending data is intact.<br>
<br>
Ways I could have figured this out quicker:<br>
1. Thinking it all the way through from the beginning. I was smart
enough to stop Hobbit before I began so that it would not create or
overwrite the rrd and other files that I was renaming, but I didn't
think to restart the clients.<br>
2. I could have checked the ghosts report (hobbitd status) and noticed
that the clients were reporting with their old names (I didn't notice
this until after I fixed it)<br>
<br>
Hopefully this "problem" and resolution will prove helpful to someone
... even if it's only to help them chuckle at my newbie mistake :)<br>
<br>
-Charles<br>
</body>
</html>