<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1"><font face="Calibri">Hi all<br>
<br>
On Debian, at post-install, Collectd is fired up.<br>
If Collectd ever fails to lookup its IP adress from its
hostname, the service startup fails and thus the package
install.<br>
<br>
As I am going to deploy a consequent set of machines with
CFEngine and its package bundle, I would like to perform pre
install checks to be sure the conditions are fullfilled before I
launch the package install.<br>
<br>
How to get the machine hostname to have exactly the same result
as collectd?<br>
- hostname (without options?)<br>
- hostname --fqdn<br>
<br>
How to perform the lookup excactly as collectd would do it
(/etc/hosts is included) ?<br>
- dig ? </font></font><font size="-1"><font face="Calibri"><font
size="-1"><font face="Calibri">(with some parameters?)<br>
</font></font>- nslookup ? (with some parameters?)<br>
<br>
<br>
If some test fail, I need to deploy the right fix and only when
all is clear I will launch package installation.<br>
What is important to me is to to be able to script some check
the closest way as collectd would.<br>
<br>
Thank you for you help.<br>
</font></font>
</body>
</html>