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.
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/2DRPoQd6Qm4T4QTTSnPtPqdT7ASbIKfCQrKf9In78LCQrL9zzhOMCOUrhKUYCMyOyyrIHIpOxUE2AdDGQBLVsSxIZmAJ_bC_76zAsDtZ_HYejd7bzTnKnjp78YyCUMDvBHEShjlhhvVkffGhBrwqrhdFCXYyUqenAkmkXL6XCOD49YgCrGgFYjcCRiV2Hsbvg5l8k-9CjqL00jrbNEVKrdboo8k-9CjqFFtd46E8iwhd42Qp6tDVEwAIq8dggzZa6ShNJkHCO0ZN
>>>>>>>>
>>>>>>>>
>>>>>>>> Contact# +975-2-343434 [Ext: 2022]
>>>>>>>> _______________________________________________
>>>>>>>> observium mailing list
>>>>>>>> observium@observium.org
>>>>>>>> http://cp.mcafee.com/d/2DRPoO96Qm4T4QTTSnPtPqdT7ASbIKfCQrKf9In78LCQrL9zzhOMCOUrhKUYCMyOyyrIHIpOxUE2AdDGQBLVsSxIZmAJ_bC_76zAsDtZ_HYejd7bzTnKnjp78YyCUMDvBHEShjlhhvVkffGhBrwqrjdFCXYyUqenAkmkXL6XCM0qRqjlS7a-HYVmU03w25O4Eo9GX33VkDa3JsGgFYjcCRjti5fypASGn8lrxrW0GF2DNcOrlU02rpud7dPpFr312DNcOrldbFEwR12k29Ewmz8PI_d44Bzh1G24vFgSOedQm8J
>>>>>>> _______________________________________________
>>>>>>> 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