Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #112] Icinga does not include logfiles from archive #38

Closed
icinga-migration opened this issue Jun 10, 2009 · 3 comments
Closed

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/112

Created by jhein on 2009-06-10 15:32:57 +00:00

Assignee: (none)
Status: Closed (closed on 2009-06-10 18:36:26 +00:00)
Target Version: 0.8.1
Last Update: 2009-06-10 18:36:26 +00:00 (in Redmine)


Reported on the Mailing List:

On my system Icinga creates logfiles (daily rotation) with the name
Icinga-$DATE-00.log. No Problem with that.

But when I want to use the trend.cgi or avail.cgi these archived
logfiles will not be used and only the data from the current file is shown.
I've tried serveral things and finally found out, that renaming these
logfiles to nagios-$DATE-00.log solved this problem. The cgis now use
the data from these files.

Resolution:

Edit the cgiutils.c on line 1576. Change the line

snprintf(buffer,buffer_length,"%snagios~~%02d~~%02d~~%d~~%02d.log",log_archive_path,t~~tm_mon+1,t>tm_mday,ttm_year+1900,t~~>tm_hour);

to

snprintf(buffer,buffer_length,"%sIcinga~~%02d~~%02d~~%d~~%02d.log",log_archive_path,t~~tm_mon+1,t>tm_mday,ttm_year+1900,t~~>tm_hour);


Relations:

@icinga-migration
Copy link
Author

Updated by Wolfgang on 2009-06-10 15:49:57 +00:00

  • Done % changed from 0 to 50

This issue seems to be solved already and the solution can be found at https://dev.icinga.org/issues/show/110. Please don't alter cgiutils.c in the way shown here.

@icinga-migration
Copy link
Author

Updated by jhein on 2009-06-10 15:53:33 +00:00

Ah, missed that. So we can delete this ticket?

@icinga-migration
Copy link
Author

Updated by hbaecker on 2009-06-10 18:36:26 +00:00

  • Status changed from New to Closed
  • Target Version set to 0.8.1

Duplicates 110

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant