Submit Your CMD.PHP vs. SPINE Metrics Here

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

As long as you freeze changes, you should be able to do the following:

mysqldump -u root -p cacti > /backupdir/cacti_back.sql

then for the Cacti environment, something like:

tar -cf /backupdir/cacti_web.tar <web_root>/cacti

If you are upgrading the box, it is likely that you will miss a few polling cycles.

Also, please note that for some reason, freebsd has never faired too well in the performance benchmarks for some reason. I suspect memory mapped IO with rrdtool is broken or something.

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
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Cleans *and* straightens your teeth.

Post by Howie »

Not only did we get roughly 8x the poll speed, but check out the CPU usage of our Cacti server! Can you tell when the switchover occurred? :lol: It's fair to say that cactid has given our stats server a new lease of life.
Attachments
Before/After CACTID
Before/After CACTID
graph_image.png (39.25 KiB) Viewed 6366 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
spieg
Posts: 23
Joined: Tue Dec 27, 2005 1:12 pm

Post by spieg »

FreeBSD performance seems pretty good to me...

Pentium 4 2.8Ghz; 2GB RAM
FreeBSD 6.0-RELEASE
PHP 4.4.2
MySQL 4.1.18
RRDTool 1.2.12
cacti 0.8.6h
cactid 0.8.6g

03/28/2006 09:55:48 AM - SYSTEM STATS: Time:47.8280 Method:cactid Processes:2 Threads:16 Hosts:716 HostsPerProcess:358 DataSources:7678 RRDsProcessed:6587

9:56AM up 14 days, 22:28, 2 users, load averages: 0.39, 0.26, 0.20
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

I am VERY impressed with Cactid performance, are there specific steps for migrating to it? Version requirements?

We're running h with the plugin architecture on Suse 10.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

No. Simply use the latest stable release. Perhaps you will prefer compiling it on your own (may net some ...-devel packages on linux). But pay attention to the hints for the last release. It requires full path for all binaries used in Data Input Methods and ./resource/script_queries/* scripts
Reinhard
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

One quick question in regards to the script change: do you mean that for each script/command listed on the "Data Input Methods" page I need to add the full path for perl (i.e. /usr/bin/perl) or php to the "Input String" field?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep. If you prefer, you may do so using some SQL magic (or, as in my case, phpmyadmin). But don't forget to check the scripts in resource/script_queries.
Reinhard
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Finally I'm going to guess that if I run into:

Code: Select all

|path_php_binary|
I simply replace it with:

Code: Select all

/usr/bin/php5
<and so I don't look/sound so stupid, I'm being specific for the next guy who comes along ;) >

And to find an occurance of perl or php that needs to be fixed, would you say the following is the easiest:

Code: Select all

cat * | grep perl
?
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

Try these commands to locate items:

which perl
whereis perl

and as a last resort"
find / | grep "filenamehere"
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

I use locate (and updatedb) for finding files, if "which" doesn't work.

The commands I offered were to find files calling perl, like:

Code: Select all

cat /usr/cacti/resource/script_queries/* | grep perl
would provide me with every line using "perl" - which would be:

Code: Select all

        <script_path>/usr/bin/perl |path_cacti|/scripts/cbwfq.pl</script_path>
        <script_path>/usr/bin/perl |path_cacti|/scripts/query_unix_partitions.pl</script_path>
Which tells me I would need to edit both of those scripts (except that I already have and the full path is there).
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

How do you gather these stats?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Re: Cleans *and* straightens your teeth.

Post by knobdy »

Howie wrote:Not only did we get roughly 8x the poll speed, but check out the CPU usage of our Cacti server! Can you tell when the switchover occurred? :lol: It's fair to say that cactid has given our stats server a new lease of life.
Not using cactid I'm seeing the same graphs for my machines CPU useage... who wants to hold my hand through the move to cactid so I can get it to work?!
tomasperez wrote:How do you gather these stats?
I know there's a plugin for it, try searching the forums for "pollperf" - hope that helps.
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

In reference to several previous posts....

"updatedb" is a command that indexes the filesystem and stores the names of all the files in a database

"locate" searches that database for a given name

The easiest way to search for text in files is with grep. Using "cat * | grep <pattern>" will simply return a bunch of lines - you won't know what file they came from, or where in the file they exist. If you use "grep -rHn * <pattern>" you will get a recursive search, that will print the name of the file, the linenumber, and the line in the file where <pattern> occurs. Much easier.
Dave
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

melchandra wrote:If you use "grep -rHn * <pattern>" you will get a recursive search, that will print the name of the file, the linenumber, and the line in the file where <pattern> occurs. Much easier.
Amen - thanks! :)

oops, think it should be: grep -rHn <pattern> *
keen
Posts: 11
Joined: Mon Jan 09, 2006 3:09 am

Benchmark

Post by keen »

So how do I fare? Comparable with everyone else? :)

Code: Select all

System Specs:
CPU: Intel(R) Xeon(TM) CPU 2.40GHz
Memory: 1GB 
OS: CentOS 4.2

Linux hostname 2.6.9-22.0.2.ELsmp #1 SMP Tue Jan 17 07:10:04 CST 2006 i686 i686 i386 GNU/Linux

 10:59:32 up 41 days, 11:01,  1 user,  load average: 0.71, 0.31, 0.19

04/20/2006 10:10:05 AM - SYSTEM STATS: Time:3.5800 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:15:05 AM - SYSTEM STATS: Time:3.6006 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:20:05 AM - SYSTEM STATS: Time:3.5904 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:25:06 AM - SYSTEM STATS: Time:4.5944 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:30:04 AM - SYSTEM STATS: Time:3.5927 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:35:06 AM - SYSTEM STATS: Time:4.5833 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:40:05 AM - SYSTEM STATS: Time:3.5948 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:45:05 AM - SYSTEM STATS: Time:3.9285 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:50:05 AM - SYSTEM STATS: Time:3.5936 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
04/20/2006 10:55:05 AM - SYSTEM STATS: Time:3.5913 Method:cactid Processes:1 Threads:1 Hosts:22 HostsPerProcess:22 DataSources:931 RRDsProcessed:472
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests