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 Systems Administration
Licenses GPL
Operating Systems POSIX Linux
Implementation Python

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  15 May 2003 06:01
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  11 Sep 2001 02:37
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  29 Aug 2001 16:05
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  09 Aug 2001 13:17
  • Rrelease-after

No changes have been submitted for this release.

Rss Recent comments

Rcomment-before 24 Sep 2001 20:49 Rcomment-trans abo Rcomment-after

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.

Rcomment-before 29 Aug 2001 08:36 Rcomment-trans abo Rcomment-after

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.

1f85c2f53e0522d6d437d77bb6d82f60_thumb

Project Spotlight

Glade

GUI builder for GTK+ and GNOME

9adb4efe9006992d1b6feab5a44643dd_thumb

Project Spotlight

cb2Bib

A bibliographic reference extracting tool.