mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +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
|
# 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",
|
||||||
|
|||||||
Reference in New Issue
Block a user