• We would like to invite you to check out the latest 1.0 alpha versions. You can read more about what's new here. Please note, that this is still an early release and will contain new bugs ¯\_(ツ)_/¯
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

EN diagSinusbot.sh - Sinusbot diagnostic script

Patschi

Head of troll department / Xuxe dominator
V.I.P.
is awesome!
is uber awesome!
Contributor
Insider
Tier III
I introduce:

diagSinusbot.sh - Sinusbot diagnostic script


What is it?

diagSinusbot.sh collects some important diagnostic data about the operating system and the bot installation. When finished it returns informative information, ready to copy and paste it in the support section in the sinusbot forum. The main purpose of this script is to solve bugs and any other issues easier and faster with more details about the situation - easily collected with this script.

Remember: This script does not send any data to anywhere. It is only collecting some details offline about the system and the bot. Then it generates a text output, which can be copied and pasted in the forum. This tool is not officially developed from the Sinusbot team.

Development
The development is ongoing on GitHub here, publicly viewable for everyone. Everyone is free to contribute to the repository.

Some information which may be scanned:
  • System
    • Operating system
    • Kernel
    • Load average
    • Uptime
    • CPU model, cores and speed
    • RAM usage
    • SWAP usage
    • DISK usage
    • Bot autostart script checks
  • Bot
    • Status of bot and webinterface
    • Version
    • Performs ts3client checks
    • Some configuration pre-checks
    • Checks if bot plugin is installed to ts3client
    • Checks LogLevel
    • Checks youtube-dl and installed version
    • Installed bot scripts (filenames only)
    • Checks if all required OS packages got installed
Requirements (Important! Otherwise it won't work!)
  • Operating Systems: Debian, Ubuntu
  • Required installed packages: bc binutils coreutils lsb-release util-linux
    • Install: apt-get install bc binutils coreutils lsb-release util-linux
    • (Most packages are already pre-installed by default on the most systems.)
Usage
Code:
$ cd /path/to/sinusbot/ # usually /opt/ts3bot/
$ curl -O https://raw.githubusercontent.com/patschi/sinusbot-tools/master/tools/diagSinusbot.sh
$ bash diagSinusbot.sh
Example output:
Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Debian GNU/Linux 8.1 (jessie)
- OS x64 check: OK
- Kernel: Linux 3.16.0-4-amd64 x86_64
- Load Average: 0.24 0.32 0.32
- Uptime: 58 days, 23 hours, 44 minutes, 32 seconds
- OS Updates: 0 (well done!)
- OS Missing Packages: None (v1)
- OS APT Last Update: 23.08.2015 00:41:12 CEST +02:00:00
- Bot Start Script: found at /etc/init.d/sinusbot [perms: 0644]
- DNS resolution check: google.com -> OK
- CPU:
Architecture: x86_64
CPU(s): 2
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 2
Model name: Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
CPU MHz: 3499.999
Hypervisor vendor: VMware
Virtualization type: full
- RAM: 449.76 MB/1000.32 MB in use (44%)
- SWAP: 0 B/871.99 MB in use (0%)
- DISK: 2.01 GB/15.73 GB in use (12%)
- Report date: 26.11.2015 21:13:47 CET +01:00:00 (timezone: Europe/Berlin)

BOT INFORMATION
- Status: running (PIDs: 23012 23011, User: sinusbot)
- Webinterface: port locally reachable (Port: 8087)
- Binary: /home/sinusbot/sinusbot/sinusbot (Hash: dfaa2dae26ee80b782b8b4b6cbf9fa5e)
- Version: 0.9.9-4965f0f
- TS3 Plugin: installed (md5 hash match)
- Bot Plugin: 4f888043455d865231047616da069ed8
- TS3 Client: 4f888043455d865231047616da069ed8
- Config:
- LogLevel = 4
- TS3Path = /home/sinusbot/ts3/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.18.2)
- YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2015.08.16.1)
- Installed Scripts: advertising.js; aloneMode.js; badchan.js; bookmark.js; covatar.js; dev.js; followme.js; idle.js; metadata.js; norecording.js; showcase.js; welcometext.js
==========================================================
Notice: Because this script does also collect information like CPU, RAM, SWAP, DISK usage and more, this script needs to be executed with root privileges. The script is not installing any dependencies of the script or bot without asking.

Questions? Problems?
Tell me! Feel free to use the forum or the issues functionality on GitHub.

Notes
Only for german users: Für eine deutsche Übersetzung, bitte hier entlang.
 
Last edited:

Idler

Member
Brilliant! Works perfectly.

Code:
SINUSBOT RELATED
SYSTEM INFORMATION
 - Operating System: Debian GNU/Linux 7.9 (wheezy)
 - OS x64 check: OK
 - Kernel: Linux 3.2.0-4-amd64 x86_64
 - Load Average: 0.83 0.73 0.53
 - Uptime: 28 days, 19 hours, 34 minutes, 37 seconds
 - OS Updates: 0 (well done!)
 - OS Missing Packages: None (v1)
 - OS APT Last Update: 25.11.2015 16:47:38 GMT +00:00:00
 - Bot Start Script: found at /etc/init.d/sinusbot [perms: 0755]
 - DNS resolution check: google.com -> OK
 - CPU:
    Architecture:          x86_64
    CPU(s):                4
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             4
    CPU MHz:               2599.998
    Hypervisor vendor:     KVM
    Virtualization type:   full
 - RAM: 229.31 MB/496.67 MB in use (46%)
 - SWAP: 105.14 MB/1023.99 MB in use (10%)
 - DISK: 5.42 GB/17.01 GB in use (31%)
 - Report date: 21.12.2015 14:36:28 GMT +00:00:00 (timezone: Europe/London)

BOT INFORMATION
 - Status: running (PIDs: 20769 20768, User: root)
 - Webinterface: port locally not reachable (Port: 8087)
 - Binary: /opt/ts3bot/sinusbot (Hash: 634662b72e5a6efc5ab92967bc8f3ace)
 - Version: 0.9.9-8f70ff3
 - TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: 28511bf58fe820d911609f7252594400
   - TS3 Client: 28511bf58fe820d911609f7252594400
 - Config:
   - LogLevel = 10 (debug log active)
   - TS3Path = /opt/ts3bot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.18.2)
   - YoutubeDLPath = /usr/local/bin/youtube-dl (does exist, version: 2015.12.18)
 - Installed Scripts: advertising.js; aloneMode.js; badchan.js; bookmark.js; come.js; covatar.js; dev.js; dice.js; digitalclock.js; followme.js; help.js; idle.js; metadata.js; nexttrack.js; norecording.js; pause.js; rememberChannel.js; showcase.js; welcometext.js
 

Patschi

Head of troll department / Xuxe dominator
V.I.P.
is awesome!
is uber awesome!
Contributor
Insider
Tier III
I have currently no plans implementing CentOS support in the near future. It might be possible, probably also without much a lot of work. However I'm actually not having enough time to get familiar with CentOS and test its implementation into depth. Sorry!
 

Alfredo Lima Verde

Helping Hand
I have currently no plans implementing CentOS support in the near future. It might be possible, probably also without much a lot of work. However I'm actually not having enough time to get familiar with CentOS and test its implementation into depth. Sorry!
Centos is trash, using now Debian 9 <3
 

Similar threads

Top