Add script(s) for generating diagnostics
Plan:
- list commands to perform
- integrate into nuci https://gitlab.labs.nic.cz/turris/nuci/issues/4
- integrate into foris https://gitlab.labs.nic.cz/turris/foris/issues/11
- make sure that the package will be available in the basic system https://gitlab.labs.nic.cz/turris/turris-os-packages/issues/9
Commands:
- get content of
/var/log/messages{,.1,.2.gz}
- md5 + sizes of
/etc/ssl/
- check whether the hashes are generated
c_rehash /etc/ssl/certs/
- output of
updater.sh -n
- output of
nikola.sh
- output of
iptables-save
+/etc/config/firewall
- output of
opkg list-installed
- test whether dns and dnssec works, check
/etc/unbound/root.key
- test bind wild-card domain issue
atsha204 serial-number
df
ip a
ip r
ip 6 r
- ?
dmesg
? uptime
uname -a
- broken cron - installed, running, list files
Notes: It probably needs to work asynchronously from foris. Some cmds took a long time. Might be beneficial to store the out of nikola/updater last run somewhere in tmp.