latest version: 0.8.8b
 
 Cacti (home)ForumsRepositoryDocumentation

Cacti: The complete RRDTool-based graphing solution.
 
Latest Files
cacti-0.8.8b.tar.gz...
cacti-0.8.8b.zip...

Information
What is Cacti?
Features
Changelog
Screen Shots

Downloads
Download Cacti
Official Patches
Additional Scripts

Spine (Cactid)
Information
Changelog
Download
Official Patches
Installation

Development
Road Map
SourceForge
SVN Repository
Browse SVN
Report a Bug

Support
Documentation
Forums
Mailing Lists
FAQ

Donate
Support Cacti
Contributers

Additional Scripts

Here are some scripts written by various people which can be used for gathering data in Cacti. I will provide no support for these scripts what so ever! I may eventually create an easier way for these scripts to be imported into Cacti without messing with data input/output strings. For now, make sure to read the section on Data Input Methods in the cacti manual for more information on how to use these scripts in cacti.

Sendmail Statistics Stefan Arts
Script to output the number of messages send to sendmail

Output is <messages received by sendmail>

If you run the cacti poller as non-root, then you may need need to change the permissions of the sendmail statistics file. Example:

chmod 644 /etc/mail/statistics

Operating System: Unix
Language: Bash

 
Connected FreeRadius Users Omar Armas
This script fetches the number of online users in a Freeradius server with mysql module.

You just have to change login, password, databasename and the ip address of your NAS.

Operating System: Unix
Language: Perl

 
Bind 9 Statistics Turbo Fredriksson
This is a very comprehensive script that returns information from a Bind 9 DNS server. The script can actually be integrated into Net-SNMP as a working SNMP table.

Please see the README file for installation related information.

Operating System: Unix
Language: Perl

 
iptables Chain Counters Brian Stanback
This is a quick perl script to pull bandwidth usage from iptables chains.

Operating System: Unix
Language: Perl

 
Apache Statistics Brian Stanback
Script to get the requests per second and the requests currently being processed from an Apache webserver.

Operating System: Unix
Language: Perl

 
Echoping Response Time Sébastien Desse
It uses echoping to test responce time of servers for http, https, smtp and echo protocols.

Arguments:

echoping.pl

Operating System: Unix
Language: Perl

 
Perl-Based cmd.php Replacement Roberto Carlos Navas
Requires:

Perl Modules: DBI, DBD::Mysql, Net::SNMP, Sys::Syslog, RRDs (rrdtool perl module)

Installation:

* Copy & Paste the code on a file... then chmod 0755
* Put it anywhere on the file system, and edit the configuration parameters at the top of the file.... Sorry... no code comments yet!
* Test it manually... it will write a log in /tmp/spine.log
* Put it to run on the crontab every 5 minutes as you do with cmd.php.

More Information

Operating System: Unix
Language: Perl

 
Perl-based TCP Ping Przemyslaw Frasunek
I'd like to share my ping-tcp.pl script, which provides pings over TCP. I'm using it on FreeBSD jails, where creating raw sockets isn't permitted, therefore classic ICMP ping won't work. It might also a good alternative for security reasons - it doesn't call external /sbin/ping application.

Operating System: Unix
Language: Perl

 
Nagios Data Collection Scripts for Cacti integr8er
From readme.txt:

This file describes the components of the cacti_nagios.tar archive. It itemizes each file and tells you where each should be placed on your system. This is a first contribution back to the open source world
for me and of course has very limited support. I'll not necessarilly reply to your emails if you send one.
I am assuming that anyone who uses this modified netsaint_statd script and tools would already know something about netsaint and perl et. al. Netsaint is originally licensed under the GPL, and hence, so is this code.

Operating System: Unix
Language: Perl

 
Sendmail Stats Jeremy Garcia
Description: Script to output the number of messages in a sendmail queue.
Output is

- Added support for both single and multiple queues
- Tried to accomodate for as many different forms of output as possible.
If I missed yours let me know and I will include it.

Operating System: Unix
Language: Perl

 
qmail Stats Jeremy Garcia
Script to output the number of messages in a qmail queue. Output is

Operating System: Unix
Language: Perl

 
Get Apache Webhits Matt Groener
reads in apache (or any) logfile and returns either 0 or number of lines

Operating System: Unix
Language: Perl

 
Get Memory Information Matt Groener
this only works for Linux or FreeBSD (with linux emulation)

Operating System: Linux/FreeBSD
Language: Perl

 
Get Processes Matt Groener
returns number of open processes from 'ps' output

Operating System: Unix
Language: Perl

 
Get Load Average Matt Groener
# get load uptimes for 1;5;15 min
# usage: loadavg.pl 1|5|15|all|debug

Operating System: Unix
Language: Perl

 
FreeBSD Stats Grabber ross
here is my FreeBSD script i wrote. It does req Linux emulation. (Just install the linux_base, i believe linux_base-7.1_2 is the latest. Then just add "linprocfs /compat/linux/proc linprocfs rw 0 0" to your /etc/fstab file)

Operating System: FreeBSD/Unix
Language: Perl

 
Various Scripts for Windows NT/2000 Phil Yuska
Here are some VB scripts that are wrapped in PHP to format the output. You can enter [scriptname.vbs] /? at the command line for help on their use. They use WMI to query computers so they work directly with windows 2000 or XP for NT 4.0 or 9.x there is a WMI agent from MS that needs to be installed. (i haven't had a chance to try this out so i can't speak to this directly).

Operating System: Win32
Language: PHP/VBS

 
Get Remote mailq using SNMP Danny Bendersky
usage: snmp-cacti-mailq.sh

# Variables
SERVER=$1 # Example: 10.0.0.3
SNMPCOMUNITY=$2 # Example: public

Operating System: Unix
Language: Bash

 
Get Remote Load Average using SNMP Danny Bendersky
usage: snmp-cacti-load.sh

# Variables
SERVER=$1 # Example: 10.0.0.3
SNMPCOMUNITY=$2 # Example: public
NUM=$3 # Example: 1

Operating System: Unix
Language: Bash

 
Gets statistics from MySQL server Martin Spasov
Takes one argument (Variable name) and returns it's value.
Good replacement for the sql.php script.

some interesting variables:

Questions - queries executed since last restart.
Threads_running - running queries now
Threads_connected - connected clients

Operating System: Unix/Win32
Language: PHP

 
Counts processes countaining string Martin Spasov
(or all processes if argument is empty)

Operating System: Unix
Language: Bash

 
Counts rows in a MySQL table Martin Spasov
Gets two argumets (database name and table name);
Returns number of rows.

Operating System: Unix/Win32
Language: PHP

 
 
 
 
Copyright © 2004-2012 The Cacti Group, Inc. - Cacti is the registered trademark The Cacti Group, Inc.


PHP      RRDTool