MyChat Integration API: MCIAPI_CS_GetServerInfo, Help information about the server
Receive a brief information about working server.
You can use it for checking MyChat Server working capacity using a program for monitoring such as Zabbix.
Syntax
{
"cmd" : "000E",
"ServerKey" : "iddqd",
"APIStype" : "Zabbix"
}
Parameters
Parameter |
Type |
Value |
cmd |
string |
"000E" is the number of the command 000E: MCIAPI_CS_GetServerInfo; |
ServerKey |
string |
IntegrationAPI key, configured in the server's settings; |
APIStype |
string |
integration type. You can set any string, for example "Zabbix". |
Work result
{
"cmd" : "000E",
"Name" : "Copper",
"AdminName" : "John Smith",
"AdminEmail" : "admin@company.com",
"AdminWWW" : "www.company.com",
"ConnectMsg" : "Hello everybody!",
"Started" : "2019.08.29 18:44:35",
"Uptime" : "0:03:02:40"
}
Field |
Type |
Value |
cmd |
string |
HEX number of a command that run successfully; |
Name |
string |
MyChat Server name; |
AdminName |
string |
a server's administrator name; |
AdminEmail |
string |
an administrator email address; |
ConnectMsg |
string |
MyChat Server greetings message for connecting users; |
Started |
string |
date/time of the server start in the format "year.month.day hours:minutes:seconds"; |
Uptime |
string |
the server's up-time in the format "days:hours:minutes:seconds". |