Hi Jason, you can try to upgrade the database with the patches provides inside
jffnms tarball. You have to patch one after another from the database release
that you have.
Cheers.
-------- Message d'orig one after anotherine--------
De: [EMAIL PROTECTED] de la part de ...
Date: mer. 27/02/2008 00:01
À: Martin Beecroft; jffnms-users@lists.sourceforge.net
Cc:
Objet: Re: [jffnms-users] poller works when run manually,but NaN from
cron??
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]
<https://portailsch.sch-groupe.fr/CitrixFEI/[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] <https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]>
> <https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]
<https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]> >> wrote:
>
> Hello,
>
>
> On Tue, Feb 26, 2008 at 3:11 PM, ... <[EMAIL PROTECTED]
<https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]>
> <https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL
PROTECTED] <https://portailsch.sch-groupe.fr/CitrixFEI/[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://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]>
> <https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL
PROTECTED] <https://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]> >
> 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://portailsch.sch-groupe.fr/CitrixFEI/[EMAIL PROTECTED]>
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
______________________________________________________________________
Ce message contient des informations dont le contenu est susceptible d'etre
confidentiel.
Il est destine au(x) destinataire(s) indique(s) exclusivement.
A moins que vous ne fassiez partie de la liste des destinataires, ou que vous
soyez habilite a recevoir le mail a leur place, il vous est interdit de le
copier, de l'utiliser ou de devoiler son contenu a un tiers.
Si vous avez recu cet email par erreur, merci de prendre contact avec
l'emetteur.
Les opinions exprimees dans cet e-mail sont celles de l'emetteur et ne
refletent pas necessairement celles de l'entreprise.
Ce e-mail peut contenir des pieces jointes dont certaines pourraient contenir
des virus qui pourraient endommager votre systeme informatique.
La compagnie a pris toutes dispositions afin de minimiser ce risque et decline
toute responsabilite pour toute perte ou dommage resultant directement ou
indirectement de l'utilisation de cet email ou de son contenu.
Il vous appartient d'effectuer vos propres controles anti-virus avant d'ouvrir
la ou les pieces jointes.
______________________________________________________________________
-------------------------------------------------------------------------
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