]> _ Git - remote-logging.git/commitdiff
client: add more files to log by default; include more in info message
authormivirl <>
Sun, 2 Jun 2024 02:56:57 +0000 (21:56 -0500)
committermivirl <>
Sun, 2 Jun 2024 02:56:57 +0000 (21:56 -0500)
src/client.pl

index 8e203771fd0d2e3113ce8968906e9f126dac9b3e..7b17fba7c2c2584629ffe872bbbd25cebcd2fa57 100644 (file)
@@ -132,7 +132,7 @@ sub login {
 sub send_info {
     my $socket = login($clientName, $clientKey);
 
-    my $info = join "", ns_system('./busybox',  'sh', '-c', 'hostname; date; uname -a; lspci; lsusb; ifconfig');
+    my $info = join "", ns_system('./busybox',  'sh', '-c', 'hostname; date; uname -a; cat /etc/os-release; lspci; lsusb; ifconfig');
 
     $socket->send("info\n");
     $socket->send($info);
@@ -310,7 +310,9 @@ send_processes();
 # These files will have their contents sent as they are updated
 send_log('/var/log/secure');
 send_log('/var/log/auth.log');
+send_log('/var/log/audit/audit.log');
 send_log('/var/log/cron');
+send_log('/var/log/sudo.log');
 send_log('/var/log/messages');
 send_log('/var/log/syslog');