[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jffnms-users
Subject:    Re: [jffnms-users] rrd_analyze : strange log name
From:       Emmanuel Doguet <stage2 () tbs-internet ! com>
Date:       2005-06-29 13:00:07
Message-ID: 42C29B57.5090802 () tbs-internet ! com
[Download RAW message or body]

Emmanuel Doguet wrote:
>     Re-Hi!
> 
> I have installed JFFNMS on an real server, but the rrd_analyze.php 
> create it's log like this :
> 
> "-2005-06-24.log" !
> 
> 
> Others log are good ! An idea ?
> 
>     Many thanks.

For resolve this problem, I must change this part of code, in api.inc.php


Before (in logger() function :
----------------------------------------------------
$file = str_replace(".php","",basename($GLOBALS["jffnms_logging_file"]));


After :
----------------------------------------------------
if( isset( $GLOBALS["jffnms_logging_file"]) )
	$file = str_replace(".php","",basename($GLOBALS["jffnms_logging_file"]));
else
	$file = str_replace(".php","",basename( $_SERVER["argv"][0] ) );

----------------------------------------------------


["smime.p7s" (application/x-pkcs7-signature)]
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic