A suggestion for hostnames processing

12 views
Skip to first unread message

Shanti Subramanyam (gmail)

unread,
Dec 28, 2011, 8:19:22 PM12/28/11
to faban...@googlegroups.com
I have run into this issue twice now in the last  couple of months.
Faban strips the specified hostnames at and beyond the first '.' assuming that these are are all part of the domain name. This assumes that the hostnames are just the first part of the full name.
 e.g.: if a host is specified as x.us.company.com - it is assumed that the hostname is 'x'

However, this assumption is not correct. On my mac laptop, the hostname always has a '.local' extension. Similarly on some servers I have used for testing, the hostname includes the first extension after the '.'.
When this happen, Faban is still able to execute the run but it is unable to launch a CmdAgent on the specified host and consequently cannot collect any statistics on it. 

I have fixed this in my own version by stripping out extensions from the 2nd dot i.e.e in the example above, the hostname will be 'x.us' instead of just 'x'. This means that all log files etc. will be created with the 'x.us' extensions e.g. vmstat.log.x.us
I don't see this as a big dis-advantage but wanted to see what others thought before I check my fix in.

Comments?
Shanti

Shanti Subramanyam (gmail)

unread,
Jan 25, 2012, 5:24:32 PM1/25/12
to faban...@googlegroups.com
I just committed a fix for this issue. See https://github.com/akara/faban/issues/22
If you run into any problems with it, please let me know.

Shanti
Reply all
Reply to author
Forward
0 new messages