Networking Forums

Networking Forums > Computer Networking > Linux Networking > Analysing log files with nagios

Reply
Thread Tools Display Modes

Analysing log files with nagios

 
 
Christian Christmann
Guest
Posts: n/a

 
      12-14-2006, 09:41 PM
Hi,

I use the Nagios plug-in check_log to check my log files for suspecious
entires. However, the module avails with the error message that the log
files are not readable. For example:
-rw-r----- 1 root adm 36490 Dec 14 15:31 /var/log/messages

It is just readable for root and adm but not for the user "nagios" who, as
I assume, is executing the Nagios plug-ins. So, how can I solve the
permission problem?


Another problem I have since I installed Nagios are strange entries in my
/var/log/messages:

nagios: Error: Could not connect to MySQL database '' on host '' using
username '' and password 'XXXXXX'. Retention data will not be processed or
saved!
nagios: Error: Could not re-connect to database server on host '' for
status data. I'll keep trying every 60 seconds...

Where do they come from and how can I solve them?

Best regards,
Chris
 
Reply With Quote
 
 
 
 
Keith Keller
Guest
Posts: n/a

 
      12-14-2006, 10:41 PM
On 2006-12-14, Christian Christmann <(E-Mail Removed)> wrote:
>
> I use the Nagios plug-in check_log to check my log files for suspecious
> entires. However, the module avails with the error message that the log
> files are not readable. For example:
> -rw-r----- 1 root adm 36490 Dec 14 15:31 /var/log/messages
>
> It is just readable for root and adm but not for the user "nagios" who, as
> I assume, is executing the Nagios plug-ins. So, how can I solve the
> permission problem?


Give user nagios permission to read the logfile. You might try adding
nagios to the adm group (thus giving user nagios access to all the files
owned by group adm), or try chgrp'ing the needed files to group nagios,
or chmod'ing o+r the files in question. It all depends on how paranoid
you are at your site; some sites would not consider allowing any
world-readable log files, others won't care.

> Another problem I have since I installed Nagios are strange entries in my
> /var/log/messages:
>
> nagios: Error: Could not connect to MySQL database '' on host '' using
> username '' and password 'XXXXXX'. Retention data will not be processed or
> saved!
> nagios: Error: Could not re-connect to database server on host '' for
> status data. I'll keep trying every 60 seconds...
>
> Where do they come from and how can I solve them?


You've probably configured nagios to log its status to a mysql database.
Check your nagios config files and either turn this off (if you don't
want this) or fix your config (if you do).

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nagios camerota Linux Networking 0 09-20-2006 09:21 AM
analysing juniper kiny Linux Networking 0 06-13-2006 12:00 PM
Analysing WinXP users' bandwidth usage Laphan Home Networking 1 01-16-2004 05:17 PM
Analysing WinXP users' bandwidth usage Laphan Broadband 2 01-16-2004 02:44 PM
Nagios monitor says nagios isn't running but it is. Eric Vanderveer Linux Networking 0 06-28-2003 09:59 AM



1 2 3 4 5 6 7 8 9 10 11