3 Üè`Lã@s8ddlZddlZGdd„dejƒZedkr4eƒjƒdS)éNc@seZdZdZdd„ZdS)ÚPluginz apt-updatescCs4i}ttjdƒjƒƒ|d<ttjdƒjƒƒ|d<|S)a] ubuntu/debian updates available from apt-get add to /etc/sudoers the following line: nixstats ALL=(ALL) NOPASSWD: /usr/bin/apt-get test by running: sudo -u nixstats nixstatsagent test apt-updates Add to /etc/nixstats.ini: [apt-updates] enabled = yes interval = 3600 z>sudo -n apt-get upgrade -s | grep Inst | grep security | wc -lZsecurityzAsudo -n apt-get upgrade -s | grep Inst | grep -v security | wc -lÚother)ÚintÚosÚpopenÚread)ÚselfÚconfigÚdata©r úK/usr/local/lib/python3.6/site-packages/nixstatsagent/plugins/apt-updates.pyÚrun sz Plugin.runN)Ú__name__Ú __module__Ú __qualname__r r r r r rsrÚ__main__)rZpluginsZ BasePluginrrÚexecuter r r r Ús