Go easy on me, this is my first try at creating a plugin!
In short:
This plugin adds a tab into Cacti that has an embedded Java SSH client.
The client is built using the JTA:
http://javassh.org
Install (Like most other typical plugins):
Download / ungzip / untar and copy to your plugins folder.
Example from UNIX:
(You will need to edit this to point to where you have Cacti installed of course)
cd /usr/src
wget http://forums.cacti.net/download.php?id=11871
mv "download.php?id=11871" ssh.tar.gz
tar xvf ssh.tar.gz -C /opt/apache/htdocs/cacti/plugins/
# Add the plug-in to the array
vi /opt/apache/htdocs/cacti/include/global.php
$plugins = array();
$plugins[] = 'ssh';
# Reset file permissions (make sure you use the correct user:group for your server of course)
chown -R www:www /opt/apache/htdocs
Log in to your Cacti web interface and verify that the plug-in is working.
Note: Many plug-ins require you to allow permission for each web user to view and use the new plug-in.
From the Cacti web interface, Click the "Console" tab then click "User Management" and pick the user of your choice and verify the check boxes.
Make sure View SSH is checked.
Next tell the plugin the name or IP of your SSH server:
Click the Console tab then Settings then the Misc tab and fill in SSH Host
Notes:
- You need to have Java installed on your workstation (for use with your browser / this embedded plugin)
- You need to have a functional SSH server running on your Cacti box (or somewhere) for this plugin to connect to
Environment:
Built on my development FreeBSD VMware machine and tested under these conditions with IE7 on Windows XP with Sun Java 1.5x:
Thank you to the entire Cacti team for continued work on Cacti including Jimmy Conner for great plugin examples!Cacti Version - 0.8.7a
Plugin Architecture - 1.4
Poller Type - CMD.php
Server Info - FreeBSD 6.2-RELEASE
Web Server - 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
PHP - 5.2.5
PHP Extensions - xmlwriter, libxml, dom, xmlreader, xml, tokenizer, session, pcre, SimpleXML, SPL, PDO, sockets, soap, snmp, SQLite, standard, Reflection, posix, pdo_sqlite, pdo_dblib, odbc, mysql, mssql, mbstring, ldap, json, iconv, hash, gd, ftp, filter, exif, dbase, dba, date, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler
MySQL - 5.0.51
RRDTool - 1.2.26
SNMP - 5.4.1
Plugins
- Global Plugin Settings (settings - v0.3)
Host Info (hostinfo - v0.2)
Network Discovery (discovery - v0.8.3)
Device Tracking (mactrack - v1.1)
Read-only Devices Tab (devices - v0.4)
SuperLinks (superlinks - v0.72)
Update Checker (update - v0.4)
Network Tools (tools - v0.2)
Device Monitoring (monitor - v0.8.2)
Thresholds (thold - v0.3.9)
PHP Network Managing (manage - v0.5.1)
Syslog Monitoring (syslog - v0.5.2)
NTop Viewer (ntop - v0.1)
B.A.S.E Viewer (B.A.S.E - v0.1)
Cycle Graphs (Cycle Graphs - v0.4)
ReportIt (ReportIt - v0.5.1)
Documents (docs - v0.1)
SSH Viewer (ssh - v1.0)
IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4d)
Poller Performance Report (pollperf - v0.32)
Real-time statistics (zond - v0.34a)
Create Aggregate Graphs (aggregate - v0.64)
RRD File Cleaner (RRD Cleaner - v0.32)
Configuration manager (configmanager - v0.75)