Xymon Mailing List Archive search

root login script

12 messages in this thread

list Massimo Morsiani · Wed, 17 Apr 2013 11:09:51 +0000 ·
Hi all,

is there anyone that is using one script to check if root user is logged on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the 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:  user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
list Ryan Novosielski · Wed, 17 Apr 2013 07:13:32 -0400 ·
I can't imagine it would be much different than any other external client script. What is the real question? What have you tried?
quoted from Massimo Morsiani


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 07:09 AM
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script

Hi all,

is there anyone that is using one script to check if root user is logged on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the 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:  user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
list Massimo Morsiani · Wed, 17 Apr 2013 12:00:15 +0000 ·
Hi,

I have tried to use "xymond_rootlogin.pl" but w/o any result.

I have copied it in .../xymon/server/ext/ and I have added the following to tasks.cfg.

[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

After these actions nothing happens that is no result at all (neither new login test, nor xymond_rootlogin.log file).

Where am I wrong?
Thanks in advance.
signature


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:  user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


-----Original Message-----

quoted from Ryan Novosielski
From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 13:14
To: Morsiani, Massimo; 'xymon at xymon.com'
Subject: Re: [Xymon] root login script

I can't imagine it would be much different than any other external client script. What is the real question? What have you tried?


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 07:09 AM
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script

Hi all,

is there anyone that is using one script to check if root user is logged on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the 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:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail
quoted from Ryan Novosielski


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
list Ryan Novosielski · Wed, 17 Apr 2013 08:05:10 -0400 ·
What are you trying to do with this test. Wouldn't it normally be run on each client machine you're checking? In any case, my guess is another logfile is logging something about it (maybe xymond.log -- I forget the names off the top of my head). 
quoted from Massimo Morsiani

----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 08:00 AM
To: Novosielski, Ryan; 'xymon at xymon.com' <xymon at xymon.com>
Subject: RE: [Xymon]  root login script

Hi,

I have tried to use "xymond_rootlogin.pl" but w/o any result.

I have copied it in .../xymon/server/ext/ and I have added the following to tasks.cfg.

[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

After these actions nothing happens that is no result at all (neither new login test, nor xymond_rootlogin.log file).

Where am I wrong?
Thanks in advance.


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:  user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


-----Original Message-----
From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 13:14
To: Morsiani, Massimo; 'xymon at xymon.com'
Subject: Re: [Xymon] root login script

I can't imagine it would be much different than any other external client script. What is the real question? What have you tried?


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 07:09 AM
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script

Hi all,

is there anyone that is using one script to check if root user is logged on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the 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:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
list Massimo Morsiani · Wed, 17 Apr 2013 16:27:08 +0000 ·
Hi,

I'm trying to run it on Xymon *itself*, but nothing happens...

Henrik could you please explain me how to use your ext?
quoted from Ryan Novosielski
Thanks in advance.


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:  user-32025d8bd22e@xymon.invalid 
web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


-----Original Message-----
From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] 
Sent: mercoledì 17 aprile 2013 14:05
To: Morsiani, Massimo; 'xymon at xymon.com'
Subject: Re: [Xymon] root login script

What are you trying to do with this test. Wouldn't it normally be run on each client machine you're checking? In any case, my guess is another logfile is logging something about it (maybe xymond.log -- I forget the names off the top of my head). 


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 08:00 AM
To: Novosielski, Ryan; 'xymon at xymon.com' <xymon at xymon.com>
Subject: RE: [Xymon]  root login script

Hi,

I have tried to use "xymond_rootlogin.pl" but w/o any result.

I have copied it in .../xymon/server/ext/ and I have added the following to tasks.cfg.

[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

After these actions nothing happens that is no result at all (neither new login test, nor xymond_rootlogin.log file).

Where am I wrong?
Thanks in advance.


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:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


-----Original Message-----
From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid]
Sent: mercoledì 17 aprile 2013 13:14
To: Morsiani, Massimo; 'xymon at xymon.com'
Subject: Re: [Xymon] root login script

I can't imagine it would be much different than any other external client script. What is the real question? What have you tried?


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 07:09 AM
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script

Hi all,

is there anyone that is using one script to check if root user is logged on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the 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:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.

Please be advised that this email may contain confidential 
information.  If you are not the intended recipient, please notify us 
by email by replying to the sender and delete this message.  The 
sender disclaims that the content of this email constitutes an offer 
to enter into, or the acceptance of, any agreement; provided that the 
foregoing does not invalidate the binding effect of any digital or 
other electronic reproduction of a manual signature that is included 
in any attachment.
list Galen Johnson · Wed, 17 Apr 2013 17:47:44 +0000 ·
You may want to search the archives.  I seem to recall Henrik putting it out there originally as an example...including explanations.

=G=
quoted from Massimo Morsiani

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of Morsiani, Massimo [user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 12:27 PM
To: Novosielski, Ryan; 'xymon at xymon.com'
Subject: [Xymon] How to use xymond_rootlogin.pl (was RE: root login script)

Hi,

I'm trying to run it on Xymon *itself*, but nothing happens...

Henrik could you please explain me how to use your ext?
Thanks in advance.


Regards.

Massimo Morsiani
Information Technology Dept.
Gilbarco S.r.l.
via de' Cattani, 220/G
50145 Firenze, Italy

tel:    +XX-XXX-XXXXX
fax:    +XX-XXX-XXXXXX
quoted from Massimo Morsiani
email:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


-----Original Message-----
From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid]
Sent: mercoledì 17 aprile 2013 14:05
To: Morsiani, Massimo; 'xymon at xymon.com'
Subject: Re: [Xymon] root login script

What are you trying to do with this test. Wouldn't it normally be run on each client machine you're checking? In any case, my guess is another logfile is logging something about it (maybe xymond.log -- I forget the names off the top of my head).


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 08:00 AM
To: Novosielski, Ryan; 'xymon at xymon.com' <xymon at xymon.com>
Subject: RE: [Xymon]  root login script

Hi,

I have tried to use "xymond_rootlogin.pl" but w/o any result.

I have copied it in .../xymon/server/ext/ and I have added the following to tasks.cfg.

[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

After these actions nothing happens that is no result at all (neither new login test, nor xymond_rootlogin.log file).

Where am I wrong?
Thanks in advance.


Regards.

Massimo Morsiani
Information Technology Dept.
Gilbarco S.r.l.
via de' Cattani, 220/G
50145 Firenze, Italy

tel:    +XX-XXX-XXXXX
fax:    +XX-XXX-XXXXXX
quoted from Massimo Morsiani
email:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


-----Original Message-----
From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid]
Sent: mercoledì 17 aprile 2013 13:14
To: Morsiani, Massimo; 'xymon at xymon.com'
Subject: Re: [Xymon] root login script

I can't imagine it would be much different than any other external client script. What is the real question? What have you tried?


----- Original Message -----
From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid]
Sent: Wednesday, April 17, 2013 07:09 AM
To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script

