command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 5, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
register_hosts Command
The register_hosts command will get hosts from Zabbix database and categorizing them based on predefined naming Conventions.
Naming Conventions
The command uses specific naming conventions to determine the type and category of each host:
- Linux Server: Hostnames starting with
auto.linux.server. will be registered as Linux host with the type server.
- Linux Agent: Hostnames starting with
auto.linux.agent. will be registered as Linux host with the type agent.
- Windows Agent (not avaliable yet): Hostnames starting with
auto.windows.agent. will be registered as Windows host with the type agent.
Usage
-
Prerequisites:
- Ensure that the Zabbix database is already setup and accessible.
- If the host is windows, check PubkeyAuthentication in
C:\ProgramData\ssh\sshd_config. If it is no, set it to yes and restart ssh-server.
-
Execution:
note: Since remote_run doesn't not support multiple databases yet, you can choose only one flags between -p and -m.
-
Verification:
- Check the
hosts.json file in the parent folderpath. If the registration is successful, the registered hosts will be listed there.
- If the hosts are registered properly, you will be able to use them from common.Hosts slice.
remote_run Command
The remote_run command will run specific ticket.
Usage
-
Prerequisites:
- Ensure target hosts are registered in hosts.json file.
-
Execution:
note: Since remote_run doesn't not support multiple databases yet, you can choose only one flags between -p and -m.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
src
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.