/*******************************************************************************

    Author ......... Jimmy Conner
    Contact ........ jimmy@sqmail.org
    Home Site ...... http://sqmail.org
    Program ........ Auto Host Discovery
    Version ........ 0.6
    Purpose ........ View Hosts on a Subnet that are not monitored by Cacti

*******************************************************************************/


----[ Purpose

    This plugin adds the ability to auto-discover devices on a subnet that are not monitored by Cacti and and tells you if they are SNMP enabled.

----[ Features

    Host Filter
    Displays Host Status
    Displays DNS Name
    Displays SNMP Status and Information
    Link to add device to Cacti.

----[ Installation

    Install just like any other plugin, just throw it in the plugin directory,
    in a folder called discovery
    Edit your includes/config.php and add it to your $plugins list, and you are rolling
    
----[ Possible Bugs?
   
    If you figure out this problem, let me know!!!


----[ Future Changes
    
    Got any ideas or complaints, please e-mail me!

----[ Changelog
	--- SVN ---
	
	--- 0.6 ---
		Fix timeout problem with the discovery process
		Fix for the poller not allowing scans to be scheduled in less than 24 hours from now
		Fix for hostname detection of devices already in Cacti database.
		Update plugin tab to better resemble the original cacti images
		Add more filtering options for the results page
		Fix a bug when viewing multiple pages when your default per page is not 30

	--- 0.5 ---
		Bug #0000043 - Add "Utility" Link to Clear Discovery Results
		FR  #0000039 - Add option for Start Time and Polling Frequency
		Changed column name in plugin_discover_os table (match to matchstring), but made the plugin backwards compatible with the old column
		Added command line options to force the polling, show debug output, and to drop and recreate the tables

	--- 0.4 ---
		Bug #0000018 - Add option for SNMP Community Names to use, before it was hardcoded with just 'public'.
		If DNS times out, don't display the current name as 'timed_out'
		FR  #0000012 - Add option to allow to display as a Menu item instead of as a Tab
		Fix display errors for PHP < 4.1.0, $_SERVER variable did not exist
		Added new column to the database to store the hosts community name
		Added the ability to use subnets/ranges such as 10.1.0.0/255.255.253.0, 10.1.0.19/255.255.255.240, 10.1.0.19-10.1.0.27, 10.1.0.0/24

	--- 0.3 ---
		Fixed issue with the SQL files and imports and Mysql 3.*
		#0000013 - Fix issues with database names with uncommon characters by enclosing in back-ticks.

	--- 0.2 ---
		Added option for specifying a DNS server
		Added option to use UDP/TCP/or ICMP for pinging
		A little code cleanup and fixing

	--- 0.1 ---
		Initial release
     

