{"id":19151376,"url":"https://github.com/man-od/simplemonitoring","last_synced_at":"2026-05-09T05:07:39.505Z","repository":{"id":178649171,"uuid":"662175922","full_name":"man-od/SimpleMonitoring","owner":"man-od","description":"Linux basic bash scripting and system research","archived":false,"fork":false,"pushed_at":"2023-07-04T14:29:01.000Z","size":1491,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T19:27:36.820Z","etag":null,"topics":["bash","bash-script","linux","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/man-od.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-04T14:13:45.000Z","updated_at":"2023-07-04T14:32:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f9b4f25-c7a2-41c0-9599-bc984b8d37e0","html_url":"https://github.com/man-od/SimpleMonitoring","commit_stats":null,"previous_names":["urldastan/simplemonitoring","man-od/simplemonitoring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/man-od/SimpleMonitoring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/man-od%2FSimpleMonitoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/man-od%2FSimpleMonitoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/man-od%2FSimpleMonitoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/man-od%2FSimpleMonitoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/man-od","download_url":"https://codeload.github.com/man-od/SimpleMonitoring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/man-od%2FSimpleMonitoring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909714,"owners_count":26066887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","linux","shell"],"created_at":"2024-11-09T08:14:35.120Z","updated_at":"2025-10-08T07:37:39.950Z","avatar_url":"https://github.com/man-od.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleMonitoring\nLinux basic bash scripting and system research\n\n![linux_monitoring_v1](misc/images/linux_monitoring_v1.png)\n\n## Part 1. First effort\nThe script is run with one parameter. It is a text parameter.  \nThe script outputs the value of the parameter.  \nIf the parameter is a number, the script must output an invalid input message.\n\n## Part 2. System research\nThis script is run without parameters\n\n```\n**HOSTNAME** = _network name_  \n**TIMEZONE** = _time zone as: **America/New_York UTC -5** (time zone must be taken from the system and be correct for the current location)_  \n**USER** = _current user who ran the script_  \n**OS** = _type and version of operating system_  \n**DATE** = _current time as: **12 May 2020 12:24:36**_  \n**UPTIME** = _system uptime_  \n**UPTIME_SEC** = _system uptime in seconds_  \n**IP** = _ip address of the machine on any of the network interfaces  \n**MASK** = _network mask of any of the network interfaces as: **xxx.xxx.xxx.xxx**_.  \n**GATEWAY** = _default gateway ip_  \n**RAM_TOTAL** = _main memory size in GB with an accuracy of three decimal places as: **3.125 GB**_  \n**RAM_USED** = _used memory size in GB with an accuracy of three decimal places_  \n**RAM_FREE** = _free memory size in GB, with an accuracy of three decimal places_  \n**SPACE_ROOT** = _root partition size in MB, with an accuracy of two decimal places, as **254.25 MB**_  \n**SPACE_ROOT_USED** = _size of used space of the root partition in MB, with an accuracy of two decimal places_  \n**SPACE_ROOT_FREE** = _size of free space of the root partition in MB, with an accuracy of two decimal places_\n```\n\n## Part 3. Visual output design for the system research script\nThe script is run with 4 parameters. The parameters are numeric. From 1 to 6, for example:  \n`script03.sh 1 3 4 5`\n\nColour designations: (1 - white, 2 - red, 3 - green, 4 - blue, 5 - purple, 6 - black)\n\n## Part 4. Configuring visual output design for the system research script\nUse the script from **Part 3** The colour designations are similar. The script runs without parameters. The parameters are set in the configuration file before the script is running.\n\nThis is how the configuration file must look like:\n```\ncolumn1_background=2\ncolumn1_font_color=4\ncolumn2_background=5\ncolumn2_font_color=1\n```\n\nIf one or more parameters are not set in the configuration file, the colour must be substituted from the default colour scheme. (Choice is at the developer's discretion).\n\n## Part 5. File system research\nThe script is run with a single parameter.  \nThe parameter is an absolute or relative path to a directory. The parameter must end with `'/'`, for example:  \n`script05.sh /var/log/`\n\nThe script must output the following information about the directory specified in the parameter:\n- Total number of folders, including subfolders\n- Top 5 folders with largest size in descending order (path and size)\n- Total number of files\n- Number of configuration files (with .conf extension), text files, executable files, log files (files with .log extension), archives, symbolic links\n- Top 10 files with largest size in descending order (path, size and type)\n- Top 10 executable files with largest size in descending order (path, size and hash)\n- Execution time of the script\n\n```\nTotal number of folders (including all nested ones) = 6  \nTOP 5 folders of maximum size arranged in descending order (path and size):  \n1 - /var/log/one/, 100 GB  \n2 - /var/log/two/, 100 MB  \netc up to 5\nTotal number of files = 30\nNumber of:  \nConfiguration files (with the .conf extension) = 1 \nText files = 10  \nExecutable files = 5\nLog files (with the extension .log) = 2  \nArchive files = 3  \nSymbolic links = 4  \nTOP 10 files of maximum size arranged in descending order (path, size and type):  \n1 - /var/log/one/one.exe, 10 GB, exe  \n2 - /var/log/two/two.log, 10 MB, log  \netc up to 10  \nTOP 10 executable files of the maximum size arranged in descending order (path, size and MD5 hash of file)  \n1 - /var/log/one/one.exe, 10 GB, 3abb17b66815bc7946cefe727737d295  \n2 - /var/log/two/two.exe, 9 MB, 53c8fdfcbb60cf8e1a1ee90601cc8fe2  \netc up to 10  \nScript execution time (in seconds) = 1.5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fman-od%2Fsimplemonitoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fman-od%2Fsimplemonitoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fman-od%2Fsimplemonitoring/lists"}