View Full Version : Replace IP by hostname in the agent
Hello,
Is it possible to replace the IP of the server by a hostname like jdoe.myserver.com ?
Is seems impossible now, is it planned for a news release ?
Tank you in advance.
Oliver
James Wells
25-10-2005, 17:49
Greetings,
At present, no, though there are two patches floating around that provide this feature.
Thank you for the quick answer :)
Do you know where these patchs could be ? I couldn't find anything.
James Wells
25-10-2005, 18:18
Do you know where these patchs could be ? I couldn't find anything.
I posted one to the forums here about a month ago, and the original, which I based mine off of, was over on Sourceforge in the patches section for Zabbix.
I found this post http://www.zabbix.com/forum/showthread.php?t=1280
where you submitted a patch for zabbix 1.1alpha12
based on this http://sourceforge.net/tracker/index.php?func=detail&aid=995394&group_id=23494&atid=378685
Can you tell me which one I should use ? And how ? (I'm using ZABBIX 1.1beta2)
Should I use the patch on the server or the client or both ?
Thank you for your help
Oliver
Edit : I found this one http://www.zabbix.com/forum/showthread.php?t=1290 but it looks like it's not finished, right ?
James Wells
25-10-2005, 21:58
It's the third one, but I will have to look into it again. I had forgotten that there was an issue with it. :(
Anyway, the patch is applied to the source code for the zabbix_agent, the agent is then recompiled and deployed as normal from there.
Thank you very much for your help.
I'm in the same case as another user you helped before. I want my agent to connect to the server located on a adsl dynamic ip server, which causes problem when the ip changes
I will write a php or shell script for the client which will check if the ip changes, and if so, rewrite the conf file and restart the agent
I think it's the best way, what's your opinion ?
regards
Oliver
James Wells
25-10-2005, 23:30
Okay, I just posted a fixed version in the Zabbix Patches forum if you want to give it a try.
PATCH: Allow use of server Hostname or IP in agent config (http://www.zabbix.com/forum/showthread.php?t=1290)