[hobbit] Sample of Hobbit server-side module (was: Who Test)
The script works but is generating this message in the log :- Use of uninitialized value in concatenation (.) at /usr/local/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 841341. Any ideas? Thanks, Chris
-----Original Message----- From: Henrik Stoerner [SMTP:henrik at hswn.dk] Sent: Monday, January 29, 2007 10:17 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Sample of Hobbit server-side module (was: Who Test)
In <001e01c743d6$a5c32340$4902010a at rac.raccorp.corp> "Richard Leon" <rleon at racenter.com> writes:
Am I missing something? The rootlogin.pl is not working .
Can you run it by hand ? Do this
BB=/bin/echo BBDISP=0.0.0.0 ~hobbit/server/ext/rootlogin.pl
and feed it this input:
---- cut here ---- @@client#12345/localhost|1169985951.340108|10.0.0.152|localhost|sunos|suno s [who] hstoerne pts/0 Jan 28 00:07 (from somewhere) root ttyS0 Nov 1 11:13 @@ ---- end of input ----
It should yield this output:
0.0.0.0 status localhost.login red ROOT login active
&red ROOT login detected!
hstoerne pts/0 Jan 28 00:07 (from somewhere) root ttyS0 Nov 1 11:13
I suspect it's something silly like your perl being in /usr/local/bin instead of /usr/bin (adjust the first line of the script if that is the case).
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
**************************************************************************** Make a New Year's resolution to get your heating equipment checked. If you don't you could be adding as much as 10% to your heating bill without knowing it. Source: Carbon Trust (2006) **************************************************************************** This e-mail is provided for general information purposes only and does not constitute investment or transactional advice. For the avoidance of doubt the contents of this email are subject to contract and will not constitute a legally binding contract. The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this e-mail in error, please notify postmaster at npower.com (UK 01384 275454) and delete it immediately from your system. Neither Npower nor any of the other companies in the RWE Npower group from whom this e-mail originates accept any responsibility for losses or damage as a result of any viruses and it is your responsibility to check attachments (if any) for viruses. RWE Npower plc Registered office: Windmill Hill Business Park, Whitehill Way, Swindon SN5 6PB. Registered in England and Wales: number 3892782. This e-mail may be sent on behalf of a member of the RWE Npower group of companies. *****************************************************************************
That is a normal Perl gripe if you use one of the pragmas (use strict; use warning) or have the -w switch in the first line. Without this stuff, Perl silently "handles" this condition -- Perl was not always militant about having variables predeclared and initialized prior to first use. GLH -----Original Message----- From: Morris, Chris (SS-IS) [mailto:CHRIS.MORRIS at RWEnpower.com] Sent: Tuesday, January 30, 2007 5:04 AM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] Sample of Hobbit server-side module (was: Who Test) The script works but is generating this message in the log :- Use of uninitialized value in concatenation (.) at /usr/local/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 841341. Any ideas? Thanks, Chris
-----Original Message----- From: Henrik Stoerner [SMTP:henrik at hswn.dk] Sent: Monday, January 29, 2007 10:17 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Sample of Hobbit server-side module (was: Who Test)
In <001e01c743d6$a5c32340$4902010a at rac.raccorp.corp> "Richard Leon" <rleon at racenter.com> writes:
Am I missing something? The rootlogin.pl is not working .
Can you run it by hand ? Do this
BB=/bin/echo BBDISP=0.0.0.0 ~hobbit/server/ext/rootlogin.pl
and feed it this input:
---- cut here ---- @@client#12345/localhost|1169985951.340108|10.0.0.152|localhost|sunos| suno s [who] hstoerne pts/0 Jan 28 00:07 (from somewhere) root ttyS0 Nov 1 11:13 @@ ---- end of input ----
It should yield this output:
0.0.0.0 status localhost.login red ROOT login active
&red ROOT login detected!
hstoerne pts/0 Jan 28 00:07 (from somewhere) root ttyS0 Nov 1 11:13
I suspect it's something silly like your perl being in /usr/local/bin instead of /usr/bin (adjust the first line of the script if that is the case).
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
************************************************************************ **** Make a New Year's resolution to get your heating equipment checked. If you don't you could be adding as much as 10% to your heating bill without knowing it. Source: Carbon Trust (2006) ************************************************************************ **** This e-mail is provided for general information purposes only and does not constitute investment or transactional advice. For the avoidance of doubt the contents of this email are subject to contract and will not constitute a legally binding contract. The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this e-mail in error, please notify postmaster at npower.com (UK 01384 275454) and delete it immediately from your system. Neither Npower nor any of the other companies in the RWE Npower group from whom this e-mail originates accept any responsibility for losses or damage as a result of any viruses and it is your responsibility to check attachments (if any) for viruses. RWE Npower plc Registered office: Windmill Hill Business Park, Whitehill Way, Swindon SN5 6PB. Registered in England and Wales: number 3892782. This e-mail may be sent on behalf of a member of the RWE Npower group of companies. ************************************************************************ ***** To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tue, Jan 30, 2007 at 11:03:56AM -0000, Morris, Chris (SS-IS) wrote:
The script works but is generating this message in the log :-
Use of uninitialized value in concatenation (.) at /usr/local/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 841341.
Like I said, I'm not a Perl programmer :-) I cannot see what would be unitialized in that line.
Regards, Henrik
Perl gripes when you set a variable to "" and then use it in a concatenation. One workaround is to use the -w switch and the "strict" pragma during development, then turn them off in production to reduce the noise.
GLH
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Tuesday, January 30, 2007 10:49 AM To: hobbit at hswn.dk Subject: Re: [hobbit] Sample of Hobbit server-side module (was: Who Test)
The script works but is generating this message in the log :-
Use of uninitialized value in concatenation (.) at /usr/local/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line
On Tue, Jan 30, 2007 at 11:03:56AM -0000, Morris, Chris (SS-IS) wrote: 841341.
Like I said, I'm not a Perl programmer :-) I cannot see what would be unitialized in that line.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I have had it running the "Who Test" for about a day now. And half of my systems have gone to purple. I have logged in as root and they system is still reporting a purple state.
On Tue, Jan 30, 2007 at 11:15:08AM -0600, Richard Leon wrote:
I have had it running the "Who Test" for about a day now. And half of my systems have gone to purple. I have logged in as root and they system is still reporting a purple state.
The version I posted had a bug, so if there were no users logged in, it would not update the status - and it would go purple after half an hour.
The quick fix is to change
Start of new message section.
$cursection = $1; $sections{ $cursection } = ""; to
Start of new message section.
$cursection = $1; $sections{ $cursection } = "\n";
i.e. put a "\n" into the $sections.... variable.
Henrik
Hi all,
I successfully installed Hobbit client on our AIX servers. And I want to monitor some critical processes.
Below you can find a portion of my hobbit-clients.cfg related to one of these servers.
HOST=proge.flr.gilbarco.com MEMSWAP 70 85 PROC /opt/rational/clearcase/etc/albd_server 1 1 red PROC /opt/rational/clearcase/etc/lockmgr 1 1 red PROC vob_server 1 50 red TRACK=vob_server "TEXT=ClearCase VOB server" DIR /opt/freeware/libexec/hobbit TRACK DIR /hobbitclient TRACK
The problem is that TRACK seems not working anymore. Neither for PROC rule, nor for DIR rule. I have no graph at all. Why?
Regards.
Massimo Morsiani Information Technology Dept.
Gilbarco S.p.a. via de' Cattani, 220/G 50145 Firenze tel: +39-055-30941 fax: +39-055-318603 email: massimo.morsiani at gilbarco.com web: http://www.gilbarco.it
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: martedì 30 gennaio 2007 17.49 To: hobbit at hswn.dk Subject: Re: [hobbit] Sample of Hobbit server-side module (was: Who Test)
On Tue, Jan 30, 2007 at 11:03:56AM -0000, Morris, Chris (SS-IS) wrote:
The script works but is generating this message in the log :-
Use of uninitialized value in concatenation (.) at /usr/local/hobbit/server/ext/rootlogin.pl line 76, <STDIN> line 841341.
Like I said, I'm not a Perl programmer :-) I cannot see what would be unitialized in that line.
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.
Where are these rules in relation to the default settings? Hobbit only takes the first matching rule so they must be above the default. Jason.
-----Original Message----- From: Morsiani, Massimo [mailto:massimo.morsiani at gilbarco.com] Sent: 30 January 2007 19:09 To: hobbit at hswn.dk Subject: [hobbit] hobbit-clients.cfg TRACK tag issues
Hi all,
I successfully installed Hobbit client on our AIX servers. And I want to monitor some critical processes.
Below you can find a portion of my hobbit-clients.cfg related to one of these servers.
HOST=proge.flr.gilbarco.com MEMSWAP 70 85 PROC /opt/rational/clearcase/etc/albd_server 1 1 red PROC /opt/rational/clearcase/etc/lockmgr 1 1 red PROC vob_server 1 50 red TRACK=vob_server "TEXT=ClearCase VOB server" DIR /opt/freeware/libexec/hobbit TRACK DIR /hobbitclient TRACK
The problem is that TRACK seems not working anymore. Neither for PROC rule, nor for DIR rule. I have no graph at all. Why?
Regards.
Massimo Morsiani Information Technology Dept.
Gilbarco S.p.a. via de' Cattani, 220/G 50145 Firenze tel: +39-055-30941 fax: +39-055-318603 email: massimo.morsiani at gilbarco.com web: http://www.gilbarco.it
Hi Jason,
reported rules are above the default rules section in my hobbit-clients.cfg.
Regards.
Massimo Morsiani Information Technology Dept.
Gilbarco S.p.a. via de' Cattani, 220/G 50145 Firenze tel: +39-055-30941 fax: +39-055-318603 email: massimo.morsiani at gilbarco.com web: http://www.gilbarco.it
-----Original Message----- From: Jones, Jason (Altrincham) [mailto:JasonAS_Jones at mentor.com] Sent: mercoledì 31 gennaio 2007 9.55 To: hobbit at hswn.dk Subject: RE: [hobbit] hobbit-clients.cfg TRACK tag issues
Where are these rules in relation to the default settings? Hobbit only takes the first matching rule so they must be above the default. Jason.
-----Original Message----- From: Morsiani, Massimo [mailto:massimo.morsiani at gilbarco.com] Sent: 30 January 2007 19:09 To: hobbit at hswn.dk Subject: [hobbit] hobbit-clients.cfg TRACK tag issues
Hi all,
I successfully installed Hobbit client on our AIX servers. And I want to monitor some critical processes.
Below you can find a portion of my hobbit-clients.cfg related to one of these servers.
HOST=proge.flr.gilbarco.com MEMSWAP 70 85 PROC /opt/rational/clearcase/etc/albd_server 1 1 red PROC /opt/rational/clearcase/etc/lockmgr 1 1 red PROC vob_server 1 50 red TRACK=vob_server "TEXT=ClearCase VOB server" DIR /opt/freeware/libexec/hobbit TRACK DIR /hobbitclient TRACK
The problem is that TRACK seems not working anymore. Neither for PROC rule, nor for DIR rule. I have no graph at all. Why?
Regards.
Massimo Morsiani Information Technology Dept.
Gilbarco S.p.a. via de' Cattani, 220/G 50145 Firenze tel: +39-055-30941 fax: +39-055-318603 email: massimo.morsiani at gilbarco.com web: http://www.gilbarco.it
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.
participants (6)
-
CHRIS.MORRIS@RWEnpower.com
-
greg.hubbard@EDS.COM
-
henrik@hswn.dk
-
JasonAS_Jones@mentor.com
-
massimo.morsiani@gilbarco.com
-
rleon@racenter.com