<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Re: [Nagios-users] check_logs permissions?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Run it as the user Nagios runs under, that will go a large way into figuring it out<BR>
<BR>
--------------------------<BR>
Jeremy D. Pavleck via BlackBerry<BR>
Network Engineer - Systems Management<BR>
IT Network and Infrastructure Dept.<BR>
Capella Education Company<BR>
DIRECT: (612) 977 - 5881<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: nagios-users-bounces@lists.sourceforge.net <nagios-users-bounces@lists.sourceforge.net><BR>
To: nagios-users@lists.sourceforge.net <nagios-users@lists.sourceforge.net><BR>
Sent: Tue Jun 27 22:17:35 2006<BR>
Subject: [Nagios-users] check_logs permissions?<BR>
<BR>
Hello,<BR>
<BR>
<BR>
<BR>
I’m trying having trouble getting check logs to work. As a test, I’ve been monitoring Apache’s error.log for any new lines (with the regular expression reg_exp => ‘.*’;<BR>
<BR>
<BR>
<BR>
When I run check_logs.pl from the command line (logged in as root) it works fine, returning any new lines from the file. When run from Nagios, however, it returns either OK and a note that the plugin didn’t return anything, or if I chmod 666 error.log CRITICAL with the message ‘return code of 13 out of bounds.’ This leads me to believe it’s a problem with permissions, but I have no idea how I to fix them. Any help would be greatly appreciated.<BR>
<BR>
<BR>
<BR>
Thanks in advance,<BR>
<BR>
Martin.<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>