Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Jul 20, 2019 3:10 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Mon May 02, 2005 1:12 pm 
Offline
Cacti User
User avatar

Joined: Tue Jun 08, 2004 3:07 am
Posts: 61
Location: Bodø, Norway
sure, but it's working fine now with that PATH string added in /etc/crontab

Still don't understand why cacti forgets this.. it does not matter if i use CMD or CACTID

-Sigurd


Top
 Profile  
 
 Post subject: 77% of graphs not updating
PostPosted: Mon May 02, 2005 2:45 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
177 of graphs are updating fine after upgrading.
The other 700+ are not updating.

I have DEBUG logging on and the rrdtool update commands in the log are not logging any errors.

I copy and paste one of the rrdtool update commands and run it manually and the rrd file updates.

I am looking into what is different about these graphs that is causing rrdtool update to not update and to fail silently.

I upgraded from rrdtool1.0.x to 1.2.1 - same graphs not updating.

I tried adding to the cron PATH, and wrapping in a script for cron - same prob.


I'm going to start digging into the graph templates next....arg :(


Top
 Profile  
 
 Post subject: Values are different
PostPosted: Mon May 02, 2005 5:41 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
I'm going to revert to the previous version - but I think it may be a templates issue - I see this difference in the logs:

Old working server log:

RRDCMD: update 'rra/irtweb04_apache_idle_workers_1151.rrd' --template apache_
total_hits:apache_total_kbytes:apache_busy_workers:apache_idle_workers N:19967:195525:17:23

(notice the N: in the output)

New - non working example:

05/02/2005 10:39:51 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update rra/irtweb04_apache_idle_workers_1151.rrd --template apache_total_hits:apache_total_kbytes:apache_busy_workers:apache_idle_workers 1115055575:578504:7726968:3:37


The apache script is returning the same stuff - but cacti is passing it differently to rrdtool...

dunno why at this point...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 5:55 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Did you install from RPM. A mistake that many make is having 2 scheduled crons running at the same time. This screws up the polling.

The value in the rrdtool update is not an issue. There is a revised lib/poller.php that I can send you that may have some affect. Please let me know if that is what you want to do.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject: updated poller
PostPosted: Mon May 02, 2005 6:23 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
I did not install from RPM -
Sure I'll try the updated poller

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 6:28 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Not posted yet. But you can edit and locate the following line:

"order by poller_output.time"

Please remove the order by clause while maintaining appropriate syntax and you will be patched.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 7:15 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
Removed the order by :
/* create/update the rrd files */
$results = db_fetch_assoc("select
poller_output.output,
poller_output.time,
poller_output.local_data_id,
poller_item.rrd_path,
poller_item.rrd_name,
poller_item.rrd_num
from poller_output,poller_item
where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)");

Now, I am getting hanging pollers:

05/02/2005 05:12:55 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: , ARGS: 0 64]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 7:57 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Can you please run cmd.php from the command line in debug mode. And then please post output.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject: cmd.php output
PostPosted: Tue May 03, 2005 12:51 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
output from php cmd.php (attached)


Attachments:
cmdphp5.txt [219.72 KiB]
Downloaded 756 times
Top
 Profile  
 
 Post subject: progress
PostPosted: Tue May 03, 2005 4:48 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
I disabled the device that was often the last rrd to update and now all the rrds are updating !!!
Yayaya

But this is with cmd.php and it takes 10 mins

cactid 0.8.6e is core dumping

I'm going to try d again...


Top
 Profile  
 
 Post subject: cactid D hangs
PostPosted: Tue May 03, 2005 4:57 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
nope - back to cmd.php

cactid D is only finishing 137 rrds and now its hanging .

Will have to live with cmd.php every 10 mins...


Top
 Profile  
 
 Post subject: BTW
PostPosted: Tue May 03, 2005 4:58 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
BTW, I notice the script server is running when it hangs:

cacti 10436 1 0 14:53:44 pts/5 0:00 /usr/local/cactid/bin/cactid 0 64
cacti 10439 10436 0 14:53:44 pts/5 0:00 /usr/local/bin/php /fs/web/irt-web/htdocs/irt-cacti2/script_server.php cactid 0


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 4:59 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
You have a messed up database. Please edit Data Sources and select Host = None and delete the bogus entries and you should be back in business with Cactid. I will look at another change in the mean time (Cactid 0.8.6e RC3) to adjust for this issue.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 03, 2005 5:00 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Fletch,

Please state:

Number of Hosts
Number of RRD Files
Script/Snmp Mix

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject: 3 rows with template "none"
PostPosted: Tue May 03, 2005 5:02 pm 
Offline
Cacti User

Joined: Mon Oct 06, 2003 5:40 pm
Posts: 132
Location: Stanford, CA
I deleted the 3 entries listed with template "none"

trying cactid again...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group