Cactid stoped creating new graph files.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Cactid stoped creating new graph files.

Post by 3AHO3A »

Since today morning cacti dont create new rra files

RRDTool Says:

ERROR: opening '/var/www/html/cacti/rra/pae_1115_traffic_in_1570.rrd': No such file or directory

what can it be?

P.S. using cactid & RRD 1.2.x, had no problems before, have 400 devices and 1600 graphs.
Last edited by 3AHO3A on Wed Oct 18, 2006 9:15 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are existing graphs Ok. If so, you may have a permissions issue. Did you just upgrade?

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Post by 3AHO3A »

Existing graphs are working, no upgrades were made.

but i found this in logs

10/18/2006 11:55:03 AM - CACTID: Poller[0] ERROR: Problem with MySQL: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'

P.S. i can connect to mysql but i dont know what socket i am using ...

P.P.S wierd, i didnt change anything
Last edited by 3AHO3A on Wed Oct 18, 2006 5:50 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do you have enough MySQL connections. Cactid uses quite a few:

1 per thread
1 per process
1 per script server process

So, if you are running in the following mode:

Concurrent processes = 2
Threads per process = 20
Script Servers = 5

You get

2 + 20 + 20 + 5 + 5 Conections or 52.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Post by 3AHO3A »

i have:
Maximum Concurrent Poller Processes - 1
Maximum Threads per Process - 1
Number of PHP Script Servers - 1
Script and Script Server Timeout Value - 25
The Maximum SNMP OID's Per SNMP Get Request - 10

Any advices? cause i still dont know how to solver the problem.

P.S. have another MySQL base running on this server that supplies docsis internet
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Turn logging to medium, open a shell, cd to the cactid binary directory and then run "./cactid" and see what happens.

You may have an issue with MySQL, but then no items would be updating. I'm afraid it makes no sense.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Post by 3AHO3A »

Did it:
CACTID: Poller[0] ERROR: Cactid Timed Out While Processing Hosts Internal

and there is no any other errors

only Mysql error but it appears only when i am adding new devices and making graph for them.
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Post by 3AHO3A »

i changed the Ping Timeout Value from 400 to 800 and graphs started to work,

but how can i see the frequency of cactid is started again?
if it starts every 5 minutes maybe i need to start it every 10 mins?

If it is in crontab i set it to 10 mins
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hmm, your issue is likely that you have too many files all over your disk and that rrdtool is taking too long because of disk i/o problems.

I plan on making a change to improve that performance 10 fold, but have thus far not received any incentive to do so. Maybe you can help?

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Post by 3AHO3A »

givin 10 mins was a bad idea.
TheWitness wrote:Maybe you can help?

TheWitness
How can i?

P.S. 90% of my graphs is modems graphs, so 5% of them is always offfline, maybe i need lower the timeout or number of retries?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would add my poller interval patch and only update information every 10 minutes for just the modem's. That way you will only poll them every 10 minutes and you will spread the polling of them out over that period. It's hard to explain, but trust me.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Read the instructions carefully. You will need to create a 10 minute RRA and associate that RRA with some "New/Duplicated" template for your modems.

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

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
3AHO3A
Posts: 30
Joined: Wed Oct 04, 2006 9:20 am
Location: Somewhere in EU
Contact:

Post by 3AHO3A »

I increased Maximum Threads per Process and it goes well without errors right now
Also i deleted half of all my graphs which i dont really need them
But my database is increasing

And I am still into helping, if it is needed
So waiting for instructions ;]
Running cactid on P4 dual core 1024mb
Hosts: more than 400 graphs: more than 1500
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests