Hi
So I've edited my cron file to replace the variables $JFFNMS and $PHP with
the actual paths in each command;
# New Poller for big Networks
*/1 * * * * cd /opt/jffnms/engine && /usr/bin/php -q poller2.php master
$THREADS >/dev/null 2>&1
Does this look right? When I grep for poller, this is what I see;
[EMAIL PROTECTED]:/opt/jffnms/rrd# ps -ef | grep poller
jffnms 4479 1 0 14:27 ? 00:00:00 /usr/bin/php -q
poller2.phpmaster 15
jffnms 4523 4479 0 14:30 ? 00:00:00 sh -c /usr/bin/php -q
poller2.php - 5
jffnms 4524 4523 5 14:30 ? 00:00:00 /usr/bin/php -q poller2.php- 5
I'm still not getting any data from the cron launched poller2, but when run
manually, it populates the RRD files just fine. Any ideas?
Jason
On Tue, Feb 26, 2008 at 1:09 PM, Torfinn Ingolfsen <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
> On Tue, Feb 26, 2008 at 3:11 PM, ... <[EMAIL PROTECTED]> wrote:
> > Hi
> > So I've just done a fresh install of JFFnms 0.8.3, running on Ubuntu
> server
> > 7.10. The database is mysql running on a separate box. If I run the
> poller
> > manually for any particular host (a few times in a row), and then do a
> > rrdtool dump of the rrd file, I see valid values and if I try to pull up
> the
> > performance graph, it shows the data...yet, if I just let cron run and
> > launch poller2.php, the rrd files only get NaN. Any ideas? Thanks
>
> cron versus sh issues usually has to do with the environment
> variables. cron has a very limited environment. Usual fix: specify
> complete paths in your cron scripts, and / or define environment
> variables explicitly.
>
> HTH
> --
> Regards,
> Torfinn Ingolfsen
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> jffnms-users mailing list
> jffnms-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users