Ken Moore
e5f57ab160
Oops - fix a typo so the auto-update setting is properly respected.
2016-12-14 14:23:46 -05:00
Ken Moore
8da65605c2
Add a new setting to the update manager specifically for SysAdm:
...
"auto_update_reboot" = "0"-"23" (hour of the day)
If this is set (to a valid number), then SysAdm will automatically reboot the system to finish performing updates at the specified hour. Any other setting (or the value not being set) disables this option.
2016-10-25 14:02:26 -04:00
Ken Moore
2099f39d58
Add the auto-update hooks directly into the sysadm server.
...
Now the automatic 15 minute health checks will startup the update process if the autoupdate option is set rather than relying on anacrontab.
2016-10-25 12:41:06 -04:00
Ken Moore
4d2dc47837
For the health check - add a "priority" field within the indivual zpool object which needs attention (in addition to the overall "priority" field). This helps for parsing which individual system needs attention within the health check.
2016-03-24 10:18:30 -04:00
Ken Moore
7566f1396e
Add a new "fast" mode to the sysadm-update check for updates (re-use previous update info), and setup the regular health check to report update information using this fast mode.
2016-03-24 08:58:29 -04:00
Ken Moore
427eb7ec25
Turn off some minor debugging, and ensure that the system health check gets saved into temporary storage for later use as needed.
2016-03-22 10:21:46 -04:00
Ken Moore
7edfaa2321
Oops - fix a typo in the new zfs list_pools output to preserve the "%" symbols in the outputs. That symbol only needs to get trimmed out during the system health checks - not globally.
2016-03-22 10:02:35 -04:00
Ken Moore
b074a611ee
Move the "zpool list" parsing function over to a new library class (sysadm::ZFS). This adjusts the sysadm/zfs "list_pools" action return message a bit - it just moves the list of pools one level down - within a "list_pools" object.
2016-03-22 09:39:39 -04:00
Ken Moore
055f6e3be8
Fix another bug in the system health checker - ensure that multiple pools are all listed and not overwriting one another.
2016-03-21 15:47:51 -04:00
Ken Moore
992bdd1f2e
Fix the parsing of zpool list used for the health check.
2016-03-21 15:36:39 -04:00
Ken Moore
d2ef14a0d1
Large update to the dispatcher/events systems. Now there is a new DispatcherParsing.h file where any subsystem-specific dispatcher calls may be detected/parsed/handled as needed, and the iohyve fetch routine was updated to use this routine (for a proof of concept - could probably still use a bit more log output).
2016-03-03 15:16:55 -05:00
Ken Moore
1fc3b3fbb4
Couple changes:
...
1) Fix the event registration detection (string/array for args, not object/array)
2) Add a 30 second connection timeout for the client to successfully authorize before the server will close the connection.
2016-03-03 11:57:45 -05:00
Ken Moore
cdbe769fe2
Fix up the new "State" event system a bit.
2016-02-23 14:52:45 -05:00
Ken Moore
6640762196
Fix up the timers in the event watcher. Due to the multi-threading, we need to create the timers in the start() function instead of the constructor.
2016-02-22 12:53:27 -05:00
Kris Moore
cd72cb1308
Fix location of sysadm-general.h
2016-02-12 12:58:04 -05:00
Kris Moore
a1593e759a
Add initial Event watcher for system health, needs fixing since
...
QTimer isn't working at the moment, kenmoore will investigate
2016-02-12 12:54:45 -05:00
Ken Moore
edbef3e759
Add a full chain of SSL Certificate management fucntions to the authorization manager, and setup the main "auth" API call to use the cert system if no password was supplied for authorization.
...
While here, also move the location of the server config file to /usr/local/etc/sysadm.conf, and print out that location in the main server log file.
2016-02-10 12:43:06 -05:00
Ken Moore
37224472cc
Make the websocket/rest server distinctions a bit more clear. Now the logs are in websocket/restserver subdirectories, the LP file watchers will resume from the last log point (server-type aware), and a couple other changes for saving server-dependent variables.
2016-02-03 10:12:01 -05:00
Ken Moore
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.
2016-02-02 14:26:10 -05:00
Ken Moore
7ed1c6ad74
Merge branch 'master' of github.com:pcbsd/sysadm
2016-02-02 14:08:47 -05:00
Ken Moore
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.
2016-02-02 14:07:25 -05:00
Kris Moore
c4a8e5a701
Add logging of LP events
2016-02-02 14:04:07 -05:00
Ken Moore
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.
2016-02-02 13:46:23 -05:00
Ken Moore
c8f97a69fe
Clean up a fair bit of the server backends. Getting rid of compilation warnings, signal/slot connection issues, etc..
2016-02-01 15:39:29 -05:00
Ken Moore
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)
2016-01-29 16:24:40 -05:00
Ken Moore
155026aab1
Fix up the file watcher system in the events class. Now it actually functions in it's own thread.
2016-01-20 11:42:41 -05:00
Ken Moore
539e2bf64e
Commit some debugging on the event watcher system - trying to figure out why no events are getting picked up from lp log changes.
2016-01-20 10:18:51 -05:00
Ken Moore
d99871c117
Add in support for Life Preserver events.
2016-01-19 16:17:59 -05:00
Ken Moore
0077d68208
Commit some debugging work on the sysadm server.
2016-01-18 16:53:12 -05:00
Ken Moore
f30b6cf947
Finish up the overhaul of the Events subsystem and start adding in the Life Preserver event handling/systems.
2016-01-18 12:37:40 -05:00
Ken Moore
82b549ead3
Split off the Events subsystem from the server class and set it up for easy expansion later.
2016-01-15 15:36:04 -05:00