Hi
After some troubleshooting, I realized what seems to be the problem.  I WAS
running the poller manually as root, but when running it as the jffnms user,
it fails with a segmentation fault.  Following this lead, I realized that
the previous jffnms admin had made some database changes (extra interfaces,
mac address tracking, etc) while running a 0.7.x version of jffnms and now
the front end is running 0.8.3.  I believe the problem has to do with these
extra interface types being defined in the DB and the new front end not
having the proper changes to support this.  So now I have to review the old
front end files and compare to the new front end as well as bring the
database up to 0.8.3.  I'm hoping to just do a sqldump of the backend, dump
the database, install a fresh 0.8.3 database and try to import just the host
records to get the basic traffic graphing going again and then I can work on
the extra interfaces and whatnot.  Does this make sense?  Cheers!

Jason

On Tue, Feb 26, 2008 at 5:13 PM, Martin Beecroft <[EMAIL PROTECTED]>
wrote:

> It's probably a silly question, but when you run it by hand are you
> running at thye jffnms user?  Just in case you aren't, try su'ing to the
> jffnms user "/bin/su - jffnms" and see if you still get the rrds
> populated correctly, if not, it sounds like a permissions problem.
>
> If you are running as jffnms, I'm a bit stumped.
>
> Cheers
>
> Martin
>
>
> ... wrote:
> > 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.php master 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]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     Hello,
> >
> >
> >     On Tue, Feb 26, 2008 at 3:11 PM, ... <[EMAIL PROTECTED]
> >     <mailto:[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
> >     <mailto: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
>
-------------------------------------------------------------------------
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

Reply via email to