Commit Graph

7 Commits

Author SHA1 Message Date
Digimer
cd5a78091f * Started work on managing the firewall in System.
Signed-off-by: Digimer <digimer@alteeve.ca>
2017-08-07 12:47:32 -04:00
Digimer
9936554cdb * Created Tools->nice_exit
* Changed all methods that returned 'undef' on error to return '!!error!!' instead.
* Created Convert->round(), ->comma(), ->bytes_to_human_readable() and ->human_readable_to_bytes().
* Created Database->archive_databases(), ->check_lock_age(), ->lock_file() and ->resync_databases() (last one is not started yet).

Signed-off-by: Digimer <digimer@alteeve.ca>
2017-08-01 21:04:35 -04:00
Digimer
6080ae0bb3 * Connecting to a database now adds/updates the host in the database via the new Database->insert_or_update_hosts and Database->get_hosts().
* Created the new System->determine_host_type() method that tries to determine the host type based on the host name (or via sys::host_type).

Signed-off-by: Digimer <digimer@alteeve.ca>
2017-07-31 00:22:18 -04:00
Digimer
a932b44d28 * Fixed a few more problems with the SQL schema and setting up the database when needed.
* Fixed more typo-related bugs.
* Created System->enable_daemon().
* Changed the 'database::general' to 'sys::database' to avoid accidental collisions with database IDs.

Signed-off-by: Digimer <digimer@alteeve.ca>
2017-07-28 00:39:53 -04:00
Digimer
66a984adbc NOTE: Certainly a broken commit.
This continues the work of adding database support (and ancilliary functions) to m3.
* Adds Alert->check_alert_sent() and Alert->register_alert(), providing similar functions as in m2.
* Adds Database->disconnect(), Database->insert_or_update_states(), Database->locking() (still in progress), Database->mark_active(), Database->_find_behind_database(), Database->_mark_database_as_behind() and Database->_test_access().

Signed-off-by: Digimer <digimer@alteeve.ca>
2017-07-20 02:00:40 -04:00
Digimer
3ea562a79c Note: Broken Commit
* This is an in-progress commit working on adding the Database methods. Much of it is copy/pasted from v2 and none of the new code is tested yet. It will certainly fail to compile.

Signed-off-by: Digimer <digimer@alteeve.ca>
2017-07-07 01:54:49 -04:00
Digimer
632f677f04 * Added two new modules; Convert.pm for converting data types and Database.pm for managing all things related to databases.
* Created Convert->cidr() that will convert dotted decimal subnets to CIDR notation and vice versa.
* Created Database->get_local_id that returns the ID from striker.conf that matches the local host, if any,
* Created Get->network_details that returns the host name and a list of interfaces and their IP addresses (if any).
* Created System->call() that takes a shell call and returns the output.
* Created icon for the top-right bar that are "on" (lit up).
* Created a skeleton striker.conf file.
* Created the new scancore-database tool that will manage ScanCore databases.

Signed-off-by: Digimer <digimer@alteeve.ca>
2017-06-13 17:08:38 -04:00