Sunday, May 19th 2013, 12:42am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

Posts: 13

Gender: male

Location: Mülheim an der Ruhr

Occupation: IT System Administrator

Number of monitoring servers: 2

Hobbies: Musik, Linux, MMO RPG

Nagios Version: 3.0.6

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 24

Number of services: 331

OS: Windows 2003 / OpenSuSE 11.0

Plugin Version: 1.4.11, Plugins-Extras 1.4.11, NRPE 2.10, NSCA 2.7.2, NSCA Client 2.7.2

NDO Version: 1

1

Thursday, May 27th 2010, 1:37pm

Reporting, hier Historie unter OpenSuSE

Hallo Zusammen,



ich habe folgendes "Problem" ich kann zwar die Historie der Logdateien für heute ansehen, aber die für die Vergangenkein nicht. Ich bekomme immer "could not open <logfilepath/logfile> for reading".



Nach ein wenig suchen ist mir auch aufgefallen warum. Unter OpenSuSE wird beim logrotate das Nagios Log mit bzip2 gepackt. Leider kann das Skript diese gepackten Dateien allerdings nicht interpretieren.



Kann mit jemand sagen wo im Skript ich anpassen kann das vor Interpretation der Daten im Reporting Abschnitt ich die Daten noch einmal durch bzip2 zu pipen ? ?(

little

Professional

Posts: 790

Birthday: Nov 26th 1975 (37)

Gender: male

Location: Mainburg

Occupation: PDM-Consultant, IT-Specialist

Number of monitoring servers: 3

Nagios Version: 3.2.0/3.2.1/3.2.2

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~200

Number of services: ~1800

OS: Linux, AIX, HP-UX, Windows

Plugin Version: 1.4.14/1.4.15

NagVis Version: 1.4-nightly/1.5-nightly

NDO Version: 1.4b9

Other Addons: NRPE, PNP,NSClient++,DokuWiki,NagiosBPV, MKLivestatus, Thruk

2

Thursday, May 27th 2010, 3:08pm

Hallo,

ich denke der einfachere Weg ist, logrotate beizubringen, die Files nicht zu packen, bzw. gar nicht erst anzufassen.
Nagios macht das doch selbst.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# LOG ROTATION METHOD
# This is the log rotation method that Nagios should use to rotate
# the main log file. Values are as follows..
#   	n   	= None - don't rotate the log
#   	h   	= Hourly rotation (top of the hour)
#   	d   	= Daily rotation (midnight every day)
#   	w   	= Weekly rotation (midnight on Saturday evening)
#   	m   	= Monthly rotation (midnight last day of month)

log_rotation_method=d



# LOG ARCHIVE PATH
# This is the directory where archived (rotated) log files should be
# placed (assuming you've chosen to do log rotation).

log_archive_path=/usr/local/nagios/var/archives


Stefan

Similar threads