loadmon: updates program names to monitor and usage comment

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2022-05-16 16:07:27 -07:00
committed by shivam
parent 5c7a6e9371
commit 9214ea68d8

View File

@@ -9,6 +9,13 @@
# RuntimeKeepFree=500M # RuntimeKeepFree=500M
# RuntimeMaxFiles=5 # RuntimeMaxFiles=5
# RuntimeMaxFileSize=256M # RuntimeMaxFileSize=256M
#
# Follow these message through journalctl using this technique:
#
# sudo ./loadmon.pl | logger -t loadmon
# ...new terminal...
# watch -n15 'journalctl --since "20 sec ago" -t loadmon | ./parse_loadmon.pl'
#
use diagnostics; use diagnostics;
use warnings; use warnings;
@@ -16,6 +23,7 @@ use strict;
#use Time::localtime; #use Time::localtime;
use POSIX; use POSIX;
use Data::Dumper; use Data::Dumper;
$| = 1;
package main; package main;
@@ -30,11 +38,14 @@ our @prog_names = (
"dhclient", "dhclient",
"dnsmasq", "dnsmasq",
"hostapd", "hostapd",
"httpd",
"java",
"l4helper", "l4helper",
"logchopper", # "logchopper",
"nginx", "nginx",
"perl", "perl",
"pipe_helper", "pipe_helper",
"vsftpd",
"wget", "wget",
"wpa_cli", "wpa_cli",
"wpa_supplicant", "wpa_supplicant",