We introduce a new family of Poisson vertex algebras W(a) analogous to the classical W-algebras. The algebra W(a) is associated with the centralizer a of an arbitrary nilpotent element in glN. We show that W(a) is an algebra of polynomials in infinitely many variables and produce its free generators in an explicit form. This implies that W(a) is isomorphic to the center at the critical level of the affine vertex algebra associated with a.