/[smecontribs]/rpms/smeserver-sme9admin/contribs9/smeserver-sme9admin-1.5-bz9725-email.patch
ViewVC logotype

Contents of /rpms/smeserver-sme9admin/contribs9/smeserver-sme9admin-1.5-bz9725-email.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Nov 23 21:49:54 2016 UTC (7 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-sme9admin-1_5-18_el6_sme, smeserver-sme9admin-1_5-30_el6_sme, smeserver-sme9admin-1_5-19_el6_sme, smeserver-sme9admin-1_5-27_el6_sme, smeserver-sme9admin-1_5-16_el6_sme, smeserver-sme9admin-1_5-23_el6_sme, smeserver-sme9admin-1_5-21_el6_sme, smeserver-sme9admin-1_5-24_el6_sme, smeserver-sme9admin-1_5-22_el6_sme, smeserver-sme9admin-1_5-20_el6_sme, smeserver-sme9admin-1_5-17_el6_sme, smeserver-sme9admin-1_5-29_el6_sme, smeserver-sme9admin-1_5-25_el6_sme, smeserver-sme9admin-1_5-28_el6_sme, smeserver-sme9admin-1_5-26_el6_sme, HEAD
* Wed Nov 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.5-16.sme
- add more verbose email alert [SME: 9725]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed