Archive for the ‘ snmp ’ Category

Monitoring number of active sessions with SNMP

Posted in Monitoring, sessions, snmp on July 7th, 2010 by aldaris – Comments Off

Monitoring the quantity of active sessions is always a great way to monitor your OpenAM instances load, and guess what OpenAM has an interface for that. :) In OpenAM admin console you can see the active sessions under the Sessions tab, but the list is limited by default to 120 entry. You can’t find a programmatic way to find this out either, since you only could find something like:

SSOTokenManager.getValidSessions();

which will retrieve every single session, but why would anyone do that to get only the count of them?
So if you want to monitor your sessions in a proper way, then you just need to follow the next few steps:

In SSO console go to Configuration -> System -> Monitoring Check that the ‘Monitoring SNMP interface status’ is enabled Install the ‘snmpwalk’ SNMP tool on your system Execute the following command: snmpwalk -c public -v 2c :8085 enterprises.42.2.230.3.1.1.2.1.11.1.0

and there you go. This way you could easily create a munin script, so you could show nice charts about active sessions for management. :)

Note: the SNMP port is 8085 by default, but it’s configurable of course.