The problem of pressure fluctuations in the thermal equilibrium state of some objects is discussed, its solution being suggested via generalizing the Bogoliubov-Zubarev theorem. This theorem relates the thermodynamic pressure with the Hamilton function and its derivatives describing the object in question. It is shown that unlike to other thermodynamic quantities (e.g., the energy or the volume) the pressure fluctuations are described not only by a purely thermodynamic quantity (namely, the corresponding thermodynamic susceptibility) but also by some non-thermodynamic quantities. The attempt is made to apply these results to the relativistic ideal gases, with some numerical results being valid for the limiting ultra-relativistic or high-temperature case.