Line 1: |
Line 1: |
| {{Languages}} | | {{Languages}} |
− | {{Incomplete}}
| |
| | | |
| ===Introduction=== | | ===Introduction=== |
Line 12: |
Line 11: |
| events | | events |
| groups-users | | groups-users |
| + | logcheck |
| newrpms | | newrpms |
| pseudonyms | | pseudonyms |
Line 21: |
Line 21: |
| | | |
| ====aliases==== | | ====aliases==== |
− | {| style="color:red;background-color:#ffffcc;"
| |
− | |
| |
− | [Need description]
| |
− | |}
| |
| | | |
| This tools will check the content of qmail alias file (/var/qmail/alias) and add the Account appurtenance (Group/System/Alias...) | | This tools will check the content of qmail alias file (/var/qmail/alias) and add the Account appurtenance (Group/System/Alias...) |
Line 31: |
Line 27: |
| This tool will generate a list of events that are not part of the basic SME Server installation, it will also tell you if the events overrides a default template or if it is an addition.<br /> | | This tool will generate a list of events that are not part of the basic SME Server installation, it will also tell you if the events overrides a default template or if it is an addition.<br /> |
| | | |
− | This command has no output if no errors are identified | + | '''This command has no output if no errors are identified''' |
| | | |
| ====groups-users==== | | ====groups-users==== |
| The purpose of this tool is to verify correct GID and UID of essential groups and users of SME and to display all users, groups, ibays set in the collaboration panel of server-manager. | | The purpose of this tool is to verify correct GID and UID of essential groups and users of SME and to display all users, groups, ibays set in the collaboration panel of server-manager. |
| + | ====logcheck==== |
| + | Include a way to check log files for possible errors. The main use would be for the development team to check if new packages introduce new errors, such as uninitialised variables. |
| + | logcheck [days] [location] |
| + | |
| + | * days lets you specify if only recent logs are checked based on mtime |
| + | * location lets you specify where the log should go if not specified then it uses /tmp |
| + | |
| + | Without argument the default is to write to /tmp and check the last two days of logs. The output is in a file log<date>, eg log013114 |
| + | The initial strings checked for are |
| + | useless|warn|fail|error|disable|remov|unable|exit |
| + | |
| + | Examples of use |
| + | |
| + | * Check all log files modified in the last 5 days and put the results in the 'one' ibay |
| + | # /sbin/e-smith/audittools/logcheck 5 /home/e-smith/files/ibays/one/files |
| + | Log file: /home/e-smith/files/ibays/one/files/log020214 |
| + | |
| + | * Default is to write to /tmp and check the last two days of logs |
| + | # /sbin/e-smith/audittools/logcheck |
| + | Log file: /tmp/log020214 |
| + | |
| + | * Check all log files modified in the last 2 days and put the results in the current directory |
| + | # /sbin/e-smith/audittools/logcheck . |
| + | Log file: ./log020214 |
| + | |
| ====newrpms==== | | ====newrpms==== |
| This script provides you with a list of RPMs that are installed outside the default repositories. This can be used to determine what RPM packages you have installed additionally. | | This script provides you with a list of RPMs that are installed outside the default repositories. This can be used to determine what RPM packages you have installed additionally. |
Line 51: |
Line 72: |
| When errors are found, a db command is recommended that changes the account type from 'pseudonym' to 'pseudonym-deleted' (preserving the details of the pseudonym but removing it from all pseudonym template expansions). | | When errors are found, a db command is recommended that changes the account type from 'pseudonym' to 'pseudonym-deleted' (preserving the details of the pseudonym but removing it from all pseudonym template expansions). |
| | | |
− | This command has no output if no errors are identified. | + | '''This command has no output if no errors are identified.''' |
| | | |
| ====repositories==== | | ====repositories==== |
Line 59: |
Line 80: |
| This tool will generate a list of template fragments that are not part of the basic SME Server installation, it will also tell you if the template fragments overrides a default template or if it is an addition.<br /> | | This tool will generate a list of template fragments that are not part of the basic SME Server installation, it will also tell you if the template fragments overrides a default template or if it is an addition.<br /> |
| | | |
− | This command has no output if no errors are identified | + | '''This command has no output if no errors are identified''' |
| | | |
| ====templates2expand==== | | ====templates2expand==== |
Line 65: |
Line 86: |
| | | |
| ====users2domains==== | | ====users2domains==== |
− | {| style="color:red;background-color:#ffffcc;"
| + | |
− | |
| + | This tools will display the number of emails received by the server, sorted by users, groups, or mailing-list |
− | [Need description]
| |
− | |}
| |
− | This tools will display the number of emails received by the server, printed by users, groups, or mailing-list | |
| | | |
| ====virtualdomains2pseudonyms==== | | ====virtualdomains2pseudonyms==== |
− | {| style="color:red;background-color:#ffffcc;"
| + | |
− | |
| |
− | [Need description]
| |
− | |}
| |
| This tools will check if email addresses in the qmail alias file "/var/qmail/control/virtualdomains", have a correct record in account database.<br /> | | This tools will check if email addresses in the qmail alias file "/var/qmail/control/virtualdomains", have a correct record in account database.<br /> |
| | | |
− | If not The script display DB commands to set correct records. This command has no output if no errors are identified. | + | If not the script display DB commands to set correct records. <br /> |
| + | '''This command has no output if no errors are identified.''' |
| | | |
| ===Usage=== | | ===Usage=== |
Line 89: |
Line 105: |
| and so on... | | and so on... |
| | | |
| + | Below is a list of available audittools. |
| + | # ls /sbin/e-smith/audittools/ |
| + | aliases |
| + | events |
| + | groups-users |
| + | newrpms |
| + | pseudonyms |
| + | repositories |
| + | templates |
| + | templates2expand |
| + | users2domains |
| + | virtualdomains2pseudonyms |
| If you are using Putty, you can copy the contents of the screen into the clipboard. | | If you are using Putty, you can copy the contents of the screen into the clipboard. |
| | | |
Line 95: |
Line 123: |
| where /path/filename is the path & filename (on your sme server) of where you want to save the report | | where /path/filename is the path & filename (on your sme server) of where you want to save the report |
| [[category:howto]] | | [[category:howto]] |
| + | [[Category: Administration]] |