Monisys is a Python3 package built on top of osquery
that allows users to monitor and retrieve comprehensive information about their operating system. This package can be used as a module to develop custom monitoring dashboards, or you can utilize the built-in dashboard (currently under development).
To install Monisys, run the following command with superuser privileges:
sudo pip install monisys
After installing, you can access the help message to explore the available commands and options:
monisys -h
# or
monisys --help
Monisys provides various CLI commands to retrieve specific system information:
Display CPU Information
sudo monisys -ci
# or
sudo monisys --cpu-info
monisys -ud
# or
monisys --display-usbdevices
Monisys can also be used programmatically to fetch system data. Here’s an example of how to retrieve CPU information:
import time
from monisys.Managers.Systeminfo import SystemInfo
system_info = SystemInfo('cpu_info')
cpuinfos = system_info.get_all_data()
print(cpuinfos)