{"id":16019584,"url":"https://github.com/iboard/system_monitor","last_synced_at":"2025-04-05T03:25:01.872Z","repository":{"id":710445,"uuid":"357154","full_name":"iboard/system_monitor","owner":"iboard","description":"Monitor your Unix-System with RAKE-tasks and through the webinteface","archived":false,"fork":false,"pushed_at":"2009-11-05T07:45:59.000Z","size":180,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T08:08:51.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ib4.iboard.cc/postings/31","language":"Ruby","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/iboard.png","metadata":{"files":{"readme":"README","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}},"created_at":"2009-11-01T18:19:22.000Z","updated_at":"2014-06-06T03:41:40.000Z","dependencies_parsed_at":"2022-08-06T10:00:38.097Z","dependency_job_id":null,"html_url":"https://github.com/iboard/system_monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iboard%2Fsystem_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iboard%2Fsystem_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iboard%2Fsystem_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iboard%2Fsystem_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iboard","download_url":"https://codeload.github.com/iboard/system_monitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247283322,"owners_count":20913552,"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","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":[],"created_at":"2024-10-08T17:04:50.752Z","updated_at":"2025-04-05T03:25:01.849Z","avatar_url":"https://github.com/iboard.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"== How SystemMonitor works\n\n# Install SystemMonitor from GitHub http://github.com/iboard or\n  Clone-URL http://git.iboard.cc/git/system_monitor/\n  \n  git clone  http://git.iboard.cc/git/system_monitor/ \n  --or--\n  git clone git://github.com/iboard/system_monitor.git\n  \n# Edit config/environment.rb and define your monitors and asserts like shown below\n# Edit config/environments/production.rb, development.rb - see sample.rb-files\n# Make sure your server can access the remote hosts through ssh with ssh-keys without password\n# Start the server with script/server and call http://yourserver:yourport/\n\n== Definitions\n\n  Edit your _environment.rb_ and add your definitions there...\n\n== SystemMonitor\n\n  remotehost, name, command, parameters\n  \n  _command_ will be executed by ssh using _remotehost_.\n  The output of this ssh-request will be displayed\n\n\n== RemoteAssert\n\n    remotehost, name, command, word, assert\n    \n    _ssh remotehost command_ will be execuded.\n    The output will be split by 'spaces' and word number \u003cem\u003eword\u003c/em\u003e will be returned as value. (first word is 0).\n    This _value_ will be used as FLOAT,INTEGER,STRING in the assert-command.\n\n\n== Examples\n\n    environment.rb:\n    \n    MY_MONITORS=[\n      SystemMonitor::SysMonitor.new('root@your.server', 'Disk usage YourServer', 'df', '-h|grep sd'),\n      SystemMonitor::SysMonitor.new('root@your.server', 'Syslod YourServer', 'uptime', ''),\n      SystemMonitor::SysMonitor.new('root@your.server', 'Mailqueue YourServer', 'mailq', '|tail -1')\n    ]\n\n    REMOTE_ASSERTS=[\n      SystemMonitor::RemoteAssert.new('root@your.server', 'Root partition usage YourServer', \n        'df|grep \"/dev/sda2\"', 4, 'INTEGER \u003c 80 \u0026\u0026 STRING != \"\"',\n        'alert@your.domain','Monitoring ALERT detected'),\n      SystemMonitor::RemoteAssert.new('root@other.server', 'Root partition usage other server', \n        'df|grep \"/dev/md2\"', 4, 'INTEGER \u003c 80 \u0026\u0026 STRING != \"\"',\n        'alert@your.domain','Monitoring ALERT detect)\n    ]\n\n    /etc/inittab:\n       M1:23:respawn:su - rails_user -c \"/path/to/system_monitor/bin/cron_system_monitor.sh -e production\"\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiboard%2Fsystem_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiboard%2Fsystem_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiboard%2Fsystem_monitor/lists"}