Hi all,

is there anyone that is using one script to check if root user is logged on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the support.


Regards.

Massimo Morsiani
Information Technology Dept.
Gilbarco S.r.l.
via de' Cattani, 220/G
50145 Firenze, Italy

tel:    +XX-XXX-XXXXX
fax:    +XX-XXX-XXXXXX
quoted from Massimo Morsiani
email:  user-32025d8bd22e@xymon.invalid
web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.


Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.

Please be advised that this email may contain confidential
information.  If you are not the intended recipient, please notify us
by email by replying to the sender and delete this message.  The
sender disclaims that the content of this email constitutes an offer
to enter into, or the acceptance of, any agreement; provided that the
foregoing does not invalidate the binding effect of any digital or
other electronic reproduction of a manual signature that is included
in any attachment.
list Ryan Novosielski · Wed, 17 Apr 2013 13:51:20 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Massimo,

I'm unfamiliar with this extension, but all of the extension scripts
I've worked work essentially the same way -- you install the client
and then add them to the client as per the documentation. Rehashing
the documentation is not something I'm planning to do on the mailing
list, but I'm happy to help if you read it and something is unclear.

=R
quoted from Galen Johnson

On 04/17/2013 12:27 PM, Morsiani, Massimo wrote:
Hi,

I'm trying to run it on Xymon *itself*, but nothing happens...

