≡ Menu

statistics

The rndc stats commands created /var/named/chroot/var/named/data/named_stats.txt file under RHEL 5.x or CentOS 5.x BIND 9 server. However, date is not is correct format. The date is in the following format:
grep 'Dump' /var/named/chroot/var/named/data/named_stats.txt
outputs:

+++ Statistics Dump +++ (1263408025)
--- Statistics Dump --- (1263408025)
+++ Statistics Dump +++ (1263408071)
--- Statistics Dump --- (1263408071)
+++ Statistics Dump +++ (1268304218)
--- Statistics Dump --- (1268304218)
+++ Statistics Dump +++ (1268304248)
--- Statistics Dump --- (1268304248)

How do I convert date (e.g., 1263408025) in a human readable format?
[click to continue…]

Monitor Linux user activity in real time

Q. How do I Monitor Linux User Activity in real time?

A. The whowatch program scans the most current common log file of Linux server and creates the following statistics in real time:

=> The users currently logged on to the machine, in real-time.
=> User login name,
=> User tty
=> User host name
=> User's process
=> The type of the connection (ie. telnet or ssh)
=> Display of users command line can be switch to tty idle time.
=> Certain user can be selected and his processes tree may be viewed as well as tree of all system processes.
=> Kill user process etc

I have already written how to install and configure whowatch. Please refer this previous article.