Merge branch '11757-revisar-y-cerrar-scripts-de-generacion-de-carga-en-pandora_server-util-load' into 'develop'

11757 adding inventory demo data script to load util

See merge request artica/pandorafms!6272
This commit is contained in:
Rafael Ameijeiras 2023-08-23 08:43:30 +00:00
commit e08c4508b7
8 changed files with 635 additions and 9 deletions

View File

@ -1,7 +1,38 @@
### Purpose of this toolkit
## Purpose of this toolkit
This directory contains configuration files and small scripts to generate an environment with simulated data for testing purposes.
### Quik start
To add monitoring data, inventory, groups and users to a pandorafms environment automatically Just execute:
```
/usr/share/pandora_server/util/load/install_load_data.sh
```
This command will creates:
- 30 Agents with inventory linux
- 30 Agents whith inventory Windows
- 300 Agents
- 44 Groups
- 34 Users
Will randonly add users to groups and move agents to groups.
Creates a cronjob to generate agent data each 5 min and inventory data once a day.
_note: make sure you have a licence with at least 300 agents or modify the /usr/share/pandora_server/util/load/pandora_xml_stress.agents to use max your licence limit agent amount before execute_
## Toolset description.
Here we describe the specific use for all the toolset the `install_load_data.sh` used automatically, to be used individualy if its needed
### Generation of inventory agents
The script will use th file pandora_xml_stress.agents take by default the first 30 listed agents and add linux inventory and the last 30 listed agents and add windows inventory.
This will generate xml data using the templates on `templates` folder.
to run it, execute
```
cd pandorafms/pandora_server/util/load
./generate_inventory_data.sh
```
### Generation of XML files to simulate agent load
There is a tool that comes configured with Pandora FMS to generate test data (pandora_xml_stress) and that generates XML. It has different options and in this directory is provided a configuration file and all the dictionaries and additional files to generate data of 300 agents, with pseudo-random names (like for example "7fb8a1a734c24cc22a5c75eb").
@ -9,18 +40,18 @@ There is a tool that comes configured with Pandora FMS to generate test data (pa
These agents are defined in the "pandora_xml_stress.agents" file. If you want less agents, you can delete elements in this file.
To execute the XML generation manually from the code repository:
```
cd pandorafms/pandora_server/util/load
perl ../pandora_xml_stress.pl pandora_xml_stress.conf
```
This will generate 300 XML in the /var/spool/pandora/data_in directory.
If you create a scheduled execution of this command every 5 minutes (e.g. through cron), keep in mind that if the PandoraFMS server stops, it could have hundreds of thousands of XML files pending to be processed.
Create /etc/cron.d/pandora_stress with this content:
```
*/5 * * * * root <putyourscripthere>
```
### Generation of groups and users
@ -31,6 +62,7 @@ On the other hand, it will also create a series of groups, taking as source the
Finally, it will take all the agents available in Pandora FMS and it will distribute them in an equal and random way among the available groups.
You should only run it once:
```
cd pandorafms/pandora_server/util/load
./create_userandgroups.sh
```

4
pandora_server/util/load/create_usersandgroups.sh Normal file → Executable file
View File

@ -35,7 +35,7 @@ done
TOTAL_GROUPS=`cat groupnames.txt | wc -l`
for username in `cat usernames.txt`
do
RAN=`echo $RANDOM % $TOTAL_GROUPS + 1 | bc`
RAN=`echo $(($RANDOM % $TOTAL_GROUPS + 1))`
GROUP_NAME=`cat groupnames.txt | tail -$RAN | head -1`
/usr/share/pandora_server/util/pandora_manage.pl /etc/pandora/pandora_server.conf --add_profile $username "Operator (Read)" $GROUP_NAME
@ -45,7 +45,7 @@ done
TOTAL_GROUPS=`cat groupnames.txt | wc -l`
for agentname in `/usr/share/pandora_server/util/pandora_manage.pl /etc/pandora/pandora_server.conf --get_agents | cut -f 2 -d ","`
do
RAN=`echo $RANDOM % $TOTAL_GROUPS + 1 | bc`
RAN=`echo $(($RANDOM % $TOTAL_GROUPS + 1))`
GROUP_NAME=`cat groupnames.txt | tail -$RAN | head -1`
/usr/share/pandora_server/util/pandora_manage.pl /etc/pandora/pandora_server.conf --update_agent $agentname group_name $GROUP_NAME
done

View File

@ -0,0 +1,66 @@
#!/bin/bash
# (c) 2023 Pandora FMS
if [ ! -e pandora_xml_stress.agents ]
then
echo "Error, cant find pandora_xml_stress.agets file"
exit
fi
linux_inventory=1
windows_inventory=1
# Variables
agent_count=30
data_in=/var/spool/pandora/data_in/
description='Demo data Agent'
group='Servers'
current_date=`date +"%Y/%m/%d %H:%M:%S"`
current_utimestamp=`date +%s`
if [ $linux_inventory -eq 1 ] ; then
if [ ! -e templates/inventory_linux.template ]; then
echo "Error, cant find inventory linux template"
exit
fi
echo "Enable linux invetory: adding invetory data to ${agent_count} linux agent"
for agent_name in $(cat pandora_xml_stress.agents | head -n ${agent_count}); do
echo " - Adding invetory data to ${agent_name} linux agent"
ip_add="10.0.0.$(( RANDOM % 255 + 1 ))"
rand_number=$(( RANDOM % 10 + 1 ))
cat "templates/inventory_linux.template" \
| sed -e "s/{{description}}/${description}/g" \
-e "s/{{group}}/${group}/g" \
-e "s/{{agent_name}}/${agent_name}/g" \
-e "s|{{date}}|${current_date}|g" \
-e "s|{{ip_address}}|${ip_add}|g" \
-e "s|{{rand_number}}|${rand_number}|g" \
> /${data_in}/${agent_name}.${current_utimestamp}.data
done
fi
if [ $windows_inventory -eq 1 ]; then
if [ ! -e templates/inventory_windows.template ]; then
echo "Error, cant find inventory Windows template"
exit
fi
echo "Enable Windows invetory: adding invetory data to ${agent_count} Windows agent"
for agent_name in $(cat pandora_xml_stress.agents | tail -n ${agent_count}); do
echo " - Adding invetory data to ${agent_name} windows agent"
ip_add="172.16.5.$(( RANDOM % 255 + 1 ))"
rand_number=$(( RANDOM % 100 + 1 ))
cat "templates/inventory_windows.template" \
| sed -e "s/{{description}}/${description}/g" \
-e "s/{{group}}/${group}/g" \
-e "s/{{agent_name}}/${agent_name}/g" \
-e "s|{{date}}|${current_date}|g" \
-e "s|{{rand_number}}|${rand_number}|g" \
-e "s|{{ip_address}}|${ip_add}|g" \
> /${data_in}/${agent_name}.${current_utimestamp}.data
done
fi

View File

@ -0,0 +1,55 @@
#!/bin/bash
# (c) 2023 Pandora FMS
# This script is used to install a set of tools to load data automatically
# by default it will creates a set of users, groups and agents
# then set a cronjob to insert fake monitoring data to agents each 5 min
# and inventory data once a day.
PREFIX=''
# Moving directory
init_dir=$(pwd)
# Get the directory where the script is located
script_dir="$(dirname "$0")"
# Change the working directory to the script's directory
cd "$script_dir" || exit 1
# Check needed file exists
echo ' [INFO] Checking file requirements:'
if [ -f $PREFIX/usr/share/pandora_server/util/pandora_xml_stress.pl ] && \
[ -f $(pwd)/pandora_xml_stress.agents ] && \
[ -f $(pwd)/pandora_xml_stress.conf ] && \
[ -f $(pwd)/create_usersandgroups.sh ] && \
[ -f $(pwd)/generate_inventory_data.sh ] && \
[ -f $(pwd)/templates/inventory_linux.template ] && \
[ -f $(pwd)/templates/inventory_windows.template] && \
[ -f $(pwd)/pandora_xml_stress_module_source.txt ]; then
echo ' [INFO] All file exist, continue'
else
echo ' [ERROR] Missing files, please check.' && exit -1
fi
# Create a set of users and grups
echo ' [INFO] Creating demo users and groups:'
$(pwd)/generate_inventory_data.sh
echo ' [INFO] Waiting for inventory agents to be created:'
while [ $(ls $PREFIX/var/spool/pandora/data_in/ | wc -l) -ge 10 ]; do
sleep 2
echo -ne .
done
# Load init monitoring data
echo ' [INFO] Creating demo agent data:'
perl $PREFIX/usr/share/pandora_server/util/pandora_xml_stress.pl $(pwd)/pandora_xml_stress.conf || echo ' [ERROR] Generating agent data cant be completed'
echo ' [INFO] Waiting for agents to be created:'
while [ $(ls $PREFIX/var/spool/pandora/data_in/ | wc -l) -ge 10 ]; do
sleep 2
echo -ne .
done
# Create a set of users and grups
echo ' [INFO] Creating demo users and groups:'
$(pwd)/create_usersandgroups.sh
# Set cronjobs in /etc/crotab
echo ' [INFO] Adding data and inventory data to cronjob'
echo "*/5 * * * * root cd $(pwd) && perl $PREFIX/usr/share/pandora_server/util/pandora_xml_stress.pl $(pwd)/pandora_xml_stress.conf " >> /etc/crontab
echo "0 0 * * * root cd $(pwd) && $(pwd)/generate_inventory_data.sh" >> /etc/crontab
# Get back init directory
cd $init_dir

View File

@ -0,0 +1,24 @@
[1692774345] Generating XML data files for 300 agents from 2023-08-23 09:05:45 to 2023-08-23 09:05:45 interval 300.
[1692774345] Total agents: 300
Total modules: 3600 (12 per agent)
Total XML: 300 (6964 per second)
[1692774481] Generating XML data files for 300 agents from 2023-08-23 09:08:01 to 2023-08-23 09:08:01 interval 300.
[1692774481] Total agents: 300
Total modules: 3600 (12 per agent)
Total XML: 300 (6996 per second)
[1692775236] Generating XML data files for 300 agents from 2023-08-23 09:20:36 to 2023-08-23 09:20:36 interval 300.
[1692775236] Total agents: 300
Total modules: 3600 (12 per agent)
Total XML: 300 (7036 per second)
[1692775282] Generating XML data files for 300 agents from 2023-08-23 09:21:22 to 2023-08-23 09:21:22 interval 300.
[1692775282] Total agents: 300
Total modules: 3600 (12 per agent)
Total XML: 300 (6935 per second)
[1692775320] Generating XML data files for 300 agents from 2023-08-23 09:22:00 to 2023-08-23 09:22:00 interval 300.
[1692775320] Total agents: 300
Total modules: 3600 (12 per agent)
Total XML: 300 (6921 per second)
[1692775629] Generating XML data files for 300 agents from 2023-08-23 09:27:09 to 2023-08-23 09:27:09 interval 300.
[1692775629] Total agents: 300
Total modules: 3600 (12 per agent)
Total XML: 300 (6927 per second)

View File

@ -0,0 +1,192 @@
<?xml version='1.0' encoding='UTF-8'?>
<agent_data description='{{description}}' group='{{group}}' os_name='linux' os_version='Rocky Linux 8.7 (Green Obsidian)' interval='300' version='' timestamp='{{date}}' agent_name='{{agent_name}}' agent_alias='' timezone_offset='0' custom_id='' url_address='' address=''>
<inventory>
<inventory_module>
<name><![CDATA[IP]]></name>
<datalist>
<data><![CDATA[eth0;{{ip_address}} ]]></data>
<data><![CDATA[lo;127.0.0.1 ]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name><![CDATA[File system]]></name>
<datalist>
<data><![CDATA[overlay;38G;919G;/]]></data>
<data><![CDATA[tmpfs;0;64M;/dev]]></data>
<data><![CDATA[tmpfs;0;16G;/sys/fs/cgroup]]></data>
<data><![CDATA[shm;0;64M;/dev/shm]]></data>
<data><![CDATA[/dev/sdc;39G;918G;/tmp/pandora_code]]></data>
<data><![CDATA[none;108K;16G;/tmp/.X11-unix]]></data>
<data><![CDATA[/dev/sde;38G;919G;/etc/hosts]]></data>
<data><![CDATA[tmpfs;0;16G;/proc/acpi]]></data>
<data><![CDATA[tmpfs;0;16G;/sys/firmware]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name><![CDATA[Process]]></name>
<datalist>
<data><![CDATA[/bin/bash /tmp/pandora_code/projects/qa_utils/run_pandora_qa/local_install_qa.sh]]></data>
<data><![CDATA[sudo -u mysql mysqld]]></data>
<data><![CDATA[mysqld]]></data>
<data><![CDATA[php-fpm: master process (/etc/php-fpm.conf)]]></data>
<data><![CDATA[php-fpm: pool www]]></data>
<data><![CDATA[php-fpm: pool www]]></data>
<data><![CDATA[php-fpm: pool www]]></data>
<data><![CDATA[php-fpm: pool www]]></data>
<data><![CDATA[php-fpm: pool www]]></data>
<data><![CDATA[httpd -k start]]></data>
<data><![CDATA[httpd -k start]]></data>
<data><![CDATA[httpd -k start]]></data>
<data><![CDATA[httpd -k start]]></data>
<data><![CDATA[httpd -k start]]></data>
<data><![CDATA[php-fpm: pool www]]></data>
<data><![CDATA[httpd -k start]]></data>
<data><![CDATA[/usr/bin/perl /usr/bin/tentacle_server -F /etc/tentacle/tentacle_server.conf]]></data>
<data><![CDATA[/usr/bin/perl /usr/bin/pandora_ha -d -p /var/run/pandora_ha.pid /etc/pandora/pandora_server.conf]]></data>
<data><![CDATA[/usr/bin/perl /usr/bin/pandora_agent /etc/pandora]]></data>
<data><![CDATA[/usr/bin/php /var/www/html/pandora_console/ws.php]]></data>
<data><![CDATA[/usr/bin/gotty --permit-arguments -a 127.0.0.1 -w --port 8081 ssh]]></data>
<data><![CDATA[/usr/bin/gotty --permit-arguments -a 127.0.0.1 -w --port 8082 telnet]]></data>
<data><![CDATA[crond]]></data>
<data><![CDATA[/bin/bash]]></data>
<data><![CDATA[/usr/bin/perl /usr/bin/pandora_server /etc/pandora/pandora_server.conf -D]]></data>
<data><![CDATA[/usr/bin/perl /etc/pandora/plugins/inventory 0]]></data>
<data><![CDATA[sh -c ps -eo command | tail -n +2]]></data>
<data><![CDATA[ps -eo command]]></data>
<data><![CDATA[/usr/bin/coreutils --coreutils-prog-shebang=tail /usr/bin/tail -n +2]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name><![CDATA[Kernel]]></name>
<datalist>
<data><![CDATA[Linux pandorafms 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name><![CDATA[Software]]></name>
<datalist>
<data><![CDATA[abattis-cantarell-fonts;0.0.{{rand_number}};Cantarell, a Humanist sans-serif font family]]></data>
<data><![CDATA[acl;2.2.53;Access control list utilities]]></data>
<data><![CDATA[adobe-mappings-cmap;20171205;CMap resources for Adobe's character collections]]></data>
<data><![CDATA[adobe-mappings-cmap-deprecated;20171205;Deprecated CMap resources for Adobe's character collections]]></data>
<data><![CDATA[adobe-mappings-pdf;20180407;PDF mapping resources from Adobe]]></data>
<data><![CDATA[adwaita-cursor-theme;3.28.0;Adwaita cursor theme]]></data>
<data><![CDATA[adwaita-icon-theme;3.{{rand_number}}.0;Adwaita icon theme]]></data>
<data><![CDATA[alsa-lib;1.2.7.2;The Advanced Linux Sound Architecture (ALSA) library]]></data>
<data><![CDATA[annobin;10.67;Annotate and examine compiled binary files]]></data>
<data><![CDATA[apr;1.6.3;Apache Portable Runtime library]]></data>
<data><![CDATA[apr-util;1.6.1;Apache Portable Runtime Utility library]]></data>
<data><![CDATA[python39;3.9.{{rand_number}};Version 3.9 of the Python interpreter]]></data>
<data><![CDATA[python39-libs;3.9.{{rand_number}};Python runtime libraries]]></data>
<data><![CDATA[python39-pip;20.{{rand_number}}.4;A tool for installing and managing Python3 packages]]></data>
<data><![CDATA[python39-pip-wheel;20.2.4;The pip wheel]]></data>
<data><![CDATA[python39-setuptools;50.3.2;Easily build and distribute Python 3 packages]]></data>
<data><![CDATA[python39-setuptools-wheel;50.3.2;The setuptools wheel]]></data>
<data><![CDATA[python39-tkinter;3.9.13;A GUI toolkit for Python]]></data>
<data><![CDATA[python3-audit;3.0.7;Python3 bindings for libaudit]]></data>
<data><![CDATA[python3-bind;9.11.36;A module allowing rndc commands to be sent from Python programs]]></data>
<data><![CDATA[python3-dateutil;2.6.1;Powerful extensions to the standard datetime module]]></data>
<data><![CDATA[python3-dbus;1.2.4;D-Bus bindings for python3]]></data>
<data><![CDATA[python3-dnf;4.7.0;Python 3 interface to DNF]]></data>
<data><![CDATA[python3-dnf-plugins-core;4.0.21;Core Plugins for DNF]]></data>
<data><![CDATA[python3-gpg;1.13.1;gpgme bindings for Python 3]]></data>
<data><![CDATA[python3-hawkey;0.63.0;Python 3 bindings for the hawkey library]]></data>
<data><![CDATA[python3-libcomps;0.1.18;Python 3 bindings for libcomps library]]></data>
<data><![CDATA[python3-libdnf;0.63.0;Python 3 bindings for the libdnf library.]]></data>
<data><![CDATA[python3-libs;3.6.8;Python runtime libraries]]></data>
<data><![CDATA[python3-libselinux;2.9;SELinux python 3 bindings for libselinux]]></data>
<data><![CDATA[python3-libsemanage;2.9;semanage python 3 bindings for libsemanage]]></data>
<data><![CDATA[python3-pip-wheel;9.0.3;The pip wheel]]></data>
<data><![CDATA[python3-ply;3.9;Python Lex-Yacc]]></data>
<data><![CDATA[python3-policycoreutils;2.9;SELinux policy core python3 interfaces]]></data>
<data><![CDATA[python3-pyparsing;2.1.10;Python package with an object-oriented approach to text processing]]></data>
<data><![CDATA[python3-rpm;4.14.3;Python 3 bindings for apps which will manipulate RPM packages]]></data>
<data><![CDATA[python3-rpm-macros;3;RPM macros for building Python 3 packages]]></data>
<data><![CDATA[python3-setools;4.3.0;Policy analysis tools for SELinux]]></data>
<data><![CDATA[python3-setuptools-wheel;39.2.0;The setuptools wheel]]></data>
<data><![CDATA[python3-six;1.11.0;Python 2 and 3 compatibility utilities]]></data>
<data><![CDATA[python-rpm-macros;3;The unversioned Python RPM macros]]></data>
<data><![CDATA[python-srpm-macros;3;RPM macros for building Python source packages]]></data>
<data><![CDATA[qt5-srpm-macros;5.15.3;RPM macros for source Qt5 packages]]></data>
<data><![CDATA[readline;7.0;A library for editing typed command lines]]></data>
<data><![CDATA[redhat-rpm-config;130;Red Hat specific rpm configuration files]]></data>
<data><![CDATA[remi-libssh2;1.10.0;A library implementing the SSH2 protocol]]></data>
<data><![CDATA[remi-release;8.7;YUM configuration for remi repository]]></data>
<data><![CDATA[rest;0.8.1;A library for access to RESTful web services]]></data>
<data><![CDATA[rocky-gpg-keys;8.7;Rocky RPM GPG Keys]]></data>
<data><![CDATA[rocky-indexhtml;8.0;Browser default start page for Rocky Linux]]></data>
<data><![CDATA[rocky-logos-httpd;86.3;Rocky related icons and pictures used by httpd]]></data>
<data><![CDATA[rocky-release;8.7;Rocky Linux release files]]></data>
<data><![CDATA[rocky-repos;8.7;Rocky Linux Package Repositories]]></data>
<data><![CDATA[rootfiles;8.1;The basic required files for the root user's directory]]></data>
<data><![CDATA[rpm;4.14.3;The RPM package management system]]></data>
<data><![CDATA[rpm-build-libs;4.14.3;Libraries for building and signing RPM packages]]></data>
<data><![CDATA[rpm-libs;4.14.3;Libraries for manipulating RPM packages]]></data>
<data><![CDATA[rrdtool;1.7.0;Round Robin Database Tool to store and display time-series data]]></data>
<data><![CDATA[rsync;3.1.3;A program for synchronizing files over a network]]></data>
<data><![CDATA[rust-srpm-macros;5;RPM macros for building Rust source packages]]></data>
<data><![CDATA[samba-client-libs;4.16.4;Samba client libraries]]></data>
<data><![CDATA[samba-common;4.16.4;Files used by both Samba servers and clients]]></data>
<data><![CDATA[samba-common-libs;4.16.4;Libraries used by both Samba servers and clients]]></data>
<data><![CDATA[samba-winexe;4.16.4;Samba Winexe Windows Binary]]></data>
<data><![CDATA[sed;4.5;A GNU stream text editor]]></data>
<data><![CDATA[setup;2.12.2;A set of system configuration and setup files]]></data>
<data><![CDATA[shadow-utils;4.6;Utilities for managing accounts and shadow password files]]></data>
<data><![CDATA[shared-mime-info;1.9;Shared MIME information database]]></data>
<data><![CDATA[sound-theme-freedesktop;0.8;freedesktop.org sound theme]]></data>
<data><![CDATA[sqlite-libs;3.26.0;Shared library for the sqlite3 embeddable SQL database engine.]]></data>
<data><![CDATA[sscg;3.0.0;Simple SSL certificate generator]]></data>
<data><![CDATA[sudo;1.8.29;Allows restricted root access for specified users]]></data>
<data><![CDATA[svt-av1-libs;0.8.7;SVT-AV1 libraries]]></data>
<data><![CDATA[systemd;239;System and Service Manager]]></data>
<data><![CDATA[systemd-libs;239;systemd libraries]]></data>
<data><![CDATA[systemd-pam;239;systemd PAM module]]></data>
<data><![CDATA[systemd-udev;239;Rule-based device node and kernel event manager]]></data>
<data><![CDATA[systemtap-sdt-devel;4.7;Static probe support tools]]></data>
<data><![CDATA[tar;1.30;A GNU file archiving program]]></data>
<data><![CDATA[tcl;8.6.8;Tool Command Language, pronounced tickle]]></data>
<data><![CDATA[tk;8.6.8;The graphical toolkit for the Tcl scripting language]]></data>
<data><![CDATA[tpm2-tss;2.3.2;TPM2.0 Software Stack]]></data>
<data><![CDATA[tree;1.7.0;File system tree viewer]]></data>
<data><![CDATA[ttmkfdir;3.0.9;Utility to create fonts.scale files for truetype fonts]]></data>
<data><![CDATA[tzdata;2022g;Timezone data]]></data>
<data><![CDATA[tzdata-java;2022g;Timezone data for Java]]></data>
<data><![CDATA[unixODBC;2.3.7;A complete ODBC driver manager for Linux]]></data>
<data><![CDATA[unzip;6.0;A utility for unpacking zip files]]></data>
<data><![CDATA[util-linux;2.32.1;A collection of basic system utilities]]></data>
<data><![CDATA[vim-common;8.0.1763;The common files needed by any version of the VIM editor]]></data>
<data><![CDATA[vim-enhanced;8.0.1763;A version of the VIM editor which includes recent enhancements]]></data>
<data><![CDATA[vim-filesystem;8.0.1763;VIM filesystem layout]]></data>
<data><![CDATA[vim-minimal;8.0.1763;A minimal version of the VIM editor]]></data>
<data><![CDATA[VMware-vSphere-Perl-SDK;6.5.0;VMware libraries for Perl. Allows connect to remote VSphere/VCenter/ESXi device.]]></data>
<data><![CDATA[wget;1.19.5;A utility for retrieving files using the HTTP or FTP protocols]]></data>
<data><![CDATA[which;2.21;Displays where a particular program in your path is located]]></data>
<data><![CDATA[whois;5.5.1;Improved WHOIS client]]></data>
<data><![CDATA[whois-nls;5.5.1;Gettext catalogs for whois tools]]></data>
<data><![CDATA[wmic;1.4;PandoraFMS wmic binary]]></data>
<data><![CDATA[x11vnc;0.9.16;VNC server for the current X11 session]]></data>
<data><![CDATA[xkeyboard-config;2.28;X Keyboard Extension configuration data]]></data>
<data><![CDATA[xterm;331;Terminal emulator for the X Window System]]></data>
<data><![CDATA[xterm-resize;331;Set environment and terminal settings to current window size]]></data>
<data><![CDATA[xz;5.2.4;LZMA compression utilities]]></data>
<data><![CDATA[xz-devel;5.2.4;Devel libraries & headers for liblzma]]></data>
<data><![CDATA[xz-libs;5.2.4;Libraries for decoding LZMA compression]]></data>
<data><![CDATA[yum;4.7.0;Package manager]]></data>
<data><![CDATA[yum-utils;4.0.21;Yum-utils CLI compatibility layer]]></data>
<data><![CDATA[zip;3.0;A file compression and packaging utility compatible with PKZIP]]></data>
<data><![CDATA[zlib;1.2.11;The compression and decompression library]]></data>
<data><![CDATA[zlib-devel;1.2.{{rand_number}};Header files and libraries for Zlib development]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name><![CDATA[Routes]]></name>
<datalist>
<data><![CDATA[default;_gateway;0.0.0.0;UG;0;0;eth0]]></data>
<data><![CDATA[{{ip_address}};0.0.0.0;255.255.0.0;U;0;0;eth0]]></data>
</datalist>
</inventory_module>
</inventory>
</agent_data>

View File

@ -0,0 +1,257 @@
<?xml version='1.0' encoding='UTF-8'?>
<agent_data description='{{description}}' group='{{group}}' os_name='windows' os_version='Windows 11' interval='300' version='' timestamp='{{date}}' agent_name='{{agent_name}}' agent_alias='' timezone_offset='0' custom_id='' url_address='' address=''>
<inventory>
<inventory_module>
<name>CPU</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz;3696 MHz;Intel64 Family 6 Model 158 Stepping 10]]></data>
<data><![CDATA[Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz;3696 MHz;Intel64 Family 6 Model 158 Stepping 10]]></data>
<data><![CDATA[Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz;3696 MHz;Intel64 Family 6 Model 158 Stepping 10]]></data>
<data><![CDATA[Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz;3696 MHz;Intel64 Family 6 Model 158 Stepping 10]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>HD</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[XENSRC PVDISK SCSI Disk Device;100 GB;4c0ae98e-d414-4c ]]></data>
<data><![CDATA[XENSRC PVDISK SCSI Disk Device;100 GB;afd0d8a2-84d3-49 ]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>Video</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[Citrix Indirect Display Adapter;;PCI\VEN_5853&DEV_1003\1&79F5D87&2&03]]></data>
<data><![CDATA[Microsoft Basic Display Adapter;0 MB;PCI\VEN_1013&DEV_00B8&SUBSYS_00015853&REV_00\3&267A616A&0&10]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>NIC</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[XenServer PV Network Device;BE:99:07:B0:E6:8F;{{ip_address}}]]></data>
<data><![CDATA[XenServer PV Network Device;C6:4E:9F:12:99:27;]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>Monitors</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[Generic Non-PnP Monitor;DISPLAY\DEFAULT_MONITOR\4&251819FC&0&UID0]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>RAM</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[DIMM 0;4092 MB;18756 MHz]]></data>
<data><![CDATA[DIMM 1;4092 MB;18756 MHz]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name><![CDATA[Software]]></name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[Microsoft Office 32-bit Components 2016 ;16.0.{{rand_number}}.1000]]></data>
<data><![CDATA[Microsoft Office Shared 32-bit MUI (Spanish) 2016 ;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft Skype for Business MUI (Spanish) 2016;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft Office Proofing (Spanish) 2016 ;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft Skype for Business Entry 2016 ;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft Office Shared MUI (Spanish) 2016 ;16.0.4417.1000]]></data>
<data><![CDATA[Eines de correcció del Microsoft Office 2016: català ;16.0.4417.1000]]></data>
<data><![CDATA[Revisores de Texto do Microsoft Office 2016 Português (Brasil) ;16.0.4417.1000]]></data>
<data><![CDATA[Ferramentas de verificación de Microsoft Office 2016 - Galego ;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft Office Proofing Tools 2016 - English ;16.0.4417.1000]]></data>
<data><![CDATA[Herramientas de corrección de Microsoft Office 2016: español;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft Office zuzenketa-tresnak 2016 - Euskara ;16.0.4417.1000]]></data>
<data><![CDATA[Microsoft OLE DB Driver for SQL Server;18.6.5.0]]></data>
<data><![CDATA[Integration Services ;16.0.5107.0]]></data>
<data><![CDATA[Remote Desktop ;1.2.{{rand_number}}.0]]></data>
<data><![CDATA[XCP-ng Center 20.04.01;20.04.01.33]]></data>
<data><![CDATA[Universal CRT Headers Libraries and Sources ;10.1.18362.1]]></data>
<data><![CDATA[MSI Development Tools ;10.1.22000.194]]></data>
<data><![CDATA[Windows SDK Redistributables;10.1.18362.1]]></data>
<data><![CDATA[MSI Development Tools ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 XEvent;16.0.1000.6]]></data>
<data><![CDATA[Windows SDK Desktop Tools x86 ;10.1.18362.1]]></data>
<data><![CDATA[CrossChex Standard ;1.1.0.0]]></data>
<data><![CDATA[Windows SDK Desktop Tools x64 ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Shared Management Objects;16.0.1000.6]]></data>
<data><![CDATA[WinRT Intellisense PPI - en-us ;10.1.18362.1]]></data>
<data><![CDATA[WinRT Intellisense UAP - Other Languages ;10.1.18362.1]]></data>
<data><![CDATA[Microsoft .NET Framework 4.8 Targeting Pack ;4.8.03761]]></data>
<data><![CDATA[Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219 ;10.0.40219]]></data>
<data><![CDATA[Windows SDK AddOn ;10.1.0.0]]></data>
<data><![CDATA[GlobalProtect ;5.2.13]]></data>
<data><![CDATA[Windows SDK ;10.1.18362.1]]></data>
<data><![CDATA[Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219 ;10.0.40219]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps Contracts;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Signing Tools;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Database Engine Shared;16.0.1000.6]]></data>
<data><![CDATA[Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.21005 ;12.0.21005]]></data>
<data><![CDATA[Windows SDK EULA;10.1.18362.1]]></data>
<data><![CDATA[Microsoft Visual C++ 2013 x86 Additional Runtime - 12.0.21005 ;12.0.21005]]></data>
<data><![CDATA[WPTx64 (DesktopEditions) ;10.1.22000.194]]></data>
<data><![CDATA[Citrix XenServer Windows Management Agent;7.2.1555]]></data>
<data><![CDATA[Microsoft Visual C++ 2019 X64 Minimum Runtime - 14.29.30139 ;14.29.30139]]></data>
<data><![CDATA[Microsoft Visual C++ 2019 X64 Additional Runtime - 14.29.30139 ;14.29.30139]]></data>
<data><![CDATA[SDK Debuggers ;10.1.22000.194]]></data>
<data><![CDATA[Windows SDK ARM Desktop Tools ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Connection Info;16.0.1000.6]]></data>
<data><![CDATA[VMware Horizon HTML5 Multimedia Redirection Client;7.8.0]]></data>
<data><![CDATA[Microsoft Analysis Services OLE DB Provider ;16.0.5143.0]]></data>
<data><![CDATA[Windows Mobile Extension SDK Contracts;10.1.18362.1]]></data>
<data><![CDATA[WinRT Intellisense PPI - Other Languages ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps Metadata ;10.1.18362.1]]></data>
<data><![CDATA[VMware Horizon Client ;5.0.0.5596]]></data>
<data><![CDATA[Microsoft SQL Server 2022 Setup (English);16.0.{{rand_number}}.5]]></data>
<data><![CDATA[SQL Server 2022 Connection Info;16.0.1000.6]]></data>
<data><![CDATA[WinRT Intellisense Desktop - en-us;10.1.18362.1]]></data>
<data><![CDATA[Microsoft Visual Studio Tools for Applications 2019 x64 Hosting Support ;16.0.31110]]></data>
<data><![CDATA[Universal CRT Tools x64 ;10.1.18362.1]]></data>
<data><![CDATA[Application Verifier x64 External Package;10.1.22000.194]]></data>
<data><![CDATA[SSMS Post Install Tasks ;19.0.20209.0]]></data>
<data><![CDATA[MSI Wrapper 10.0.50.0 ;10.0.50.0]]></data>
<data><![CDATA[Windows SDK DirectX x86 Remote ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Database Engine Services ;16.0.1000.6]]></data>
<data><![CDATA[Microsoft Web Platform Installer 5.1 ;5.1.51515.0]]></data>
<data><![CDATA[Self-service Plug-in ;21.7.0.28]]></data>
<data><![CDATA[SDK ARM Redistributables ;10.1.18362.1]]></data>
<data><![CDATA[Citrix Web Helper ;21.7.0.28]]></data>
<data><![CDATA[FortiClient ;6.0.10.0297]]></data>
<data><![CDATA[Microsoft Visual Studio Tools for Applications 2019 x86 Hosting Support ;16.0.31110]]></data>
<data><![CDATA[Windows SDK EULA;10.1.22000.194]]></data>
<data><![CDATA[Microsoft Visual C++ 2019 X86 Additional Runtime - 14.29.30139 ;14.29.30139]]></data>
<data><![CDATA[SQL Server 2022 Common Files;16.0.1000.6]]></data>
<data><![CDATA[Windows Mobile Extension SDK;10.1.18362.1]]></data>
<data><![CDATA[Citrix WorkSpace Browser ;21.7.0.2]]></data>
<data><![CDATA[Python 2.7.15 ;2.7.15150]]></data>
<data><![CDATA[WinRT Intellisense IoT - Other Languages ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Database Engine Services ;16.0.1000.6]]></data>
<data><![CDATA[Java 8 Update 201 ;8.0.2010.9]]></data>
<data><![CDATA[Java 8 Update 201 (64-bit) ;8.0.2010.9]]></data>
<data><![CDATA[Microsoft .NET Framework 4.8 SDK ;4.8.03928]]></data>
<data><![CDATA[SQL Server 2022 Shared Management Objects Extensions ;16.0.1000.6]]></data>
<data><![CDATA[SQL Server 2022 Database Engine Services ;16.0.1000.6]]></data>
<data><![CDATA[VIP Access ;2.2.4.44]]></data>
<data><![CDATA[Microsoft Visual C++ 2019 X86 Minimum Runtime - 14.29.30139 ;14.29.30139]]></data>
<data><![CDATA[Microsoft Analysis Services OLE DB Provider ;16.0.5143.0]]></data>
<data><![CDATA[RSA SecurID Software Token ;5.0.2.440]]></data>
<data><![CDATA[Windows SDK Facade Windows WinMD Versioned ;10.1.18362.1]]></data>
<data><![CDATA[Browser for SQL Server 2022 ;16.0.1000.6]]></data>
<data><![CDATA[SQL Server Management Studio Language Pack - English ;19.0.20209.0]]></data>
<data><![CDATA[PowerShell 7-x64;7.2.11.0]]></data>
<data><![CDATA[Microsoft Help Viewer 2.3;2.3.28307]]></data>
<data><![CDATA[Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.21005 ;12.0.21005]]></data>
<data><![CDATA[Online Plug-in ;21.7.0.17]]></data>
<data><![CDATA[Microsoft Visual C++ 2008 Redistributable - x64 9.0.{{rand_number}}.6161 ;9.0.30729.6161]]></data>
<data><![CDATA[SDK ARM Additions ;10.1.18362.1]]></data>
<data><![CDATA[Universal CRT Tools x86 ;10.1.18362.1]]></data>
<data><![CDATA[Citrix Screen Casting for Windows ;19.11.100.48]]></data>
<data><![CDATA[WPTx64 (OnecoreUAP);10.1.22000.194]]></data>
<data><![CDATA[Windows IoT Extension SDK Contracts;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 DMF;16.0.1000.6]]></data>
<data><![CDATA[Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161 ;9.0.30729.6161]]></data>
<data><![CDATA[Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.21005 ;12.0.21005]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps Tools ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK for Windows Store Managed Apps Libs;10.1.18362.1]]></data>
<data><![CDATA[Check Point VPN;98.61.3407]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps;10.1.18362.1]]></data>
<data><![CDATA[Application Verifier x64 External Package;10.1.18362.1]]></data>
<data><![CDATA[Universal General MIDI DLS Extension SDK ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Desktop Libs x86;10.1.18362.1]]></data>
<data><![CDATA[Windows App Certification Kit x64 ;10.1.18362.1]]></data>
<data><![CDATA[Citrix Workspace(DV) ;21.7.0.17]]></data>
<data><![CDATA[SQL Server 2022 Database Engine Shared;16.0.1000.6]]></data>
<data><![CDATA[SQL Server 2022 SQL Diagnostics;16.0.1000.6]]></data>
<data><![CDATA[Microsoft VSS Writer for SQL Server 2022 ;16.0.1000.6]]></data>
<data><![CDATA[WPT Redistributables ;10.1.22000.194]]></data>
<data><![CDATA[Kits Configuration Installer;10.1.22000.194]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps Libs ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Batch Parser;16.0.1000.6]]></data>
<data><![CDATA[SQL Server 2022 XEvent;16.0.1000.6]]></data>
<data><![CDATA[Windows SDK Desktop Libs x64;10.1.18362.1]]></data>
<data><![CDATA[SMA Connect Agent ;1.0.13]]></data>
<data><![CDATA[Windows SDK Desktop Tools arm64;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK DirectX x64 Remote ;10.1.18362.1]]></data>
<data><![CDATA[Microsoft SQL Server 2022 RsFx Driver ;16.0.1000.6]]></data>
<data><![CDATA[Citrix Workspace(USB) ;21.7.0.17]]></data>
<data><![CDATA[Universal CRT Extension SDK ;10.1.18362.1]]></data>
<data><![CDATA[Check MK Agent 1.6 ;1.6.0p5]]></data>
<data><![CDATA[SQL Server 2022 Shared Management Objects;16.0.1000.6]]></data>
<data><![CDATA[SQL Server 2022 Shared Management Objects Extensions ;16.0.1000.6]]></data>
<data><![CDATA[WinRT Intellisense UAP - en-us ;10.1.18362.1]]></data>
<data><![CDATA[BIG-IP Edge Client ;72.22.0308....]]></data>
<data><![CDATA[Orca ;3.1.3790.0000]]></data>
<data><![CDATA[Cisco AnyConnect Secure Mobility Client ;4.9.06037]]></data>
<data><![CDATA[WinRT Intellisense IoT - en-us ;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Common Files;16.0.1000.6]]></data>
<data><![CDATA[Windows IP Over USB;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Desktop Headers arm;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 Database Engine Services ;16.0.1000.6]]></data>
<data><![CDATA[Windows App Certification Kit SupportedApiList x86;10.1.18362.1]]></data>
<data><![CDATA[Windows IoT Extension SDK;10.1.18362.1]]></data>
<data><![CDATA[MySQL Workbench 8.0 CE;8.0.23]]></data>
<data><![CDATA[Windows Desktop Extension SDK ;10.1.18362.1]]></data>
<data><![CDATA[Microsoft ODBC Driver 17 for SQL Server ;17.10.3.1]]></data>
<data><![CDATA[Google Chrome ;114.0.5735.199]]></data>
<data><![CDATA[Windows Desktop Extension SDK Contracts ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Modern Versioned Developer Tools;10.1.18362.1]]></data>
<data><![CDATA[Windows Team Extension SDK ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps DirectX x86 Remote;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Desktop Libs arm64 ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Desktop Headers x64;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Modern Non-Versioned Developer Tools ;10.1.18362.1]]></data>
<data><![CDATA[Windows App Certification Kit Native Components;10.1.18362.1]]></data>
<data><![CDATA[SQL Server 2022 DMF;16.0.1000.6]]></data>
<data><![CDATA[Citrix Authentication Manager ;21.7.0.2]]></data>
<data><![CDATA[Citrix Gateway Plug-in;12.1.55.18]]></data>
<data><![CDATA[Windows SDK Signing Tools;10.1.22000.194]]></data>
<data><![CDATA[Citrix Hypervisor PV Tools ;9.0.33]]></data>
<data><![CDATA[Windows SDK Desktop Headers arm64 ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK Desktop Headers x86;10.1.18362.1]]></data>
<data><![CDATA[CrossChex Lite ;1.1.0.0]]></data>
<data><![CDATA[PuTTY release 0.70 (64-bit) ;0.70.0.0]]></data>
<data><![CDATA[SQL Server Management Studio;19.0.20209.0]]></data>
<data><![CDATA[Windows SDK Desktop Libs arm;10.1.18362.1]]></data>
<data><![CDATA[Visual Studio 2017 Isolated Shell for SSMS ;15.0.28308.421]]></data>
<data><![CDATA[Java Auto Updater ;2.8.{{rand_number}}.9]]></data>
<data><![CDATA[WinRT Intellisense Mobile - en-us ;10.1.18362.1]]></data>
<data><![CDATA[Windows SDK for Windows Store Apps Headers ;10.1.18362.1]]></data>
<data><![CDATA[Citrix Workspace Inside ;21.7.0.19]]></data>
<data><![CDATA[Universal CRT Redistributable ;10.1.18362.1]]></data>
<data><![CDATA[VMware Horizon Media Engine 8.0.0.561 (64-bit) ;8.0.0.561]]></data>
<data><![CDATA[WinAppDeploy;10.1.18362.1]]></data>
<data><![CDATA[Windows Team Extension SDK Contracts ;10.1.18362.1]]></data>
<data><![CDATA[WinRT Intellisense Desktop - Other Languages;10.1.18362.1]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>Users</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[PROJECTS;Roberto]]></data>
</datalist>
</inventory_module>
<inventory_module>
<name>product_ID</name>
<type><![CDATA[generic_data_string]]></type>
<datalist>
<data><![CDATA[00429-00101-62363-AA558 ]]></data>
</datalist>
</inventory_module>
</inventory>
</agent_data>

View File

@ -2,7 +2,7 @@
################################################################################
#
# Copyright (c) 2007-2008 Ramon Novoa <rnovoa@artica.es>
# Copyright (c) 2007-2023 Pandora FMS.
# Copyright (c) 2007-2023 Pandora FMS.
#
# tentacle_client.pl Tentacle Client. See https://pandorafms.com/docs/ for
# protocol description.