Hi,
I have changed CMD line as suggested and it works now!
ROOT login active red ROOT login detected! root pts/0 Apr 18 10:22 (<... machine name ...>)
Thank you so much for your support.
Regards.
Massimo Morsiani Information Technology Dept.
Gilbarco S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel: +39-055-30941 fax: +39-055-318603 email: massimo.morsiani at gilbarco.com web: http://www.gilbarco.it
Please consider the environment before printing this e-mail
-----Original Message----- From: cleaver at terabithia.org [mailto:cleaver at terabithia.org] Sent: mercoledì 17 aprile 2013 21:12 To: Morsiani, Massimo Cc: Xymon Email List Subject: Re: [Xymon] How to use xymond_rootlogin.pl (was RE: root login script)
The xymond_rootlogin.pl script is an example of a server-side external script. It runs on the server at a single point and listens to the incoming "client" stream. When it sees relevant data, it then fires off a "status" command with details about that test.
In this respect, it's identical to how xymond_client works, and an example of munging the raw data coming in in new and creative ways w/o having to modify the client reporter.
[xymond_rootlogin] ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg NEEDS xymond CMD $XYMONHOME/ext/xymond_rootlogin.pl LOGFILE $XYMONSERVERLOGS/xymond_rootlogin.log INTERVAL 1m
Change CMD to CMD xymond_channel --channel=client $XYMONHOME/ext/xymond_rootlogin.pl
...and remove the INTERVAL line.