• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • 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
Tier III
is awesome!
V.I.P.
is uber awesome!
Insider
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
 

Idler

Member
One thing I would ask is that it would be nice if the [CODE.] tags were already there, for ease.
 

Patschi

Head of troll department / Xuxe dominator
Tier III
is awesome!
V.I.P.
is uber awesome!
Insider
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
 

Kenionek

Member
Sinusbot is crashing after I save script setting and the script aren't working

here is the code

Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
 - Operating System: Ubuntu 16.04.6 LTS
 - Kernel: Linux 4.4.0-145-generic x86_64
 - Load Average: 0.26 0.41 0.59
 - Uptime: 8 days, 21 hours, 54 minutes, 25 seconds
 - OS x64 check: OK
 - OS Updates: 12 (updates available!)
 - OS Missing Packages: None
 - OS APT Last Update: 18.04.2019 11:26:38 CEST +02:00:00
 - SHELL LOCALE LANG: en_US.UTF-8
 - Bot Start Script: not found
 - DNS resolution check: www.sinusbot.com resolved to 104.28.15.74 -> OK
 - HTTPS check with IPv4 mode: SUCCESS [Connection was established to www.sinusbot.com, CODE #200]
 - HTTPS check with IPv6 mode: IGNORE
 - CPU:
    Architecture:          x86_64
    CPU(s):                2
    Thread(s) per core:    1
    Core(s) per socket:    2
    Socket(s):             1
    Model name:            Common KVM processor
    CPU MHz:               4008.000
    Hypervisor vendor:     KVM
    Virtualization type:   full
 - RAM: 1.74 GB/3.85 GB in use (45%)
 - SWAP: 0 B/0 B in use (0%) (SWAP disabled)
 - DISK: 23.53 GB/24.17 GB in use (97%)
 - Package versions:
   + libglib: 2.48.2-0ubuntu4.1

BOT INFORMATION
 - Status: running (PIDs: 19535 19533, User: sinusbot)
 - Webinterface: port locally reachable (Port: 8087)
 - Binary: /opt/sinusbot/sinusbot
 - Binary Info: MD5 Hash: 6f301dac3e4dfd45ce149933c5dadd08, Perms: 755, User: sinusbot
 - Version: 1.0.0-beta.1-06a54d7
 - TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: 59c9a688307aa73af9573029a7625fc5
   - TS3 Client: 59c9a688307aa73af9573029a7625fc5
 - Config:
   - LogLevel = 3
   - TS3Path = /opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.2.3)
   - YoutubeDLPath = not set
 - Installed scripts: adminStaffStatus1.0.0.js; advancedclientinfo.js; advertising.js; AFK_Mover_(AwayMuteDeafIdle).js; alonemode.js; aloneMode.js; Animated Nickname.js; Animated_Nickname.js; AntiProxy.js; avatarbanner.js; Away Mover.js; badchan.js; bookmark.js; Channel_Servergroup_Assigner.js; cleverbot.js; command.js; CountryManager.js; covatar.js; coverloader.js; dev.js; Digital Clock.js; Digital_Clock.js; followme.js; Jail.js; metadata.js; Music info in multiply channels.js; norecording.js; Online Users Record.js; Random_Kick.js; RankCSGO.js; rememberChannel.js; ServerGroupTimer.js; Server_Join_Alert.js; showcase.js; sound.js; Steam Server Information.js; SteamServerInformation.js; TS3RankingENG.js; twitch_chat.js; TwitchHitbox Status.js; twitch_status.js; Twitch_Status.js; twitter.js; Vote Kick.js; welcome.js; WelcomeMessage.js; WelcomeSound.js; welcometext.js; xfn.js; youtube.js

TIME INFORMATION
 - Time (local): 18.04.2019 21:13:01 CEST +02:00:00
 - Time (remote): 18.04.2019 21:13:01 CEST +02:00:00
 - Time (difference): 0 secs (Time diff less than 2 secs. Good.)
 - Timezone: Europe/Brussels

OTHER INFORMATION
 - TeamSpeak 3 Version: 3.2.3
 - youtube-dl Version: unknown
 - DiagScript Version: 0.7.1
==========================================================
 

Himsel

Donor
is awesome!
Contributor
@Kenionek i guess your post does not belong here. If the issue only occurs by using a specific script then please try to explain it there, if not open another thread. Please with some more Information.

Btw that are a lot of scripts! Some duplicates as well
 
Last edited:

Kenionek

Member
@Kenionek i guess your post does not belong here. If the issue only occurs by using a specific script then please try to explain it there, if not open another thread. Please with some more Information.
It happens with all the scripts and sinusbot shuts down and I need it to restart it via ssh, in which thread do I need to ask it?
 

Similar threads

Top