[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] IP address - from where?
- To: xymon (at) xymon.com
- Subject: Re: [xymon] IP address - from where?
- From: Vernon Everett <everett.vernon (at) gmail.com>
- Date: Tue, 20 Jul 2010 10:50:26 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=HC8lv15lKSJmrWkZQCvTi2YcSgmYY7IBRZKw0JiWIHU=; b=dzIsPFsgNZRFkij1jnEZu52YwM2pKVzIGHIdqhdgnHkNjUF40IemusvM41h4WkfcT9 gN6scEKMip2hmPplZ1nOllmy8rx59AgmEQeS0tsb6wEcfLLEob5ynQB79AYs4LkoyDPF Wp5DphWyLykPW9yOcDGcy1KDltaKvprRZTOCQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ev03Mt/uYoyQBG2Wc1UuEzKmiF2XqZEX8SoHwXn0UWQh8MAm26Key+OPtf9uAgCpkd AYgH08f+yHSFZ1y8K6XB2M4A6JOxFdV+uM8orrP+kAV4AjK8EGHitCTlgLbDtkp3ifQl 6XeuZO1YucQlymkXxf6CKXotHpS9bb0iJICok=
- References: <AANLkTil7TsBQ4PBT3yr1q2GljfjcoG_RxCJEdBmETQYr (at) mail.gmail.com> <AANLkTikPdfbALacpX3yDXhlD2jjvE1S3qMus5SwaOLY6 (at) mail.gmail.com>
Can somebody confirm this?
We had a monitored host, configured incorrectly in bb-hosts. The IP address
was incorrect.
(The IP address was allocated to a router somewhere on the network)
The entry was as follows. (Name & IP changed)
1.2.3.4 dbsrv1 # ssh oratns:1578 NOCOLUMNS:memory
Should have been
2.3.4.5 dbsrv1 # ssh oratns:1578 NOCOLUMNS:memory
The conn test was green. It could have been pinging the real host (nslookup
dbserv1 gave the correct IP)
Or it could have used the 1.2.3.4 IP of the router, which responds to a
ping.
However, the oratns and ssh columns were perpetually red.
Obviously, the router has no database listener, nor was it accepting ssh
connections (limited using ACLs)
So it looked like it was using the bb-hosts IP. If it was doing a name
lookup, it would have used the correct IP, and returned green.
When I changed the IP in bb-hosts to the correct IP, oratns and ssh both
went green.
I always thought that Xymon does a name lookup, but from this, it appears as
if oratns and ssh use the IP address in bb-hosts.
Which was it using for the ping? Lookup, or bb-hosts?
Cheers
Vernon
On Mon, Jul 19, 2010 at 9:43 PM, Larry Barber <lebarber (at) gmail.com> wrote:
> If you have "testip" in the server's stanza in bb-hosts then Hobbit uses
> the ip address in the bb-hosts file. Otherwise it does a DNS lookup based on
> the server's name.
>
> Thanks,
> Larry Barber
>
>
> On Mon, Jul 19, 2010 at 3:36 AM, Vernon Everett <everett.vernon (at) gmail.com>wrote:
>
>> Hi all
>>
>> Probably need some of the coder types to answer this one for me.
>> For the different network tests, where does Xymon get the IP address from?
>>
>> In particular, ping, ssh, oratns, dns etc.
>> I think I read somewhere that for ping, Xymon does a host name lookup.
>> But is this the case for the other tests?
>>
>> Thanks
>> Vernon
>>
>>
>