1 |
diff -Nur smeserver-sme9admin-1.5.old/root/usr/bin/sme9admind smeserver-sme9admin-1.5/root/usr/bin/sme9admind |
2 |
--- smeserver-sme9admin-1.5.old/root/usr/bin/sme9admind 2014-12-24 01:41:01.000000000 -0500 |
3 |
+++ smeserver-sme9admin-1.5/root/usr/bin/sme9admind 2016-11-23 16:46:55.638000000 -0500 |
4 |
@@ -1294,7 +1294,9 @@ |
5 |
sprintf(gettext("you had set the alert limit to %s incoming e-mails.\n"),$params{'MaxMailIn'}), |
6 |
gettext("(Possible reasons : do you receive spam ? a mailbomb ? mailing-lists ?)\n"), |
7 |
gettext("If you have access to the server-manager, use this link to modify the limit :\n"), |
8 |
- "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxMailIn"; |
9 |
+ "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxMailIn", |
10 |
+ "\n# tail /var/log/qpsmtpd/current\n", |
11 |
+ `/usr/bin/tail /var/log/qpsmtpd/current -n500 | /usr/local/bin/tai64nlocal |/bin/grep logterse`; |
12 |
}], |
13 |
[ |
14 |
"($params{'MaxMailOut'} && $net_mail_out >= $params{'MaxMailOut'})", |
15 |
@@ -1314,7 +1316,9 @@ |
16 |
sprintf(gettext("you had set the alert limit to %s %%.\n"),$params{'MaxDiskSpace'}), |
17 |
gettext("(Advice : free space by deleting temp files, or upgrade your disk space)\n"), |
18 |
gettext("If you have access to the server-manager, use this link to modify the limit :\n"), |
19 |
- "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxDiskSpace"; |
20 |
+ "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxDiskSpace", |
21 |
+ "\n#df\n", |
22 |
+ `df -hTP`; |
23 |
}], |
24 |
[ |
25 |
"($params{'MaxCpu'} && $cpu_total >= $params{'MaxCpu'})", |
26 |
@@ -1324,7 +1328,9 @@ |
27 |
sprintf(gettext("you had set the alert limit to %s %%.\n"),$params{'MaxCpu'}), |
28 |
gettext("(Possible reasons : Is there a crashed process ? an intense and prolonged activity on the server ?)\n"), |
29 |
gettext("If you have access to the server-manager, use this link to modify the limit :\n"), |
30 |
- "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxCpu"; |
31 |
+ "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxCpu", |
32 |
+ "\n#top\n", |
33 |
+ `/usr/bin/top -b -n1|head -n 20`; |
34 |
}], |
35 |
[ |
36 |
"($params{'MaxHwTemp'} && '$params{'SensorsTag1'}' ne '' && '$sensors_temp1' ne 'U' && $sensors_temp1 >= $params{'MaxHwTemp'})", |
37 |
@@ -1424,7 +1430,11 @@ |
38 |
sprintf(gettext("you had set the alert limit to %s sessions.\n"),$params{'MaxSsh'}), |
39 |
gettext("(Advice : check if it is known administrative connections, and not hackers.)\n"), |
40 |
gettext("If you have access to the server-manager, use this link to modify the limit :\n"), |
41 |
- "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxSsh"; |
42 |
+ "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxSsh", |
43 |
+ "\n#who\n", |
44 |
+ `who`, |
45 |
+ "#netstat -n |grep :22\n", |
46 |
+ `netstat -n |grep :22`; |
47 |
}], |
48 |
[ |
49 |
"($params{'MaxFtp'} && $sessions_ftp >= $params{'MaxFtp'})", |
50 |
@@ -1434,7 +1444,9 @@ |
51 |
sprintf(gettext("you had set the alert limit to %s sessions.\n"),$params{'MaxFtp'}), |
52 |
gettext("(Advice : check that it is authorized users only.)\n"), |
53 |
gettext("If you have access to the server-manager, use this link to modify the limit :\n"), |
54 |
- "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxFtp"; |
55 |
+ "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxFtp", |
56 |
+ "\n#netstat -n |grep :21\n", |
57 |
+ `netstat -n |grep :21`; |
58 |
}], |
59 |
[ |
60 |
"($params{'MaxVpn'} && $sessions_vpn >= $params{'MaxVpn'})", |
61 |
@@ -1444,7 +1456,9 @@ |
62 |
sprintf(gettext("you had set the alert limit to %s sessions.\n"),$params{'MaxVpn'}), |
63 |
gettext("(Advice : check that it is authorized users only.)\n"), |
64 |
gettext("If you have access to the server-manager, use this link to modify the limit :\n"), |
65 |
- "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxVpn"; |
66 |
+ "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxVpn", |
67 |
+ "\n# netstat -n|grep -E ':(1723|1194)\n", |
68 |
+ `netstat -n |grep -E ':(1723|1194)'`; |
69 |
}] |
70 |
); |
71 |
|