Henrik could you please explain me how to use your ext? Thanks in
advance.


Regards.

Massimo Morsiani Information Technology Dept. ------ Gilbarco
S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


-----Original Message----- From: Novosielski, Ryan
[mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 14:05 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon] root
login script

What are you trying to do with this test. Wouldn't it normally be
run on each client machine you're checking? In any case, my guess
is another logfile is logging something about it (maybe xymond.log
-- I forget the names off the top of my head).


----- Original Message ----- From: Morsiani, Massimo
[mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April 17,
2013 08:00 AM To: Novosielski, Ryan; 'xymon at xymon.com'
<xymon at xymon.com> Subject: RE: [Xymon]  root login script

Hi,

I have tried to use "xymond_rootlogin.pl" but w/o any result.

I have copied it in .../xymon/server/ext/ and I have added the
following to tasks.cfg.

[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

After these actions nothing happens that is no result at all
(neither new login test, nor xymond_rootlogin.log file).

Where am I wrong? Thanks in advance.


Regards.

Massimo Morsiani Information Technology Dept. ------ Gilbarco
S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


-----Original Message----- From: Novosielski, Ryan
[mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 13:14 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon] root
login script

I can't imagine it would be much different than any other external
client script. What is the real question? What have you tried?


----- Original Message ----- From: Morsiani, Massimo
[mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April 17,
2013 07:09 AM To: 'xymon at xymon.com' <xymon at xymon.com> Subject:
[Xymon]  root login script

Hi all,

is there anyone that is using one script to check if root user is
logged on Unix/Linux machines? Or is there anyone that is using
"xymond_rootlogin.pl" and can explain me how to use it? Thanks in
advance for the support.


Regards.

Massimo Morsiani Information Technology Dept. ------ Gilbarco
S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

ü Please consider the environment before printing this e-mail


Please be advised that this email may contain confidential
information.  If you are not the intended recipient, please notify
us by email by replying to the sender and delete this message.  The
sender disclaims that the content of this email constitutes an
offer to enter into, or the acceptance of, any agreement; provided
that the foregoing does not invalidate the binding effect of any
digital or other electronic reproduction of a manual signature that
is included in any attachment. 

Please be advised that this email may contain confidential
information.  If you are not the intended recipient, please notify
us by email by replying to the sender and delete this message.  The
sender disclaims that the content of this email constitutes an
offer to enter into, or the acceptance of, any agreement; provided
that the foregoing does not invalidate the binding effect of any
digital or other electronic reproduction of a manual signature that
is included in any attachment.

Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify
us by email by replying to the sender and delete this message.  The
 sender disclaims that the content of this email constitutes an
offer to enter into, or the acceptance of, any agreement; provided
that the foregoing does not invalidate the binding effect of any
digital or other electronic reproduction of a manual signature that
is included in any attachment.
- -- - ---- _  _ _  _ ___  _  _  _

|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlFu4RMACgkQmb+gadEcsb6B+QCdFpZUWwymK7IP1qKQKLxL3tRK
kKQAoNrOw3I5sGNpSLvQKK10llamystN
=5BTY
-----END PGP SIGNATURE-----
list Ryan Novosielski · Wed, 17 Apr 2013 13:54:26 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually, what you may be missing is that some external scripts are
run on the server, or the machine doing the network tests (they tend
to be scripts to test network services remotely). Most external
scripts I think, however, run as part of the Xymon client (which is
installed per machine). The internal tasks to check the disk space are
an example, and any others that require commands to be run on each
machine (as I'd guess this one does). It's in the documentation though.
quoted from Ryan Novosielski

On 04/17/2013 01:51 PM, Novosielski, Ryan wrote:
Massimo,

I'm unfamiliar with this extension, but all of the extension
scripts I've worked work essentially the same way -- you install
the client and then add them to the client as per the
documentation. Rehashing the documentation is not something I'm
planning to do on the mailing list, but I'm happy to help if you
read it and something is unclear.

=R

On 04/17/2013 12:27 PM, Morsiani, Massimo wrote:
Hi,
I'm trying to run it on Xymon *itself*, but nothing happens...
Henrik could you please explain me how to use your ext? Thanks
in advance.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel: +39-055-30941 fax:    +XX-XXX-XXXXXX email: user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
 Please consider the environment before printing this e-mail
-----Original Message----- From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 14:05
 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon]
root login script
What are you trying to do with this test. Wouldn't it normally
be run on each client machine you're checking? In any case, my
guess is another logfile is logging something about it (maybe
xymond.log -- I forget the names off the top of my head).
----- Original Message ----- From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April
17, 2013 08:00 AM To: Novosielski, Ryan; 'xymon at xymon.com' <xymon at xymon.com> Subject: RE: [Xymon]  root login script
Hi,
I have tried to use "xymond_rootlogin.pl" but w/o any result.
I have copied it in .../xymon/server/ext/ and I have added the following to tasks.cfg.
[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
After these actions nothing happens that is no result at all (neither new login test, nor xymond_rootlogin.log file).
Where am I wrong? Thanks in advance.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel: +39-055-30941 fax:    +XX-XXX-XXXXXX email: user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
ü Please consider the environment before printing this e-mail
-----Original Message----- From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 13:14
 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon]
root login script
I can't imagine it would be much different than any other
external client script. What is the real question? What have you
tried?
----- Original Message ----- From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April
17, 2013 07:09 AM To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script
Hi all,
is there anyone that is using one script to check if root user
is logged on Unix/Linux machines? Or is there anyone that is
using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the support.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel: +39-055-30941 fax:    +XX-XXX-XXXXXX email: user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
ü Please consider the environment before printing this e-mail
Please be advised that this email may contain confidential information.  If you are not the intended recipient, please
notify us by email by replying to the sender and delete this
message.  The sender disclaims that the content of this email
constitutes an offer to enter into, or the acceptance of, any
agreement; provided that the foregoing does not invalidate the
binding effect of any digital or other electronic reproduction of

a manual signature that is included in any attachment. _______________________________________________ Xymon mailing
list Xymon at xymon.com
quoted from Ryan Novosielski
Please be advised that this email may contain confidential information.  If you are not the intended recipient, please
notify us by email by replying to the sender and delete this
message.  The sender disclaims that the content of this email
constitutes an offer to enter into, or the acceptance of, any
agreement; provided that the foregoing does not invalidate the
binding effect of any digital or other electronic reproduction of
a manual signature that is included in any attachment.
Please be advised that this email may contain confidential information.  If you are not the intended recipient, please
notify us by email by replying to the sender and delete this
message.  The sender disclaims that the content of this email
constitutes an offer to enter into, or the acceptance of, any
agreement; provided that the foregoing does not invalidate the
binding effect of any digital or other electronic reproduction of
a manual signature that is included in any attachment.
- -- - ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlFu4dIACgkQmb+gadEcsb4tbACgoO2Jepj017dIinb1ZPJBxdw5
7BcAoMKbuXHU7mKz8I+NpvMiBe0YiMvl
=pxth
-----END PGP SIGNATURE-----
list Japheth Cleaver · Wed, 17 Apr 2013 19:12:24 -0000 (UTC) ·
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.


From the perl source, you should start seeing "login" statuses show up as
soon as the clients next report in.


HTH,

-jc
quoted from Ryan Novosielski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually, what you may be missing is that some external scripts are
run on the server, or the machine doing the network tests (they tend
to be scripts to test network services remotely). Most external
scripts I think, however, run as part of the Xymon client (which is
installed per machine). The internal tasks to check the disk space are
an example, and any others that require commands to be run on each
machine (as I'd guess this one does). It's in the documentation though.

On 04/17/2013 01:51 PM, Novosielski, Ryan wrote:
Massimo,

I'm unfamiliar with this extension, but all of the extension
scripts I've worked work essentially the same way -- you install
the client and then add them to the client as per the
documentation. Rehashing the documentation is not something I'm
planning to do on the mailing list, but I'm happy to help if you
read it and something is unclear.

=R

On 04/17/2013 12:27 PM, Morsiani, Massimo wrote:
Hi,
I'm trying to run it on Xymon *itself*, but nothing happens...
Henrik could you please explain me how to use your ext? Thanks
in advance.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco
S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
 Please consider the environment before printing this e-mail
-----Original Message----- From: Novosielski, Ryan
[mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 14:05
quoted from Ryan Novosielski
 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon]
root login script
What are you trying to do with this test. Wouldn't it normally
be run on each client machine you're checking? In any case, my
guess is another logfile is logging something about it (maybe
xymond.log -- I forget the names off the top of my head).
----- Original Message ----- From: Morsiani, Massimo
[mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April
17, 2013 08:00 AM To: Novosielski, Ryan; 'xymon at xymon.com'
<xymon at xymon.com> Subject: RE: [Xymon]  root login script
Hi,
I have tried to use "xymond_rootlogin.pl" but w/o any result.
I have copied it in .../xymon/server/ext/ and I have added the
following to tasks.cfg.
[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
After these actions nothing happens that is no result at all
(neither new login test, nor xymond_rootlogin.log file).
Where am I wrong? Thanks in advance.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco
S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
ü Please consider the environment before printing this e-mail
-----Original Message----- From: Novosielski, Ryan
[mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 13:14
quoted from Ryan Novosielski
 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon]
root login script
I can't imagine it would be much different than any other
external client script. What is the real question? What have you
tried?
----- Original Message ----- From: Morsiani, Massimo
[mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April
17, 2013 07:09 AM To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script
Hi all,
is there anyone that is using one script to check if root user
is logged on Unix/Linux machines? Or is there anyone that is
using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the support.
Regards.
Massimo Morsiani Information Technology Dept.
list Galen Johnson · Wed, 17 Apr 2013 20:06:54 +0000 ·
Here's a stupid question...is the script actually executable by xymon? at the very least r-x------?  (more likely rwxr-xr-x)

=G=

NB: cut the ever-growing, unnecessary quoted content...
list Massimo Morsiani · Thu, 18 Apr 2013 08:30:06 +0000 ·
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.
signature


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:  user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it

 Please consider the environment before printing this e-mail


-----Original Message-----

quoted from Japheth Cleaver
From: user-87556346d4af@xymon.invalid [mailto:user-87556346d4af@xymon.invalid] 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.


From the perl source, you should start seeing "login" statuses show up as soon as the clients next report in.


HTH,

-jc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually, what you may be missing is that some external scripts are run on the server, or the machine doing the network tests (they tend to be scripts to test network services remotely). Most external scripts I think, however, run as part of the Xymon client (which is installed per machine). The internal tasks to check the disk space are an example, and any others that require commands to be run on each machine (as I'd guess this one does). It's in the documentation though.

On 04/17/2013 01:51 PM, Novosielski, Ryan wrote:
Massimo,

I'm unfamiliar with this extension, but all of the extension scripts I've worked work essentially the same way -- you install the client and then add them to the client as per the documentation. Rehashing the documentation is not something I'm planning to do on the mailing list, but I'm happy to help if you read it and something is unclear.

=R

On 04/17/2013 12:27 PM, Morsiani, Massimo wrote:
Hi,
I'm trying to run it on Xymon *itself*, but nothing happens...
Henrik could you please explain me how to use your ext? Thanks in advance.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
 Please consider the environment before printing this e-mail
quoted from Japheth Cleaver
-----Original Message----- From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 14:05
 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon] root login script
What are you trying to do with this test. Wouldn't it normally be run on each client machine you're checking? In any case, my guess is another logfile is logging something about it (maybe xymond.log -- I forget the names off the top of my head).
----- Original Message ----- From: Morsiani, Massimo [mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April 17, 2013 08:00 AM To: Novosielski, Ryan; 'xymon at xymon.com'
<xymon at xymon.com> Subject: RE: [Xymon]  root login script
Hi,
I have tried to use "xymond_rootlogin.pl" but w/o any result.
I have copied it in .../xymon/server/ext/ and I have added the following to tasks.cfg.
[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
After these actions nothing happens that is no result at all (neither new login test, nor xymond_rootlogin.log file).
Where am I wrong? Thanks in advance.
Regards.
Massimo Morsiani Information Technology Dept. ------ Gilbarco S.r.l. via de' Cattani, 220/G 50145 Firenze, Italy tel:
+39-055-30941 fax:    +XX-XXX-XXXXXX email:
user-32025d8bd22e@xymon.invalid web:    http://www.gilbarco.it
ü Please consider the environment before printing this e-mail
-----Original Message----- From: Novosielski, Ryan [mailto:user-ae4522577e16@xymon.invalid] Sent: mercoledì 17 aprile 2013 13:14
 To: Morsiani, Massimo; 'xymon at xymon.com' Subject: Re: [Xymon] root login script
I can't imagine it would be much different than any other external client script. What is the real question? What have you tried?
----- Original Message ----- From: Morsiani, Massimo
[mailto:user-32025d8bd22e@xymon.invalid] Sent: Wednesday, April
17, 2013 07:09 AM To: 'xymon at xymon.com' <xymon at xymon.com>
Subject: [Xymon]  root login script
Hi all,
is there anyone that is using one script to check if root user
is logged on Unix/Linux machines? Or is there anyone that is
using "xymond_rootlogin.pl" and can explain me how to use it?
Thanks in advance for the support.
Regards.
Massimo Morsiani Information Technology Dept.

Please be advised that this email may contain confidential information.  If you are not the intended recipient, please notify us by email by replying to the sender and delete this message.  The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
list Jeremy Laidman · Fri, 19 Apr 2013 14:52:31 +1000 ·
quoted from Massimo Morsiani
On 17 April 2013 21:09, Morsiani, Massimo <user-32025d8bd22e@xymon.invalid>wrote:
is there anyone that is using one script to check if root user is logged
on Unix/Linux machines?
Or is there anyone that is using "xymond_rootlogin.pl" and can explain me
how to use it?
Thanks in advance for the support.
IMHO, this script seems overkill, given what's now possible within Xymon
these days.  The "who" output is already available in the client data, and
could be extracted and analysed server-side with something like:

#!/bin/sh
HOSTLIST=`xymongrep rootcheck`
for HOSTNAME in $HOSTLIST; do
  WHO=`xymon localhost 'clientlog name.of.server section=who"`
  [ "$WHO" ] || continue # skip hosts without [who]
  if echo "$WHO" | grep "^root" >/dev/null; then
    MSG="status $HOSTNAME.root red root logins detected"
  else
    MSG="status $HOSTNAME.root green no root logins detected"
  fi
  xymon $XYMSRV "$MSG
$WHO"
done

This just finds all the hosts.cfg entries with "rootcheck" present, and
reports where "who" shows that root is logged in.  This would be run from
tasks.cfg.

Another way to do this, without having to create and maintain an actual
script file, is to use backticks to create a virtual log file entry in
client-local.cfg, like so:

log:`exec 2>/dev/null; { grep '^$' /tmp/who.log >/dev/null && >/tmp/who.log
|| echo "" >>/tmp/who.log; } && who >> /tmp/who.log && echo
/tmp/who.log`:10240

This collects lines from a virtual logfile /tmp/who.log, that contains the
who output.  This allows you to monitor the who logfile with analysis.cfg,
like so:

HOST=*
  LOG /tmp/who.log %^root COLOR=red TEXT="Root login detected"

This backticks scriptlet is a little complicated because it needs to make
sure the virtual logfile size changes every time, otherwise Xymon's
logfetch process might not detect any difference in the file and not report
anything.

J