Cacti 0.8.6e cactid cannot create new .rrd, cmd.php does

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

Moderators: Developers, Moderators

Post Reply
irfandp
Posts: 11
Joined: Mon Jun 27, 2005 7:26 am
Contact:

Cacti 0.8.6e cactid cannot create new .rrd, cmd.php does

Post by irfandp »

I still working on this cacti 0.8.6c that suddenly cannot update rrd and showing 'Nan' and all graph i've been created, it's wierd.

Usually using CMD.php with default setup, but lately this server (FreeBSD 5.2.1 with Sun UltraSparc 2XCPU 450 Mhz Enterprise 220 256M memory) using Swap to much and slowing down entire system.

Then i try to compile cactid 0.8.6e, found some errors in compiling with code RLIMIT_AS in resource.h...but after collecting some useful information from this board, compiling is success.

Give it a try to update .rrd from cacti 0.8.6c...and nothing happens...still no update, but this polling is magnificent ! so fast..... (from avg 400 ms to 10 ms avg..... amazing!). OK then i tried to run CMD.php from shell console with ROOT id, polling when well and updating the .rrd and from cacti.log, cactid UPDATING the .rrd too !!!!

I try upgrade to cacti 0.8.6e engine, an try to create fresh new monitoring to snmp enabled cisco router.... result no good, after monitoring DEBUG log for quite sometimes, still no .rrd created for that new device. Well, i try shell console CMD.php again with ROOT id, and slowly in the end of STDOUT, it CREATING the .rrd of new device !!!

then, i looked to cacti.log for cactid polling, and it UPDATING the new .rrd with new data...!!! and graph showing well....

How strange !

Now, I change the crontab ID to running poller.php with id ROOT, and still cannot create new .rrd for new device.

Is it the problem with chown and chmod on the filesystem ? or is it some bug on cacti database ?

Well, if i have to CMD.php shell after creating 100 new devices, it would be wasting my time :( .

Any Idea with this issue ? :roll:
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please edit your <sys/resource.h> file and add the following:
#define RLIMIT_AS 6 /* address space (virt. memory) limit */
Then, remake cactid. After that, please open a bug report with your *nix vendor.

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 »

As far as your other issues, I would need some more information. Please run "php -m" post output. What version of net-snmp are you using? Do you have any abarent Data Sources (goto Data Sources, select Host "None") in your database?

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?
irfandp
Posts: 11
Joined: Mon Jun 27, 2005 7:26 am
Contact:

Post by irfandp »

TheWitness wrote:As far as your other issues, I would need some more information. Please run "php -m" post output. What version of net-snmp are you using? Do you have any abarent Data Sources (goto Data Sources, select Host "None") in your database?

TheWitness
Hereis my config :

Code: Select all

> php -m
[PHP Modules]
ctype
mysql
overload
pcre
posix
session
standard
tokenizer
xml
Zend Modules

And i'm using net-snmp-5.1 and rrdtool-1.0.45 from FreeBSD packages.

And No data source available on that directive, just blank.

Today, I will try to create new device leaving CACTID to create the .rrd's hopefully working.
irfandp
Posts: 11
Joined: Mon Jun 27, 2005 7:26 am
Contact:

Post by irfandp »

strange thing happen again...after successfully create new .rra's with CMD.php and updating the data with CACTID for about 5 minutes graphs, anda then it won't graph ANY data at all from the new .rra's !!?... :(

seems like CACTID not updating anything again on those .rra's .. :(

well, I hate to go back to CMD.php .. it swoop my system into slow motion... otherwise i should remove entire monitoring system to the new server that we cannot afford in short time while.

:cry:
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

please run cactid.exe from the command line from the cactid directory. Run it in DEBUG mode. Post your results.

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?
irfandp
Posts: 11
Joined: Mon Jun 27, 2005 7:26 am
Contact:

Post by irfandp »

I changed the monitoring method in "Setting" > "Poller" ... last time i use SNMP and Ping to monitor..... ( chown on CACTID binary was "cacti:wheel")... so many device DOWN but graph still available for old device / .rra's ...

After i change Setting > Poller to SNMP only and i change chown on CACTID binary to root:wheel ... Almost all device UP ..... and I try to create new device ... it created ..... .rra's created and updated regulary with CACTID ... graph showed up nicely ...

CRONTAB for POLLER.PHP still activate on user ROOT now ... not in CACTI-user mode ....

strange ? it should be run normally in cacti-user, isn't it ? :roll: :-?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should not have to run as root. However, you must insure that the permissions for the account you are using are correct. You must have rw to both the <cacti>/log and <cacti>/rra directories as well as r to <cacti> and it's subdirectories.

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?
irfandp
Posts: 11
Joined: Mon Jun 27, 2005 7:26 am
Contact:

Post by irfandp »

TheWitness wrote:You should not have to run as root. However, you must insure that the permissions for the account you are using are correct. You must have rw to both the <cacti>/log and <cacti>/rra directories as well as r to <cacti> and it's subdirectories.

TheWitness
All permissions and chmod status on cacti directory is set to cacti-user ...

cactid binary directory and its binary still on root user ..
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You poller can run as root. However, your web server should never run that way...

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests