On Thursday 10 June 2004 12:56, LIMA David wrote:
> You have the same problem than me and other friends with some version of
> php4
>
> Try this to see If you have same thing
>
> #####################################################
> ### change www-data with you apache user
> #####################################################
> srv-deb:/# su www-data
> srv-deb:/$ php4 -q /opt/jffnms/engine/poller.php
>
> Warning: main(../conf/config.php): failed to open stream: No such file or
> directory in /opt/jffnms/engine/poller.php on line 22
>
> Warning: main(): Failed opening '../conf/config.php' for inclusion
> (include_path='.:/usr/share/php:/usr/share/pear') in
> /opt/jffnms/engine/poller.php on line 22 ==> doesn't work

Sure, doesn't work because php script have relative paths, no absolute
paths.

> srv-deb:/$ cd /opt/jffnms/engine/
> srv-deb:/opt/jffnms/engine$  
> Executing: /usr/bin/php4 -q /opt/jffnms/engine/poller.php 2 0 1 0 0 &
>
>  :  H   2 : Poller Start : 43 Items.
>  :  H   2 :  I   2 :  P   1 : reachability_start:ping(): 40c83c838c456 ->
>  : buffer(): 1 (time P:17.44 | 0.72) H   2 :  I   3 :  P  10 :
>  : verify_interface_number(): 1 -> verify_interface_number():
>  : interfacenumber not changed (time P:6.39 | 2.34) H   2 :  I   4 :  P  10
>  : : verify_interface_number(): 4 -> verify_interface_number():
>  : interfacenumber not changed (time P:43.65
>
> ==> wit works
>
> so change your crontab and put something like
>
> */5 * * * * www-data cd /opt/jffnms/engine/ && php4 -q poller.php
> >/dev/null 2>&1
>
> if the cront start on /opt/jffnms/engine it will work
>
> Hope that's help

I run cd /opt/jffnms/engine/ && php4 -q poller.php but i don't have
any output, appears to be ok... but i cant display any graph:
"The RRDTool files for Interface ID xxx (from Host ID xx), has not been
created by the Poller Process yet"
:(

> PS: I see that your mysql module isn't loaded, check your php.ini and
> install php4-mysql and php4-mysql-dev if you don't have it

I have php4-mysql debian packages installed, and extension=mysql.so
in the php.ini configuration, but php4 -m don show mysql module.

_/\   _|/ |> |> | [ |>_  /\__
   \_/ |\ |\ |\ | [ |\ \/    \_/\____     
  -(GnuPG Key ID:  1024D/E839344F)-


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to