Submit Your CMD.PHP vs. SPINE Metrics Here
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Cleans *and* straightens your teeth.
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? It's fair to say that cactid has given our stats server a new lease of life.
- Attachments
-
- Before/After CACTID
- graph_image.png (39.25 KiB) Viewed 6365 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!)
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!)
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
Reinhard
Finally I'm going to guess that if I run into:
I simply replace it with:
<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
|path_php_binary|
Code: Select all
/usr/bin/php5
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
Try these commands to locate items:
which perl
whereis perl
and as a last resort"
find / | grep "filenamehere"
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)
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)
I use locate (and updatedb) for finding files, if "which" doesn't work.
The commands I offered were to find files calling perl, like:
would provide me with every line using "perl" - which would be:
Which tells me I would need to edit both of those scripts (except that I already have and the full path is there).
The commands I offered were to find files calling perl, like:
Code: Select all
cat /usr/cacti/resource/script_queries/* | grep perl
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>
Re: Cleans *and* straightens your teeth.
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?!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? It's fair to say that cactid has given our stats server a new lease of life.
I know there's a plugin for it, try searching the forums for "pollperf" - hope that helps.tomasperez wrote:How do you gather these stats?
-
- Cacti User
- Posts: 311
- Joined: Tue Jun 29, 2004 12:52 pm
- Location: Indiana
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.
"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
Benchmark
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
Who is online
Users browsing this forum: No registered users and 0 guests