Xymon Mailing List Archive search

Hobbit logs

12 messages in this thread

list Ryan Jay B. Lapuz · Fri, 5 Oct 2007 18:24:48 +0800 ·
Hi all!

I just notice that the hobbit logs from my debug hobbbit server are being rotated every week (I think) but I don't remember if I've done something for it.
And yet the hobbit logs from my new hobbit server are not rotating.
Is the rotation of the hobbit logs is automatic?
or do I need to initialize it?

Thanks and regards,

Ryan
list Tom Kauffman · Fri, 5 Oct 2007 09:52:07 -0400 ·
I'm in the process of migrating to a new hobbit server and have run into
one of those 'interesting' problems.

 
This system also runs cricket (http://cricket.sourceforge.net
<http://cricket.sourceforge.net/>; )  for network switch monitoring, so I
started to move it yesterday.

 
The entire cricket menu is generated by a perl cgi script called
'grapher.cgi'. I've got ported; running it by hand generates a valid
html file. 
 
Under IE 7.0 I get the cricket menu. 
 
Firefox downloads the script. On the old server, firefox runs the script
just fine.

 
The hobbit cgi scripts are working correctly on the new system (both
firefox and IE).

 
Suggestions?

 
The web server is Apache2 on SuSE Enterprise Linux 10.

 
TIA

 
Tom Kauffman

NIBCO, Inc


CONFIDENTIALITY NOTICE:  This email and any attachments are for the exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify us immediately by return email and promptly delete this message and its attachments from your computer system. We do not waive  attorney-client or work product privilege by the transmission of this
message.
list Josh Luthman · Fri, 5 Oct 2007 12:04:03 -0400 ·
I come across this many times with users installing PHP on their Apache
server.  This is most definitely a problem between Apache and Firefox.

If IE7's request is executing it then Firefox's request should be no
different - though you can do advanced options based on different client
types.

Try comparing the two Apache configuration files and see if there are
differences in your Directory statements.
quoted from Tom Kauffman

On 10/5/07, Kauffman, Tom <user-3feba9e60a8b@xymon.invalid> wrote:
  I'm in the process of migrating to a new hobbit server and have run into
one of those 'interesting' problems.


This system also runs cricket (http://cricket.sourceforge.net)  for network switch monitoring, so I started to move it yesterday.


The entire cricket menu is generated by a perl cgi script called
'grapher.cgi'. I've got ported; running it by hand generates a valid html
file.


Under IE 7.0 I get the cricket menu.


Firefox downloads the script. On the old server, firefox runs the script
just fine.


The hobbit cgi scripts are working correctly on the new system (both
firefox and IE).


Suggestions?


The web server is Apache2 on SuSE Enterprise Linux 10.


TIA


Tom Kauffman

NIBCO, Inc

CONFIDENTIALITY NOTICE:  This email and any attachments are for the
exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in
reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this
message.

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Tom Kauffman · Fri, 5 Oct 2007 14:47:41 -0400 ·
Thanks, gotit.

 
Among other things, the browser caches were causing issues . . .

 
Tom Kauffman

NIBCO, Inc
quoted from Josh Luthman

 
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Friday, October 05, 2007 12:04 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] OT question on a strange CGI issue

 
I come across this many times with users installing PHP on their Apache
server.  This is most definitely a problem between Apache and Firefox.

If IE7's request is executing it then Firefox's request should be no
different - though you can do advanced options based on different client
types. 
Try comparing the two Apache configuration files and see if there are
differences in your Directory statements.

On 10/5/07, Kauffman, Tom < user-3feba9e60a8b@xymon.invalid
<mailto:user-3feba9e60a8b@xymon.invalid> > wrote:

I'm in the process of migrating to a new hobbit server and have run into
one of those 'interesting' problems.

 
This system also runs cricket ( <http://cricket.sourceforge.net/>; http://cricket.sourceforge.net <http://cricket.sourceforge.net/>; )  for
network switch monitoring, so I started to move it yesterday.

 
The entire cricket menu is generated by a perl cgi script called
'grapher.cgi'. I've got ported; running it by hand generates a valid
html file. 
 
Under IE 7.0 I get the cricket menu. 
 
Firefox downloads the script. On the old server, firefox runs the script
just fine.

 
The hobbit cgi scripts are working correctly on the new system (both
firefox and IE).

 
Suggestions?

 
The web server is Apache2 on SuSE Enterprise Linux 10.

 
TIA

 
Tom Kauffman

NIBCO, Inc

CONFIDENTIALITY NOTICE:  This email and any attachments are for the 
exclusive and confidential use of the intended recipient.  If you are
not

the intended recipient, please do not read, distribute or take action in


reliance upon this message. If you have received this in error, please 
notify us immediately by return email and promptly delete this message 
and its attachments from your computer system. We do not waive  


attorney-client or work product privilege by the transmission of this

message.


-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer 

CONFIDENTIALITY NOTICE:  This email and any attachments are for the exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify us immediately by return email and promptly delete this message and its attachments from your computer system. We do not waive  attorney-client or work product privilege by the transmission of this
message.
list Steve Holmes · Mon, 8 Oct 2007 15:45:36 -0400 ·
AFIK hobbit logs are not automatically rotated unless you tel the OS to do
it.

Which OS?

Steve.
quoted from Ryan Jay B. Lapuz


On 10/5/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
 Hi all!

I just notice that the hobbit logs from my debug hobbbit server are being
rotated every week (I think) but I don't remember if I've done something for
it.
And yet the hobbit logs from my new hobbit server are not rotating.
Is the rotation of the hobbit logs is automatic?
or do I need to initialize it?

Thanks and regards,

Ryan
list Gary Baluha · Mon, 8 Oct 2007 16:33:02 -0400 ·
quoted from Steve Holmes
On 10/8/07, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
AFIK hobbit logs are not automatically rotated unless you tel the OS to do
it.

Which OS?

Steve.

Correct, the hobbit logs are not rotated automatically.  For linux, I have
attached the logrotate.d file we use; modify the rotation intervals that
suit you.
quoted from Ryan Jay B. Lapuz


On 10/5/07, Ryan Jay B. Lapuz < user-945139049f37@xymon.invalid> wrote:
 Hi all!

I just notice that the hobbit logs from my debug hobbbit server are
being rotated every week (I think) but I don't remember if I've done
something for it.
And yet the hobbit logs from my new hobbit server are not rotating.
Is the rotation of the hobbit logs is automatic?
or do I need to initialize it?

Thanks and regards,

Ryan
Attachments (1)
list Ryan Jay B. Lapuz · Tue, 9 Oct 2007 07:47:15 +0800 ·
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks for your help Gary and Steve.

Regards,
Ryan
quoted from Gary Baluha
  ----- Original Message ----- 
  From: Gary Baluha 
  To: user-ae9b8668bcde@xymon.invalid 
  Sent: Tuesday, October 09, 2007 4:33 AM
  Subject: Re: [hobbit] Hobbit logs


  On 10/8/07, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
    AFIK hobbit logs are not automatically rotated unless you tel the OS to do it.

    Which OS?

    Steve.

  Correct, the hobbit logs are not rotated automatically.  For linux, I have attached the logrotate.d file we use; modify the rotation intervals that suit you.
   

    On 10/5/07, Ryan Jay B. Lapuz < user-945139049f37@xymon.invalid> wrote:
      Hi all!

      I just notice that the hobbit logs from my debug hobbbit server are being rotated every week (I think) but I don't remember if I've done something for it.
      And yet the hobbit logs from my new hobbit server are not rotating.
      Is the rotation of the hobbit logs is automatic?
      or do I need to initialize it?

      Thanks and regards,

      Ryan

list Hobbit User · Mon, 8 Oct 2007 19:59:07 -0400 (EDT) ·
quoted from Ryan Jay B. Lapuz
On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks for
your help Gary and Steve.
So, to sum up, you need
/etc/cron.daily/logrotate
/etc/logrotate.conf
/etc/logrotate.d/hobbit
all set up to have your hobbit logs rotated.  Anything you're not sure of,
look at those on the server where the logs are getting rotated now.
list Ryan Jay B. Lapuz · Tue, 9 Oct 2007 08:13:47 +0800 ·
So, All i need is to put the script in the /etc/logrotate.d/, is this right?
I really don't understand. I checked my old hobbit server and the 
/etc/logrotate.d/hobbit is already existing. And, I'm sure I didn't 
configure that before, because I don't know how.

Thanks
quoted from Hobbit User

----- Original Message ----- 
From: "Hobbit User" <user-24d6f8323faa@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 7:59 AM
Subject: Re: [hobbit] Hobbit logs

On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks for
your help Gary and Steve.
So, to sum up, you need
/etc/cron.daily/logrotate
/etc/logrotate.conf
/etc/logrotate.d/hobbit
all set up to have your hobbit logs rotated.  Anything you're not sure of,
look at those on the server where the logs are getting rotated now.

list Ryan Jay B. Lapuz · Tue, 9 Oct 2007 08:23:01 +0800 ·
This is the script...

# more /etc/logrotate.d/hobbit
#
#       Logrotate fragment for Hobbit.
#
/var/log/hobbit/*.log {
        weekly
        compress
        delaycompress
        rotate 5
        missingok
        nocreate
        sharedscripts
        postrotate
                /etc/init.d/hobbit rotate
        endscript
}


----- Original Message ----- From: "Ryan Jay B. Lapuz" <user-945139049f37@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 8:13 AM
signature
Subject: Re: [hobbit] Hobbit logs

So, All i need is to put the script in the /etc/logrotate.d/, is this right?
I really don't understand. I checked my old hobbit server and the /etc/logrotate.d/hobbit is already existing. And, I'm sure I didn't configure that before, because I don't know how.

Thanks

----- Original Message ----- From: "Hobbit User" <user-24d6f8323faa@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 7:59 AM
Subject: Re: [hobbit] Hobbit logs

quoted from Ryan Jay B. Lapuz
On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks for
your help Gary and Steve.
So, to sum up, you need
/etc/cron.daily/logrotate
/etc/logrotate.conf
/etc/logrotate.d/hobbit
all set up to have your hobbit logs rotated.  Anything you're not sure of,
look at those on the server where the logs are getting rotated now.

list Hobbit User · Mon, 8 Oct 2007 20:48:34 -0400 (EDT) ·
quoted from Ryan Jay B. Lapuz
On Mon, October 8, 2007 20:13, Ryan Jay B. Lapuz wrote:
So, All i need is to put the script in the /etc/logrotate.d/, is this
right?
I really don't understand. I checked my old hobbit server and the
/etc/logrotate.d/hobbit is already existing. And, I'm sure I didn't
configure that before, because I don't know how.
You said you used a different package to install the old server.  It
probably dropped in the logrotate.d/hobbit config file for you, and the
one you used this time didn't.

My point was that you need a cron job (/etc/cron.daily/logrotate), and a
logrotate config file (/etc/logrotate.conf) for logrotate to be running
and "see" the logrotate.d/hobbit config.  I think FC6 does set that up by
default (see if you have /var/log/messages.1, etc, if so logrotate is
running).  Drop the logrotate.d/hobbit file in, and see if it starts
rotating.  If not, look at the other two files.
quoted from Hobbit User
----- Original Message -----
From: "Hobbit User" <user-24d6f8323faa@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 7:59 AM
Subject: Re: [hobbit] Hobbit logs
On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks
for
your help Gary and Steve.
So, to sum up, you need
/etc/cron.daily/logrotate
/etc/logrotate.conf
/etc/logrotate.d/hobbit
all set up to have your hobbit logs rotated.  Anything you're not sure
of,
look at those on the server where the logs are getting rotated now.
list Ryan Jay B. Lapuz · Tue, 9 Oct 2007 09:03:19 +0800 ·
Yes, FC6 has a default setup for log rotation. Other logs inside the 
/var/log/ directory are rotating. So, I think it will work now for the 
Hobbit logs.
Maybe your right that the package I used before had set that up for me, and 
the package that I used for my new Hobbit server did not.
Thanks for your help!

Regards,
Ryan
quoted from Hobbit User


----- Original Message ----- 
From: "Hobbit User" <user-24d6f8323faa@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 8:48 AM
Subject: Re: [hobbit] Hobbit logs

On Mon, October 8, 2007 20:13, Ryan Jay B. Lapuz wrote:
So, All i need is to put the script in the /etc/logrotate.d/, is this
right?
I really don't understand. I checked my old hobbit server and the
/etc/logrotate.d/hobbit is already existing. And, I'm sure I didn't
configure that before, because I don't know how.
You said you used a different package to install the old server.  It
probably dropped in the logrotate.d/hobbit config file for you, and the
one you used this time didn't.

My point was that you need a cron job (/etc/cron.daily/logrotate), and a
logrotate config file (/etc/logrotate.conf) for logrotate to be running
and "see" the logrotate.d/hobbit config.  I think FC6 does set that up by
default (see if you have /var/log/messages.1, etc, if so logrotate is
running).  Drop the logrotate.d/hobbit file in, and see if it starts
rotating.  If not, look at the other two files.
----- Original Message -----
From: "Hobbit User" <user-24d6f8323faa@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 7:59 AM
Subject: Re: [hobbit] Hobbit logs
On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks
for
your help Gary and Steve.
So, to sum up, you need
/etc/cron.daily/logrotate
/etc/logrotate.conf
/etc/logrotate.d/hobbit
all set up to have your hobbit logs rotated.  Anything you're not sure
of,
look at those on the server where the logs are getting rotated now.