The zeta-function and Gibbs measures