{"id":22064508,"url":"https://github.com/josef-friedrich/check_unattended_upgrades","last_synced_at":"2025-10-07T20:14:02.028Z","repository":{"id":31014170,"uuid":"34572641","full_name":"Josef-Friedrich/check_unattended_upgrades","owner":"Josef-Friedrich","description":"Monitoring plugin to check automatic updates (unattended-upgrades) on Debian / Ubuntu.","archived":false,"fork":false,"pushed_at":"2024-09-01T20:47:55.000Z","size":500,"stargazers_count":9,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-30T02:04:33.239Z","etag":null,"topics":["icinga","icinga-plugin","icinga2","nagios","nagios-plugin","shell","unattended-upgrades"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Josef-Friedrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2015-04-25T14:56:58.000Z","updated_at":"2024-09-01T20:47:58.000Z","dependencies_parsed_at":"2023-01-14T18:15:31.615Z","dependency_job_id":"b15ea37c-afcc-40b3-8426-9494f3e0a02b","html_url":"https://github.com/Josef-Friedrich/check_unattended_upgrades","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Josef-Friedrich/check_unattended_upgrades","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josef-Friedrich%2Fcheck_unattended_upgrades","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josef-Friedrich%2Fcheck_unattended_upgrades/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josef-Friedrich%2Fcheck_unattended_upgrades/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josef-Friedrich%2Fcheck_unattended_upgrades/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Josef-Friedrich","download_url":"https://codeload.github.com/Josef-Friedrich/check_unattended_upgrades/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josef-Friedrich%2Fcheck_unattended_upgrades/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278838465,"owners_count":26054726,"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-07T02:00:06.786Z","response_time":59,"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":["icinga","icinga-plugin","icinga2","nagios","nagios-plugin","shell","unattended-upgrades"],"created_at":"2024-11-30T19:12:16.394Z","updated_at":"2025-10-07T20:14:01.983Z","avatar_url":"https://github.com/Josef-Friedrich.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check_unattended_upgrades\n\nNote: The monitoring plugin is currently being rewritten from\nShell\n([check_unattended_upgrades](https://github.com/Josef-Friedrich/check_unattended_upgrades/blob/master/check_unattended_upgrades)) to\nPython\n([check_unattended_upgrades.py](https://github.com/Josef-Friedrich/check_unattended_upgrades/blob/master/check_unattended_upgrades.py)). Use the Shell version until further notice.\n\n## Summary / Short description\n\n\u003e Monitoring plugin to check automatic updates ([unattended-upgrades](https://github.com/mvo5/unattended-upgrades)) on Debian / Ubuntu.\n\n## Usage\n\n```\ncheck_unattended_upgrades v1.4\nCopyright (c) 2015-2019 Josef Friedrich \u003cjosef@friedrich.rocks\u003e\n\nMonitoring plugin to check automatic updates (unattended-upgrades) on Debian / Ubuntu.\n\n\nUsage: check_unattended_upgrades \u003coptions\u003e\n\nOptions:\n -A, --anacron\n\tCheck if the package 'anacron' is installed.\n -a, --autoclean\n\tCheck if the configuration 'APT::Periodic::AutocleanInterval' is set\n\tproperly.\n -c, --critical\n        Time interval since the last execution to result in a\n        critical state (time units depending on '--format').\n -D, --short-description\n\tShow a short description of this check plugin.\n -d, --download\n\tCheck if the configuration 'APT::Periodic:Download-Upgradeable-Packages'\n\tis set properly.\n -e, --enable\n\tCheck if the configuration 'APT::Periodic::Enable' is set properly.\n -f UNIT, --format UNIT\n        Defines the unit for the numbers of '--warning' and '--\n        critical', also the output of 'last-run'. Allowed values\n        are: 'seconds', 'minutes', 'hours' and 'days', default:\n        'seconds'.\n -h, --help\n\tShow this help message.\n -l, --lists\n\tCheck if the configuration 'APT::Periodic::Update-Package-Lists' is set\n\tproperly.\n -m, --mail\n\tCheck if the configuration 'Unattended-Upgrade::Mail' is set properly.\n -n, --dry-run\n\tCheck if 'unattended-upgrades --dry-run' is working. Warning: If you use\n\tthis option the performance data last_ago is always 0 or near to 0.\n -p, --repo\n\tCheck if 'Unattended-upgrades' is configured to include the specified\n\tcustom repository.\n -R, --reboot\n\tCheck if the machine needs a reboot.\n -r, --remove\n\tCheck if the configuration 'Unattended-Upgrade::Remove-Unused-\n\tDependencies' is set properly.\n -S, --security\n\tCheck if 'Unattended-upgrades' is configured to handle security updates.\n -s, --sleep\n\tCheck if the configuration 'APT::Periodic::RandomSleep' is set properly.\n -t, --systemd-timers\n\tCheck if the appropriate Systemd timers are enabled ( apt-daily-upgrade.timer, apt-daily.timer ).\n -u, --unattended\n\tCheck if the configuration 'APT::Periodic::Unattended-Upgrade' is set\n\tproperly.\n -v, --version\n\tShow the version number.\n -w, --warning\n        Time interval since the last execution to result in a\n        warning state (time units depending on '--format').\n\nPerformance data:\n  - last_ago\n\t  Time interval in seconds for last unattended-upgrades execution.\n  - warning\n\t  Interval in seconds.\n  - critical\n\t  Interval in seconds.\n\nAbout file system permissions:\n\tThe user which executes this plugin must have read permissions to this\n\tlog file:\n\n\t\t/var/log/unattended-upgrades/unattended-upgrades.log\n\n\tTo allow every user on your system to read the mentioned log file this\n\tpermissions are recommended:\n\n\t\t751 (drwxr-x--x) /var/log/unattended-upgrades\n\t\t644 (-rw-r--r--) /var/log/unattended-upgrades/unattended-upgrades.log\n\n```\n\n## Project pages\n\n* https://github.com/Josef-Friedrich/check_unattended_upgrades\n* https://exchange.icinga.com/joseffriedrich/check_unattended_upgrades\n* https://exchange.nagios.org/directory/Plugins/Software/check_unattended_upgrades/details\n\n## Testing\n\n```\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosef-friedrich%2Fcheck_unattended_upgrades","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosef-friedrich%2Fcheck_unattended_upgrades","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosef-friedrich%2Fcheck_unattended_upgrades/lists"}