Static and dynamical nonequilibrium fluctuations