Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some of our Solaris 10 servers are monitored using SiteScope, which uses Telnet to probe certain ports (SSH is one of them) every few minutes. This is creating an insane amount of lines in /var/adm/wtmpx, and eventually make it so big (2,5G+) that we can no longer run the last command, or that the uptime command is unable to accurately show the true uptime of the server.

The error we get when trying to run the last command is this:

/var/adm/wtmpx: Value too large for defined data type

I have found ways we can clean this accounting log using a cron job (with the command /usr/lib/acct/fwtmp), and this works. This is not the issue. I was wondering if there would be a way to simply prevent connections from the monitoring user (in our case, user monsite) from creating entries in this accounting log at all.

Is this possible, and if so, how can I do it?

I've looked around and searched Google for a while, but couldn't find an answer to this question.

NOTE: We are very well aware that the monitoring solution we employ is perhaps not the best one, but we cannot change it at this time. Therefore, suggesting that we change it is not pertinent to this question. If you want to read more on the Sitescope monitoring solution we employ for those servers, please see its documentation here and look for Port Monitor, and Connecting to remote UNIX servers, which explains how it works.

share|improve this question

Would you be able to try teeing the wtmp output to a different log, filtering out the monsite connections- /usr/bin/egrep -A 5 monsite /var/log/wtmpx > /var/log/something_different and then making an alias to last to point to this new log? /usr/bin/last -f <cleaner_wtmp_log>

It's a tedious bandaid, although it should be able to keep wtmp manageable.

share|improve this answer

Allowing the monsite user to complete a full login is probably not the best monitoring practice. Apart from filling the wtmpx, these hundreds(thousands) of connections will have a negative impact on the server's performance.

For monitoring purposes, a banner grab of the telnet or ssh port should be sufficient to tell if the service is up. The user does not need to complete a login and so will not appear in the wtmpx.

Rather than introducing a potential security hole (untracked user logins), I would focus on improving the monitoring.

share|improve this answer
As much as I appreciate your suggestion (because we don't like the monitoring solution either), we can't change it (for many internal reasons, and mostly, cost reasons). Please see my question, I've added a note to the bottom. Besides, I've already tried that route with our monitoring team (asked if there was anything that could be changed on their end to prevent this), and they can't change anything. It's out-of-the-box monitors and they can't be customized to change this behavior. – Yanick Girouard Mar 13 '12 at 12:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.