Projects / pyttymon

pyttymon

pyttymon is a simple daemon that monitors and limits usage of ttys. It is implemented in Python. A simple config file can specify monthly, daily, session, and idle limits based on tty, user, group, and ttys in use. It was inspired by timeoutd, but adds support for monthly maximums and different limits based on the number of ttys in use.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  15 May 2003 13:01

    Release Notes: Recovery was added for when a killed session already exited. The pyttymon 'sac' function was changed to use the '--seconds' parameter for more accuracy. init.d/pyttymon was changed to use --retry 1 on stop and to call itself for restart. Limit checking was changed to be cleaner and to ensure a minimum of "warn" per session.

    •  11 Sep 2001 06:37

      Release Notes: Bug with parsing rawtmp output causing corrupt session times was fixed. Support for warnings as tty load approaches one that would activate a rule with exceeded limits was added. Previously users would be kicked immediately with no warning when the tty load activated a rule with stricter limits than what applied below that load.

      •  29 Aug 2001 20:05

        Release Notes: Email notification for SMTP servers that requre full email addresses has been fixed. A comand line option to specify the hostname used when sending email has been added.

        •  09 Aug 2001 17:17

          No changes have been submitted for this release.

          Recent comments

          24 Sep 2001 20:49 abo

          Works well.
          I've now been using the 0.11 version for some time and it's been working fine. There appears to be no problems with this version.

          The only quirk/feature I've noticed is when the tty usage reaches the point where my more restrictive rules apply, all users exceeding those limits are kicked (after notification) at the same time. This results in the tty load saw-toothing. It would probably be better if only the most-exceeding user was kicked first, thus bringing the tty load down below my limit, allowing the others to stay on.

          29 Aug 2001 08:36 abo

          This _is_ the homepage...
          OK, usual deal for my tiny projects, the freshmeat entry _is_ the homepage. Any comments, questions, etc on this software, either post it here, or email me directly.

          The 0.9 release of pyttymon fixes a fairly serious bug that caused it to crash when sending email notifications on hosts running an smtp server that requires a full email address with hostname. Some smtp servers will automaticly expand bare usernames to email addresses at the local host, but some don't. While I was at it, I added a command line option for specifying the hostname to use for emails.

          Screenshot

          Project Spotlight

          OpenStack4j

          A Fluent OpenStack client API for Java.

          Screenshot

          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.