Go to All Forums

I want the Monitoring Agent to work with Termux

I want the Monitoring Agent to work with Termux.
about termux. -> termux.com

 -> Site24x7MonitoringAgent.install

Is there a manual installation documentation?

 

 
Like (3) Reply
Replies (5)

Re: I want the Monitoring Agent to work with Termux

Hi,

Please follow the steps given in this article to install the Site24x7 Server Monitoring agent.

Let us know for queries, if any, in the below thread.

 

Regards,

Mathangi 

Like (0) Reply

Re: Re: I want the Monitoring Agent to work with Termux

Hi.

 

Termux works with user privileges when viewed from android os. I want to install and run the Monitoring Agent with general user privileges. Is this possible?

 

Case1

$ bash Site24x7MonitoringAgent.install -i -key=xxx
download utility :: curl detected
/data/data/com.termux/files/usr/bin/python3.8

python detected :: python3.8

Please use 'sudo' or log in as root to run Site24x7 monitoring agent.

 

Case2

$ bash Site24x7MonitoringAgent.install -nonroot -i -key=xxx

download utility :: curl detected

/data/data/com.termux/files/usr/bin/python3.8

python detected :: python3.8

extraction utility :: tar detected

Downloading product packages

mkdir: cannot create directory ‘/data/site24x7’: Permission denied

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file /data/site24x7/site24x7agent.tar.gz: No

Warning: such file or directory

  0 6937k    0 16015    0     0  22556      0  0:05:14 --:--:--  0:05:14 22524

curl: (23) Failure writing output to destination

Site24x7MonitoringAgent.install: line 408: cd: /data/site24x7: No such file or directory

Site24x7MonitoringAgent.install: line 409: /data/site24x7/site24x7install.log: No such file or directory

Site24x7MonitoringAgent.install: line 414: /data/site24x7/site24x7install.log: No such file or directory

gzip: /data/site24x7/site24x7agent.tar.gz: No such file or directory

 

Extraction unsuccessful hence quitting!!!
Like (0) Reply

Re: Re: Re: I want the Monitoring Agent to work with Termux

Hi,

 I want to install and run the Monitoring Agent with general user privileges. Is this possible?

For the above requirement, case 2 will be a perfect fit as the agent will be running as non-root user (or the user who runs the installation script).

But, in Case 2, we see an error in the execution of the installation script:

mkdir: cannot create directory ‘/data/site24x7’: Permission denied

Please confirm if the user running the installation script has the permission to create the above directory. This can be checked by executing the following command and see if its causing any error(s):

mkdir -p /data/site24x7 

Let us know the result and for further queries, if any.

 

Regards,
Sriram

Like (0) Reply

Re: Re: Re: Re: I want the Monitoring Agent to work with Termux

Hi

 

I challenged with rooted android. However, I get an error even if I change the permissions as follows. Question: The installation directory / data / site24x7 / Is it possible to change to any directory (for example, home) from?

 

--- Pixel3 Android11(pixel3 factory stock rom) rooted ---

$ mkdir tmp;cd tmp

$ wget staticdownloads.site24x7.com/server/Site24x7InstallScript.sh

 add PATH

 PATH=$PATH:/data/data/com.termux/files/home/bin:/data/data/com.termux/files/usr/bin/

 

$ sudo mkdir -p /data/site24x7

$ whoami

u0_a218

$ sudo chown -fR u0_a218.u0_a218 /data/site24x7

 

$ sudo chmod 777 /data/site24x7

$ ls -ld /data/site24x7

drwxrwxrwx 2 u0_a218 u0_a218 3488 Oct 15 04:25 /data/site24x7

 

$ bash Site24x7InstallScript.sh -nonroot -i -key=xxx

 

curl detected

Site24x7InstallScript.sh: line 100: /usr/bin/getconf: No such file or directory

Site24x7InstallScript.sh: line 100: [: =: unary operator expected

Site24x7InstallScript.sh: line 102: /usr/bin/getconf: No such file or directory

Site24x7InstallScript.sh: line 102: [: =: unary operator expected

/data/data/com.termux/files/usr/bin/bash

detected os is linux

Detected OS : Linux

Detected os arch : aarch64

Hybrid agent support needed

Download url : staticdownloads.site24x7.com/server/Site24x7MonitoringAgent.install

 

      -----------------------------------------------------------------------------------------------------------------------------------------------------

      |   |

      |       Site24x7 Server Monitoring Agent Installation         |

      |   |

      -----------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

      --------------------------------------------------------Downloading install file for Site24x7MonitoringAgent.install----------------------------------------------------------

 

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100 42128  100 42128    0     0  46913      0 --:--:-- --:--:-- --:--:-- 46913

download utility :: curl detected

/data/data/com.termux/files/usr/bin/python3.8

python detected :: python3.8

extraction utility :: tar detected

Downloading product packages

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file /data/site24x7/site24x7agent.tar.gz:

Warning: Permission denied

  0 6937k    0 16015    0     0  28047      0  0:04:13 --:--:--  0:04:13 28047

curl: (23) Failure writing output to destination

Site24x7MonitoringAgent.install: line 409: /data/site24x7/site24x7install.log: Permission denied

Site24x7MonitoringAgent.install: line 414: /data/site24x7/site24x7install.log: Permission denied

gzip: /data/site24x7/site24x7agent.tar.gz: Permission denied

 

Extraction unsuccessful hence quitting!!!

 

 

Have more servers? Try our bulk installation techniques. Refer link : www.site24x7.com/app/client#/admin/inventory/monitors-configure/SERVER/bulk

 

$

 

Like (0) Reply

Re: Re: Re: Re: Re: I want the Monitoring Agent to work with Termux

Hi,

The non-root agent will be installed in the user home directory. I think you have created the Site24x7 directory in tmp folder.

Kindly try the same in the user home directory and re-run the agent installation command.

 

Regards,

Sriram

Like (0) Reply

Was this post helpful?