Customer Self-Service Portal

Server Agent is broken on FreeBSD 12

Hi,

 

I was excited to use Site24x7 for monitoring instead of the competition as it claims to support FreeBSD, which sadly is not quite the case. There are a number of issues with the agent on FreeBSD 12 (which has been out since 2018). Below is a list of issues I encountered, they should all be easy to fix. 

FreeBSD 12.1-STABLE r354923 GENERIC amd64
Python 3.6.9

 

1) I guess this is more of a python problem, but pycrypt does not compile, GMP is installed, adding the following CFLAGS fixes the issue export "CFLAGS=-I/usr/local/include -L/usr/local/lib" , all of the required python modules install just fine from the ports, perhaps the agent should use those instead.

building 'Crypto.PublicKey._fastmath' extension
creating build/temp.freebsd-12.1-STABLE-amd64-3.6
creating build/temp.freebsd-12.1-STABLE-amd64-3.6/src
cc -Wno-unused-result -Wsign-compare -Wunreachable-code -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/usr/local/include/python3.6m -c src/_fastmath.c -o build/temp.freebsd-12.1-STABLE-amd64-3.6/src/_fastmath.o
src/_fastmath.c:36:11: fatal error: 'gmp.h' file not found
# include <gmp.h>
^~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/site24x7/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gdqaliw8/pycrypto/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gdqaliw8/pycrypto/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-4t3dejon/install-record.txt --single-version-externally-managed --compile --install-headers /opt/site24x7/venv/include/site/python3.6/pycrypto Check the logs for full command output.

 

2) The agent runs as root, install script assumes a user has been magically created for it.

chown: site24x7-agent: illegal user name

PRODUCT_NAME='Site24x7'
PRODUCT_NAME_UPPERCASE='SITE24X7'
PRODUCT_NAME_LOWERCASE='site24x7'
MON_AGENT_NAME='monagent'
MON_AGENT_GROUP=$PRODUCT_NAME_LOWERCASE'-group'
MON_AGENT_USER=$PRODUCT_NAME_LOWERCASE'-agent'

3) Missing and inaccurate stats.

The CPU usage is always reported at 50%, even though the server is idle. Yet the per core report is correct.

Processes do not display, yet when you click on tools you can see them there.

Various stats are missing, such as context switches and interrupts.

 

Thanks.