Commit Graph

  • a9ba0a317c Make sure the event file watcher checks for new watched files on a more regular basis. This will check every time a client asks for the latest logs, and will automatically load/parse any new file which appears. Ken Moore 2016-02-02 14:26:10 -05:00
  • 7ed1c6ad74 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-02-02 14:08:47 -05:00
  • 407b9a8d5d A bit more cleanup in the server. Remove the dispatcher-client files (the dispatcher is now an internal system, not an external script). Clean up some comments and log stuff. Ken Moore 2016-02-02 14:07:25 -05:00
  • c4a8e5a701 Add logging of LP events Kris Moore 2016-02-02 14:04:07 -05:00
  • 8166ef8a79 Cleanup a lot of the logging in the sysadm server. Now the hostinfo log file will clearly list connection time/IP, auth attempts/IP, Dispatches/IP, disconnections/IP. The dispatcher and events systems also properly log activity within their individual log files. Ken Moore 2016-02-02 13:46:23 -05:00
  • 3c991ebf4c Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-02-02 13:01:18 -05:00
  • 470000b08b Get all the threading working properly so teh dispatcher functions correctly now. Ken Moore 2016-02-02 13:00:49 -05:00
  • c9e4b2479a Add a new API call to "systeminfo" class, which returns information about all processes on the system. Kris Moore 2016-02-02 11:06:45 -05:00
  • 922ceaea43 Doc startupdate action. dlavigne 2016-02-02 09:23:09 -05:00
  • be12e18983 Fix up the log function so that now it will actually create/save the log. Ken Moore 2016-02-01 16:51:31 -05:00
  • b36958b33a Enable a bit more logging from host/client connections. Still seems to be a problem with the log getting saved to disk though. Ken Moore 2016-02-01 16:37:39 -05:00
  • 6fd315f8cc Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-02-01 15:40:59 -05:00
  • c8f97a69fe Clean up a fair bit of the server backends. Getting rid of compilation warnings, signal/slot connection issues, etc.. Ken Moore 2016-02-01 15:39:29 -05:00
  • bd53bbc29b Add new API class for 'iohyve' along with the initial 'listvms' API call Kris Moore 2016-02-01 15:23:21 -05:00
  • e65a967729 Don't show errors if the service isn't running anymore Kris Moore 2016-02-01 14:46:17 -05:00
  • 90ee8021d6 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-02-01 14:37:12 -05:00
  • 2b0fbcc2a2 Get rid of all the extra compile warnings Kris Moore 2016-02-01 14:36:58 -05:00
  • 7463d84229 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-02-01 14:22:27 -05:00
  • 87c545230c New API: Change the sysadm dispatcher access to use the built-in dispatcher system now instead of the old shell script. This new API will have the server queue up generic processes/commands as the user needs (main output will return through the event system). The example blow included a single command queue (procID1), as well an an example of chaining a couple commands together as a single process call (procID2). Ken Moore 2016-02-01 14:19:25 -05:00
  • e9fd60096b Have the api-test.sh script cleanup after itself Kris Moore 2016-02-01 14:18:40 -05:00
  • a5c594f3da Cleanup pkg-plist Kris Moore 2016-02-01 14:05:40 -05:00
  • dabbc5398c Update API call for lpreserver runreplication to now queue the action and return right away Kris Moore 2016-02-01 14:04:21 -05:00
  • ad2f352a5d Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-02-01 14:03:07 -05:00
  • cabcd0a2b2 Fix up the sysadm.pro file - forgot to clean up the old library subdir in it. Ken Moore 2016-02-01 14:02:37 -05:00
  • 62465ad03e Add the 'startupdate' API call which allows you to queue a system update Kris Moore 2016-02-01 13:21:17 -05:00
  • 6aeb05b825 Remove the old library directory from the sysadm source tree Ken Moore 2016-02-01 12:33:28 -05:00
  • 1146b14917 Cleanup the library/server interactions for sysadm: Now the "library" directory is just an internal collection of classes/files, rather than an actual library of system calls. This allows for in-server globals usage (such as the dispatcher/events systems) within the library files as needed. Ken Moore 2016-02-01 12:29:25 -05:00
  • df3500b274 Update sysadm-update with the upcoming startUpdates() internal call, will doc it later when its finished Kris Moore 2016-02-01 12:13:59 -05:00
  • a95404c88d Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-02-01 11:21:04 -05:00
  • df94531644 Setup the subsystem access to automatically deny access to systems which are not currently available (read/write access needs to be managed by the individual subsystems) Ken Moore 2016-02-01 11:18:24 -05:00
  • d637759e1b Doc getjailsettings action. dlavigne 2016-02-01 09:57:33 -05:00
  • e4ca592edc Doc getdefaultsettings action. dlavigne 2016-02-01 09:49:34 -05:00
  • 1e9ec2d4b6 Merge branch 'master' of https://github.com/pcbsd/sysadm Ken Moore 2016-01-29 16:27:48 -05:00
  • 04c366f114 Finish adding in the new dispatcher system (untested). This should be ready for trying out in some subsystem now. Note: to queue up a job you just need to run one of the DISPATCHER->queue() functions (there are a few overloaded versions for simplicity) Ken Moore 2016-01-29 16:24:40 -05:00
  • 5a53aacf9f Add new API call to get all iocage default settings Kris Moore 2016-01-29 15:37:43 -05:00
  • 188f20ff16 Add new 'getjailsettings' API call which returns all the 'iocage get all <jail>' properties in json Kris Moore 2016-01-29 14:45:37 -05:00
  • 502d048d97 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-29 10:11:44 -05:00
  • c747d1f44c Commit some more work on finishing up the new Dispatcher. Ken Moore 2016-01-29 10:11:18 -05:00
  • 9a32c2553e Add Qt concurrent support Kris Moore 2016-01-29 08:00:01 -05:00
  • b34ed3073e Update port files for sysadm Kris Moore 2016-01-28 19:49:56 -05:00
  • c9aa4d30b9 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-26 12:56:27 -05:00
  • 01124d2719 Commit my work in progress for the new Dispatcher subsystem. This is ~80% done right now (still filling out some of the internals - but the class framework is set in stone). Ken Moore 2016-01-26 12:55:08 -05:00
  • 4800f5b618 Update pkg-plist and RUN_DEPENDS for sysadm port Kris Moore 2016-01-26 12:39:40 -05:00
  • f8df6d4325 Clarify UUID and type. dlavigne 2016-01-26 11:29:53 -05:00
  • 8e7123e94a Doc new events namespace. dlavigne 2016-01-26 11:25:57 -05:00
  • 2d407775b4 Doc listjails action. dlavigne 2016-01-26 10:46:28 -05:00
  • 70b8cd31ed Doc listbranches action. dlavigne 2016-01-26 10:31:04 -05:00
  • 7c2f15717d Doc systeminfo action. dlavigne 2016-01-26 10:15:13 -05:00
  • 478bdb204c Add the first iocage sysadm API call Kris Moore 2016-01-26 10:11:14 -05:00
  • dd0f7bb45b Fix on -CURRENT starting the various services Kris Moore 2016-01-26 10:09:07 -05:00
  • 2f99b12f61 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-01-26 09:38:11 -05:00
  • 56a3fb21b1 Add systeminfo / update / iocage to subsystems we test for Kris Moore 2016-01-26 09:37:28 -05:00
  • 5abd03bf7c Update to memorystats. dlavigne 2016-01-26 09:31:31 -05:00
  • ccd41322bd Replace the 'memorypercentage' API call with 'memorystats', which returns much more meaningfull information to let us do graphs and whatnot Kris Moore 2016-01-25 15:51:43 -05:00
  • d873746bfe Add new API call to get a bunch of various system information back Kris Moore 2016-01-25 14:55:41 -05:00
  • 98087f0faa Add new API call for listing available branches to update to Kris Moore 2016-01-25 14:21:37 -05:00
  • 6eec1c9148 Change port name Kris Moore 2016-01-25 11:57:00 -05:00
  • 50dc399d2b Add the 'mkports.sh' helper we will use to update the port files for sysadm server Kris Moore 2016-01-25 11:25:10 -05:00
  • 30f12740bc Doc cputemps action. dlavigne 2016-01-22 10:35:04 -05:00
  • 174f0bc815 Doc cpupercentage action. dlavigne 2016-01-22 10:28:15 -05:00
  • 3b51062f74 Doc memorypercentage action. dlavigne 2016-01-22 10:21:36 -05:00
  • f8f8762616 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-21 16:58:37 -05:00
  • 80d1023921 Add a class of static functions for logfile management. This is designed to automatically create/manage daily logs, with auto-pruning of old logs to be added soon. There are a number of various overloaded functions for writing to a log file right now (QStringList, QString, QJsonObject, QJsonArray), but only the QStringList output for reading a file right now. Ken Moore 2016-01-21 16:51:51 -05:00
  • 1fc7b3cabd Add a new API call which returns the total memory in use Kris Moore 2016-01-21 13:47:11 -05:00
  • aa5755d4b4 New API call to get cpupercentage stats Kris Moore 2016-01-21 13:39:22 -05:00
  • 609bba2ded New API call to get a listing of all the CPU temps on the system, if the "coretemp" module isn't loaded, it will be loaded beforehand Kris Moore 2016-01-21 12:58:12 -05:00
  • 305c8da71c Add the "timeleft":"<seconds>" to the battery info Kris Moore 2016-01-21 12:31:17 -05:00
  • 1ae716ebfc Add IP blacklisting to the sysadm server. Current Settings: 1) 5 auth attempts allowed before failover 2) If no communications for 10 minutes, the failover counter gets reset 3) On failover - the IP is placed on the server blacklist for 1 hour Note: The blacklist system is connection independant, and uses the host IP for unique tracking/blocking. Ken Moore 2016-01-21 10:12:13 -05:00
  • 96fa70a1fe Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-21 07:51:06 -05:00
  • 7d6ea3ff11 Make the SSL settings for the servers appear as defined within globals-qt.h. This makes it easy to change key/cert files or SSL versions later on for both types of server simultaneously. Ken Moore 2016-01-21 07:49:47 -05:00
  • 9b065a1937 Doc batteryinfo action. dlavigne 2016-01-20 13:57:07 -05:00
  • 58e7e7a4e3 Add new API call for batteryinfo Kris Moore 2016-01-20 13:26:38 -05:00
  • 783bca9dbf Doc new systeminfo class. dlavigne 2016-01-20 13:08:51 -05:00
  • 7d839787bd Add first API call for the "systeminfo" class Kris Moore 2016-01-20 12:13:25 -05:00
  • 155026aab1 Fix up the file watcher system in the events class. Now it actually functions in it's own thread. Ken Moore 2016-01-20 11:42:41 -05:00
  • 539e2bf64e Commit some debugging on the event watcher system - trying to figure out why no events are getting picked up from lp log changes. Ken Moore 2016-01-20 10:18:51 -05:00
  • f347c5ac56 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-20 09:54:36 -05:00
  • fd5bc59d00 Fix up a bit more of the event system within the websocket class after some testing with the client. Ken Moore 2016-01-20 09:54:00 -05:00
  • 730bd194fc Merge pull request #7 from ldemouy/master ldemouy 2016-01-19 14:44:42 -07:00
  • 89865b5a2d Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-19 16:18:56 -05:00
  • d99871c117 Add in support for Life Preserver events. Ken Moore 2016-01-19 16:17:59 -05:00
  • d4f2e302bc OSX Doesn't support TLS 1.1 or 1.2, so we fallback to 1.0 Kris Moore 2016-01-19 15:05:18 -05:00
  • 2155947438 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-19 14:50:13 -05:00
  • 7ebc12aaf7 Add handling/debug output for connection errors in the websocket server. Ken Moore 2016-01-19 14:49:46 -05:00
  • f2daaddea6 Doc checkupdates action. While here, fix formatting error. dlavigne 2016-01-19 13:13:35 -05:00
  • 27ebde481d Make sure the "auth" requests are always run in order - do asyncronous event handling after auth is already setup. Ken Moore 2016-01-19 12:36:19 -05:00
  • 2260d06ee2 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-19 12:33:32 -05:00
  • ee7a5a9d43 Enable QtConcurrent for the message reply generation systems. Ken Moore 2016-01-19 12:33:00 -05:00
  • 01cad39043 Add new API call for "update" class to check system for updates. Kris Moore 2016-01-19 12:27:03 -05:00
  • f948edc354 Fix the place where we close the WS connection, so we don't close too fast before a reply can be formed Kris Moore 2016-01-19 12:25:55 -05:00
  • 7668cbe7f8 Merge remote-tracking branch 'upstream/master' Luke De Mouy 2016-01-19 10:15:39 -07:00
  • b54191a87d turn off the debug statement about services that are loaded Luke De Mouy 2016-01-18 16:43:18 -07:00
  • 8930ed8a01 put unsigned back in to get rid of the warning about conversion between int and uint Luke De Mouy 2016-01-18 16:37:20 -07:00
  • 71ef5fb49d Move Ctors/Dtors to top of class as is normal Luke De Mouy 2016-01-18 16:30:03 -07:00
  • 28eab2e2ef switch the Firewall class over to using the ServiceManager Luke De Mouy 2016-01-18 16:29:01 -07:00
  • a66d4b9bcc Create the ServiceManager Class that has the following functionality: *Start/Stop/Restart a Service *Enable/Disable a Service *Get the List of services *Get a specific service token Luke De Mouy 2016-01-18 16:27:21 -07:00
  • 0077d68208 Commit some debugging work on the sysadm server. Ken Moore 2016-01-18 16:53:12 -05:00
  • 766305dcdf Add new "update" API class with the first "checkupdates" action for testing. We will add an API call for doc'ing once we troubleshoot some issues Kris Moore 2016-01-18 15:07:57 -05:00
  • ae054b759a Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-01-18 12:38:14 -05:00
  • f30b6cf947 Finish up the overhaul of the Events subsystem and start adding in the Life Preserver event handling/systems. Ken Moore 2016-01-18 12:37:40 -05:00