|
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
|
| |
|
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
|
| |
|
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
|
| |
|