[afnog] Cacti not graphing

Christiana Toluwanimi Olayinka titoluwanimi at yahoo.com
Thu Feb 12 10:02:42 UTC 2009


Hi Peter,
 
I did a fresh install of cacti from the port.
 
I have confirmed that the cron is working. The error as shown in the mail to root is pasted below:
 
 Subject: Cron <root at yaba> cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
cacti: not found

I tried to adduser cacti on the freebsd machine but it complained that the login name cacti exit.
 
What can I do?


Cheers,
---------------------------
Christiana T. Olayinka
Tel:+234-2-8105156
08062209650

--- On Fri, 2/6/09, Peter Koinange <peter.koinange at ke.wananchi.com> wrote:

From: Peter Koinange <peter.koinange at ke.wananchi.com>
Subject: Re: [afnog] Cacti not graphing
To: titoluwanimi at yahoo.com
Date: Friday, February 6, 2009, 4:36 AM

Try this


*/5 * * * * cactiuser /usr/local/bin/php  >
/usr/local/www/apache22/data/cacti/poller.php 

remove the  > /dev/null 2>&1 at the end and wait 10 minutes, lok at
the mail sent too use root is there are any error the mail will list them

k

 

----- "Christiana Toluwanimi Olayinka" <titoluwanimi at yahoo.com>
wrote:

> Pardon me. I forgot to mention earlier that I deinstall my port
> installation and reinstalled cacti into the document root.
> 
> 
> 
> Cheers,
> ---------------------------
> Christiana T. Olayinka
> Tel:+234-2-8105156
> 08062209650
> 
> --- On Fri, 2/6/09, Peter Koinange <peter.koinange at ke.wananchi.com>
> wrote:
> 
> 
> From: Peter Koinange <peter.koinange at ke.wananchi.com>
> Subject: Re: [afnog] Cacti not graphing
> To: titoluwanimi at yahoo.com
> Date: Friday, February 6, 2009, 3:48 AM
> 
> Christina
> 
> your /etc/crontab shoud be
> 
> */5 * * * * cactiuser  /usr/local/bin/php
> /usr/local/share/cacti/poller.php
> > /dev/null 2>&1
> 
> 
> Peter
> 
> ----- "Christiana Toluwanimi Olayinka"
<titoluwanimi at yahoo.com>
> wrote:
> 
> > Patrick,
> >
> > My border is that the  cron job for poller.php does not seem to be
> > working. I set the cron as root. The entry in my /etc/crontab is
> > pasted
> > below:
> >
> > */5 * * * * cactiuser /usr/local/bin/php
> > /usr/local/www/apache22/data/cacti/poller.php > /dev/null
2>&1
> >
> > How may I get it runing?
> >
> >
> > Cheers,
> > ---------------------------
> > Christiana T. Olayinka
> > Tel:+234-2-8105156
> > 08062209650
> >
> > --- On Thu, 2/5/09, Patrick Okui <pokui at psg.com> wrote:
> >
> >
> > From: Patrick Okui <pokui at psg.com>
> > Subject: Re: [afnog] Cacti not graphing
> > To: "Christiana Toluwanimi Olayinka"
> <titoluwanimi at yahoo.com>
> > Cc: afnog at afnog.org
> > Date: Thursday, February 5, 2009, 10:28 PM
> >
> > Good morning Christiana,
> >
> > Please keep afnog@ cc'ed.
> >
> > On 2/6/09 6:16 AM, Christiana Toluwanimi Olayinka wrote:
> > > Patrick sorry i have t revisit this subject.
> > >
> > > My findings:
> > >
> > > 1. When I manually do
> > > /usr/local/bin/php /usr/local/share/cacti/poller.php --debug
> --force
> > > The output is as pasted below:
> > >
> > > 02/05/2009 11:20:33 PM - POLLER: Poller[0] WARNING: Cron is out
of
> > sync
> > > with the Poller Interval! The Poller Interval is '300'
> seconds,
> > with
> >  a
> > > maximum of a '300' second Cron, but 1443 seconds have
passed
> since
> > the
> > > last poll!
> > > OK u:0.00 s:0.01 r:0.99
> > > OK u:0.00 s:0.01 r:1.00
> > > 02/05/2009 11:20:34 PM - SYSTEM STATS: Time:1.1347
Method:cmd.php
> > > Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:4
> > > RRDsProcessed:2
> > >
> > > 2. When I manually do as in (1) above, the *.rrd file is created
> but
> > I
> > > could only view an empty graph. This does not have to do with
bad
> > smnp
> > > data source as I have tried for several other devices.
> >
> >
> > Graph data will remain blank for at least two runs of the poller
> over
> > the poller interval. If your cron job is fine, then just check the
> > graphs after 15min.
> >
> >
> > > What do u think I can do. I want to make reinstallation my last
> > resort
> > >
> > > Cheers,
> >
> >
> > --
> > patrick.
> >
> >
> > _______________________________________________
> > afnog mailing list
> > http://afnog.org/mailman/listinfo/afnog



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://afnog.org/pipermail/afnog/attachments/20090212/f21e8e2b/attachment.html>


More information about the afnog mailing list