Baka
Menu

Detect root login and generate its status

This script retrieves the sections "who" and "clock" from last raw client message and send a status message.
Non-green if root logged in.

Installation:
Download and copy rootlogin.sh to xymon ext directory /usr/lib/xymon/server/ext/.
Create new file /etc/xymon/tasks.d/rootlogin.cfg:

[rootlogin]
	#DISABLED
	ENVFILE /etc/xymon/xymonserver.cfg
	CMD $XYMONHOME/ext/rootlogin.sh
	LOGFILE $XYMONSERVERLOGS/rootlogin.log
	INTERVAL 1m

 

Download

 

Screenshots: