mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
loadmon: updates program names to monitor and usage comment
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
13
loadmon.pl
13
loadmon.pl
@@ -9,6 +9,13 @@
|
||||
# RuntimeKeepFree=500M
|
||||
# RuntimeMaxFiles=5
|
||||
# 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 warnings;
|
||||
@@ -16,6 +23,7 @@ use strict;
|
||||
#use Time::localtime;
|
||||
use POSIX;
|
||||
use Data::Dumper;
|
||||
$| = 1;
|
||||
|
||||
package main;
|
||||
|
||||
@@ -30,11 +38,14 @@ our @prog_names = (
|
||||
"dhclient",
|
||||
"dnsmasq",
|
||||
"hostapd",
|
||||
"httpd",
|
||||
"java",
|
||||
"l4helper",
|
||||
"logchopper",
|
||||
# "logchopper",
|
||||
"nginx",
|
||||
"perl",
|
||||
"pipe_helper",
|
||||
"vsftpd",
|
||||
"wget",
|
||||
"wpa_cli",
|
||||
"wpa_supplicant",
|
||||
|
||||
Reference in New Issue
Block a user