
Check the /etc/nsswitch.conf file on the observium host to make sure it's actually using the /etc/hosts file for lookups. You can do this quickly with the following command:
grep 'hosts' /etc/nsswitch.conf
You should see something like "hosts: files dns" or possibly a more complicated version. The important thing is that 'files' appear before 'dns' in the list. You can edit the file if necessary, just don't change the other lines unless you know what you're doing. You may also have to restart the nscd service (or just reboot) to make the changes take effect.
On Fri, Mar 13, 2015 at 1:13 AM, Tshering DHENDUP tshering.dhendup@bt.bt wrote:
Yes,
I did edit the hosts file where observium is installed.
Regards
Tshering DHENDUP(MR) Internet & IT Operations Division Bhutan Telecom Ltd www.bt.bt
Contact# +975-2-343434 [Ext: 2022]
On Friday 13 March 2015 02:01 PM, Watson Kamanga wrote:
Are u editing the hosts files where observium is installed . Ping the device by name from the server where you have installed
observium .
Regards
Watson
Sent from my iPhone
On 13 Mar 2015, at 9:57 AM, Tshering DHENDUP tshering.dhendup@bt.bt
wrote:
I added in /etc/hosts as
192.168.128.1 sw1 sw1.xxx.local
I tried adding the host as sw1 and sw1.xxx.local still no progress. It's saying not able to resolve. I suppose we have to have a private DNS which resolves IP into hosts and vice versa. Are my thoughts correct?
Regards
Tshering DHENDUP(MR) Internet & IT Operations Division Bhutan Telecom Ltd www.bt.bt
Contact# +975-2-343434 [Ext: 2022]
On Friday 13 March 2015 01:34 PM, Cliff Albert wrote:
Just add the hostname <-> ip mappings to your /etc/hosts file.
We do it for almost every observium instance we work on.
On 13/03/2015 07:50, Tshering DHENDUP wrote: Hello,
You mean add the device IP and the name even if the IP /device name is not mapped in the DNS?
Regards
Tshering DHENDUP(MR) Internet & IT Operations Division Bhutan Telecom Ltd www.bt.bt
Contact# +975-2-343434 [Ext: 2022] me
On Friday 13 March 2015 12:39 PM, Watson Kamanga wrote: Add the IP address and the name of the device .
/watson
Sent from my iPhone
> On 13 Mar 2015, at 8:34 AM, Tshering DHENDUP > tshering.dhendup@bt.bt wrote: > > Hi, > > Thank you. What do you mean by "add a host file entry on the
server" ?
> Should I add in the /etc/hosts as follows ( without private DNS) > > vi /etc/hosts > > 192.168.x.x server example.server ------- entry for the observium > server? > 192.168.y.y sw1 sw1.server ----------------entry for switch or > router? > > > Will this work? > > > Regards > > > Tshering DHENDUP(MR) > Internet & IT > Operations Division > Bhutan Telecom Ltd > www.bt.bt > > Contact# +975-2-343434 [Ext: 2022] > >> On Friday 13 March 2015 11:48 AM, Carlos Martinez wrote: >> The devices must be DNS resolvable you could add a host file entry >> on the server. >> >> Sent from my iPad >> >>> On Mar 12, 2015, at 10:45 PM, Tshering DHENDUP >>> tshering.dhendup@bt.bt wrote: >>> >>> Dear Team, >>> >>> We are trying to add private IP address to the observium. Our >>> picture: >>> the observium server is having a private IP address tho' NATed to
a
>>> public ip address. I am trying to add the private IP( of a >>> switch/router), and it gives me the following error >>> >>> Try to add 192.168.128.1: >>> Could not resolve 192.168.128.1. >>> Devices skipped: 1. >>> >>> >>> >>> Does this mean that, the devices can't be added using their IP? Or >>> should the IP be DNS mapped( resolvable )? >>> >>> >>> Regards >>> >>> >>> -- >>> Tshering DHENDUP(MR) >>> Internet & IT >>> Operations Division >>> Bhutan Telecom Ltd >>>
http://cp.mcafee.com/d/2DRPoQd6Qm4T4QTTSnPtPqdT7ASbIKfCQrKf9In78LCQrL9zzhOMC...
>>> >>> >>> Contact# +975-2-343434 [Ext: 2022] >>> _______________________________________________ >>> observium mailing list >>> observium@observium.org >>>
http://cp.mcafee.com/d/2DRPoO96Qm4T4QTTSnPtPqdT7ASbIKfCQrKf9In78LCQrL9zzhOMC...
>> _______________________________________________ >> observium mailing list >> observium@observium.org >> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium > _______________________________________________ > observium mailing list > observium@observium.org > http://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium