{"id":20028694,"url":"https://github.com/phase2/server-watch","last_synced_at":"2026-05-11T08:03:17.625Z","repository":{"id":1225376,"uuid":"1153443","full_name":"phase2/server-watch","owner":"phase2","description":"Script to monitor server side variables for logging while testing, etc.","archived":false,"fork":false,"pushed_at":"2010-12-09T17:15:18.000Z","size":314,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-01-12T17:34:58.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/phase2.png","metadata":{"files":{"readme":"README.markdown","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":"2010-12-09T15:19:06.000Z","updated_at":"2013-11-08T06:01:17.000Z","dependencies_parsed_at":"2022-08-16T12:40:07.869Z","dependency_job_id":null,"html_url":"https://github.com/phase2/server-watch","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/phase2%2Fserver-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fserver-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fserver-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fserver-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/server-watch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241460048,"owners_count":19966518,"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-11-13T09:16:03.390Z","updated_at":"2026-05-11T08:03:12.581Z","avatar_url":"https://github.com/phase2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Server Watch\n============\n\nThis is script setup to allow for easy logging of various server level statistics that\nis useful when doing system profiling and load testing.\n\nUsage\n-----\n\nThis is a simple Python script that can be run via \n\n    ./server-watch.py\n    \nThis logs the desired values to stdout. Those can be redirected to a file as:\n\n    ./server-watch.py \u003e /tmp/server-data.log\n    \nThere are a few command line options to customize the behavior\n\n* -c, --config _config file_\n\n    \u003e Specifies which config file to use\n\n* -a, --apache\n\n    \u003e Enable apache connection monitoring\n\n* -m, --mysql\n\n    \u003e Enable mysql monitoring\n\n* -d, --delimeter _delimeter_\n\n    \u003e What string to use as a delimeter for the log file, defaults to a tab\n\n* -s, --seconds _delay_\n\n    \u003e How many seconds to delay b/w report rows, defaults to 1 second\n\n\nConfiguration File\n------------------\n\nThere are a few sections in the configuration file\n\n### Log\n\nThis controls the output columns in the log file a sample configuration looks like\n\n    [log]\n    format = 1 11 12 13\n\n* format\n\n    \u003e Format is a space delineated listing of the columns to appear in the output rows.\n\nThe following fields are available for logging:\n\n* 1: 1 minute Load\n* 2: 5 minute Load\n* 3: 15 minute Load\n* 4: %user - CPU % at user\n* 5: %nice - CPU % at user w/ nice\n* 6: %sys - CPU % at kernel\n* 7: %iowait - CPU % at kernel in iowait \n* 8: %irq - CPU % serving interrupts\n* 9: %soft - CPU % serving soft interrupts\n* 10: %steal - CPU % at involuntary wait (hypervisor)\n* 11: %idle = CPU % idle\n* 12: Physical memory used\n* 13: Physical memory free\n* 14: Swap memory used\n* 15: Swap memory free\n* 16: Memory in page cache \n* 17: Number of apache processes\n* 18: Mysql max used connections\n* 19: Mysql total created tmp disk tables \n* 20: Mysql open files\n* 21: Mysql total slow queries\n* 22: Mysql table locks waited\n* 23: Mysql threads connected\n* 24: Mysql seconds behind master\n\n### MySQL\n\nThis controls the connection info to MySQL\n\n    [mysql]\n    host = localhost\n    user = root\n    password = root\n\n* host\n\n    \u003e The host name to connect\n\n* user\n\n    \u003e The username for connecting\n\n* password\n\n    \u003e The password connecting\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fserver-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fserver-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fserver-watch/lists"}