Re: [Vserver] snmp & vserver

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 06 Dec 2006 - 20:56:44 GMT
Message-ID: <20061206205643.GD16927@MAIL.13thfloor.at>

On Mon, Dec 04, 2006 at 02:13:51PM -0600, John Alberts wrote:
> Is this what the new option 'Remap Source IP Address' is for?
> The description reads:
> CONFIG_VSERVER_REMAP_SADDR:
> ?
> ? This allows to remap the source IP address of 'local'
> ? connections from 127.0.0.1 to the first assigned
> ? guest IP.
> ?
> ? Symbol: VSERVER_REMAP_SADDR [=n]
> ? Prompt: Remap Source IP Address
> ? Defined at kernel/vserver/Kconfig:50
> ? Depends on: EXPERIMENTAL && !VSERVER_LEGACY
>
> Is there a disadvantage to turning this on? It seems that this would
> even be a nice default config option for vserver.

really depends on the application and usage pattern
sometimes the apps expect the source to be 127.0.0.1
in other cases, they are fine if src == dst
that's basically why it is an option, but it will
go away (read: be superceeded) in the 2.3.x branch

HTH,
Herbert

> - John
>
>
>
> On 12/3/06, Herbert Poetzl <herbert@13thfloor.at> wrote:
> >On Sun, Dec 03, 2006 at 09:31:14PM -0500, Adrien Laurent wrote:
> >> Hi,
> >>
> >> With the setup:
> >> host: centos 4 - 2.6.18.1-vs2.0.2.2-rc4 - eth0(192.168.0.1) -
> >> lo(127.0.0.1) -> runs snmp
> >> guest: centos 4 - eth0(192.168.0.2) -> runs snmp & cacti
> >
> >you probably do not want to run snmp inside a guest,
> >instead you want to monitor the guest from the host
> >(which saves you tasks and provides more information)
> >
> >> I'm trying to graph the usage of my vserver using snmp and cacti; I
> >> face the following problems:
> >>
> >> - Cacti default setup ping 127.0.0.1 which is not activated by default
> >> on my vserver guest, is it possible to enable lo(127.0.0.1) on a guest
> >> ?
> >
> >it should 'ping' localhost, if it actually 'pings'
> >127.0.0.1, it is broken, otherwise just adjust
> >/etc/hosts to list the first assigned ip as localhost
> >
> >> - When I graph the snmp from guest I get the ip & data of the host
> >> 192.168.0.1
> >
> >probably because you actually connect to the snmp
> >running on the host ...
> >
> >> - Do you know an easy way on how I could get network stat per ip for
> >> all the vservers ?
> >
> >use an iptables accounting rule to get 'on wire'
> >statistics for single ips (or groups of ips)
> >
> >HTH,
> >Herbert
> >
> >> Thanks a lot for any help !
> >>
> >>
> >> Adrien
> >>
> >>
> >>
> >> --
> >> Adrien Laurent
> >> Chief Information Officer
> >> (514) 284-2020 x 202
> >> adrien@modulis.ca
> >> www.modulis.ca
> >>
> >> Technical questions? support@modulis.ca
> >> _______________________________________________
> >> Vserver mailing list
> >> Vserver@list.linux-vserver.org
> >> http://list.linux-vserver.org/mailman/listinfo/vserver
> >_______________________________________________
> >Vserver mailing list
> >Vserver@list.linux-vserver.org
> >http://list.linux-vserver.org/mailman/listinfo/vserver
> >

> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Dec 6 22:23:35 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Dec 2006 - 22:23:42 GMT by hypermail 2.1.8