What are the options for monitoring PHP session size from Nagios? I want to identify sessions that go over a certain threshold because they have too much data stored in them.
One option I can think of is listing the size of the files in /var/lib/php/session
and counting the number of files that are over a certain threshold.
Disclaimer: I don't even use PHP - is the size of files in this folder a suitable and accurate-enough indicator of session size? Is there another way?