Xitogent debug | Xitoring Document

Xitogent debug

Xitogent debug CLI command is implemented to be helpful if you had any problem with running Xitogent on your server.

Purpose

This command is used to generate debug information about the Xitogent service. It checks the service status and config file data and also checks if the process is running. The command also attaches the last lines of the log file. The main purpose of this command is for clients to run it and send the output to the Xitogent support team for assistance in solving problems.

Output

The command will display the following information:

  • The status of the Xitogent service as reported by systemctl
  • The last lines of the xitogent.log file
  • The content of the xitogent.conf configuration file Verification of the UID and password, connection to the node, and test sequence.
  • The permissions of the Xitogent binary file
  • The process list containing the Xitogent daemon and the command process

Example:

xitogent debug
1

Below is an example of the output:

systemctl:
2021/01/25 13:05:22 ● xitogent.service - Xitogent Service
   Loaded: loaded (/etc/systemd/system/xitogent.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2021-01-25 13:02:51 UTC; 2min 30s ago
  Process: 22186 ExecStart=/usr/bin/xitogent start --daemon (code=exited, status=0/SUCCESS)
 Main PID: 22192 (xitogent)
    Tasks: 11
   Memory: 9.0M
   CGroup: /system.slice/xitogent.service
           └─22192 xitogent: daemon logRotationPeriod:0

Jan 25 13:02:51 dev-core systemd[1]: Starting Xitogent Service...
Jan 25 13:02:51 dev-core systemd[1]: Started Xitogent Service.
 
--------------------------------------------
xitogent.log:
2021/01/25 13:02:51 - - - - - - - - - - - - - - - 
2021/01/25 13:02:51 daemon started 22192 
Log rotation 24 period = hours
2021/01/25 13:02:51 +  1674651771 
2021/01/25 13:02:57 HTTP status:200 - Server data sent 
2021/01/25 13:04:02 HTTP status:200 - Server data sent 
2021/01/25 13:05:08 HTTP status:200 - Server data sent 
--------------------------------------------
xitogent.conf:
uid=xxxbfexxx0cf3b3dxxx955c41x9c34xx
password=zxxz30573a3exxx
node_url=https://lax01.xitoring.com/xitogent/v2/
log_file=/var/log/xitogent.log
--------------------------------------------
Result of Verifying uid and password, connection to node, and test sequence
2021/01/25 13:05:28 HTTP status:200 - Server data sent 
--------------------------------------------
xitogent permission:
2021/01/25 13:05:28 Result: -rwxr-xr-x 1 root root 8591600 Jan 25 13:02 /usr/bin/xitogent
 
--------------------------------------------
process:
2021/01/25 13:05:28 Result: root     22192  2.9  0.1 1259196 12588 ?       Ssl  13:02   0:04 xitogent: daemon logRotationPeriod:0
root     22884 25.5  0.1 1119928 12228 pts/6   Sl+  13:05   0:01 xitogent debug
root     22958  0.0  0.0 112812   932 pts/6    S+   13:05   0:00 grep xitogent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

Troubleshooting

If you encounter any issues while using the Xitogent service, please run the xitogent debug command and send the output to the Xitogent support team through our ticket system. The output will provide important information that will assist our team in identifying and resolving the problem.

Please include the output, the description of the problem, and the steps you have taken to reproduce the issue.

Please be aware that the output contains sensitive data that should not be shared with unauthorized persons.

By providing this information, you will help us to solve your problem more quickly and efficiently. If you have any questions, please don't hesitate to (contact us).

Last Updated: 4/12/2023, 9:34:28 PM