diff -Nur smeserver-sme9admin-1.5.old/root/usr/bin/sme9admind smeserver-sme9admin-1.5/root/usr/bin/sme9admind --- smeserver-sme9admin-1.5.old/root/usr/bin/sme9admind 2014-12-24 01:41:01.000000000 -0500 +++ smeserver-sme9admin-1.5/root/usr/bin/sme9admind 2016-11-23 16:46:55.638000000 -0500 @@ -1294,7 +1294,9 @@ sprintf(gettext("you had set the alert limit to %s incoming e-mails.\n"),$params{'MaxMailIn'}), gettext("(Possible reasons : do you receive spam ? a mailbomb ? mailing-lists ?)\n"), gettext("If you have access to the server-manager, use this link to modify the limit :\n"), - "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxMailIn"; + "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxMailIn", + "\n# tail /var/log/qpsmtpd/current\n", + `/usr/bin/tail /var/log/qpsmtpd/current -n500 | /usr/local/bin/tai64nlocal |/bin/grep logterse`; }], [ "($params{'MaxMailOut'} && $net_mail_out >= $params{'MaxMailOut'})", @@ -1314,7 +1316,9 @@ sprintf(gettext("you had set the alert limit to %s %%.\n"),$params{'MaxDiskSpace'}), gettext("(Advice : free space by deleting temp files, or upgrade your disk space)\n"), gettext("If you have access to the server-manager, use this link to modify the limit :\n"), - "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxDiskSpace"; + "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxDiskSpace", + "\n#df\n", + `df -hTP`; }], [ "($params{'MaxCpu'} && $cpu_total >= $params{'MaxCpu'})", @@ -1324,7 +1328,9 @@ sprintf(gettext("you had set the alert limit to %s %%.\n"),$params{'MaxCpu'}), gettext("(Possible reasons : Is there a crashed process ? an intense and prolonged activity on the server ?)\n"), gettext("If you have access to the server-manager, use this link to modify the limit :\n"), - "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxCpu"; + "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxCpu", + "\n#top\n", + `/usr/bin/top -b -n1|head -n 20`; }], [ "($params{'MaxHwTemp'} && '$params{'SensorsTag1'}' ne '' && '$sensors_temp1' ne 'U' && $sensors_temp1 >= $params{'MaxHwTemp'})", @@ -1424,7 +1430,11 @@ sprintf(gettext("you had set the alert limit to %s sessions.\n"),$params{'MaxSsh'}), gettext("(Advice : check if it is known administrative connections, and not hackers.)\n"), gettext("If you have access to the server-manager, use this link to modify the limit :\n"), - "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxSsh"; + "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxSsh", + "\n#who\n", + `who`, + "#netstat -n |grep :22\n", + `netstat -n |grep :22`; }], [ "($params{'MaxFtp'} && $sessions_ftp >= $params{'MaxFtp'})", @@ -1434,7 +1444,9 @@ sprintf(gettext("you had set the alert limit to %s sessions.\n"),$params{'MaxFtp'}), gettext("(Advice : check that it is authorized users only.)\n"), gettext("If you have access to the server-manager, use this link to modify the limit :\n"), - "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxFtp"; + "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxFtp", + "\n#netstat -n |grep :21\n", + `netstat -n |grep :21`; }], [ "($params{'MaxVpn'} && $sessions_vpn >= $params{'MaxVpn'})", @@ -1444,7 +1456,9 @@ sprintf(gettext("you had set the alert limit to %s sessions.\n"),$params{'MaxVpn'}), gettext("(Advice : check that it is authorized users only.)\n"), gettext("If you have access to the server-manager, use this link to modify the limit :\n"), - "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxVpn"; + "https://$SystemName.$DomainName/server-manager/cgi-bin/sme9admin?state=conf_alert&alert=MaxVpn", + "\n# netstat -n|grep -E ':(1723|1194)\n", + `netstat -n |grep -E ':(1723|1194)'`; }] );