Skip to main content

A plugin tool set of basic functions for pandorafms

Project description

pandoraPlugintoolsBasic

Basic version of plugintools.

Python: module plugintools-basic for PandoraFMS Developers

pandoraPluginToolsBasic is a library that aims to help the creation of scripts and their integration in Pandora FMS. This is a simplified and lighter version. If you want to use the plugin tools with SNMP or encryption functions, it is recommended to use the standard version.

PluginTools Reference Documentation

The package includes the following modules. Each one has different functions that facilitate and automate the data integration in Pandora FMS:

general

Module containing general purpose functions, useful in the creation of plugins for PandoraFMS.

threads

Module containing threading purpose functions, useful to run parallel functions.

agents

Module that contains functions oriented to the creation of Pandora FMS agents

modules

Module that contains functions oriented to the creation of Pandora FMS modules.

transfer

Module containing functions oriented to file transfer and data sending to Pandora FMS server.

discovery

Module containing functions oriented to the creation of Pandora FMS discovery plugins.

output

Module containing functions oriented to output and return data.

Example

import pandoraPluginTools-basic as ppt

## Define agent
server_name = "WIN-SERV"

agent=ppt.init_agent({
    "agent_name"  : ppt.generate_md5(server_name),
    "agent_alias" : server_name,
    "description" : "Default Windows server"
})

## Define modules
modules=[]

data = 10
modules.append({
    "name" : "CPU usage",
    "type" : "generic_data",
    "value": data,
    "desc" : "Percentage of CPU utilization",
    "unit" : "%"
})

## Generate and transfer XML
xml_content = ppt.print_agent(agent, modules)
xml_file = ppt.write_xml(xml_content, agent["agent_name"])
ppt.transfer_xml(
    xml_file,
    transfer_mode="tentacle",
    tentacle_ip="192.168.1.20",
    tentacle_port="41121",
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandoraplugintools_basic-1.0.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandoraplugintools_basic-1.0.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file pandoraplugintools_basic-1.0.0.tar.gz.

File metadata

  • Download URL: pandoraplugintools_basic-1.0.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pandoraplugintools_basic-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6bccae037ca32bfb0126f333dd9fcc973ec55fdb24e8d28350414bd6cb8804a0
MD5 c21c222710a8f43bb7977827d081725a
BLAKE2b-256 d642e1e69d5ed1025b629a220779d9184e5a6a22431308e560a6cbf101e7c368

See more details on using hashes here.

File details

Details for the file pandoraplugintools_basic-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pandoraplugintools_basic-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a3972cf8cdcacf7fe303f99510b880fa912abfa2f4c89974dcb827dc0415d6
MD5 8da6964f777aed564a8ad4810f799934
BLAKE2b-256 ec1df5a80bf24c6c624a411f005cffcf6cf6d90f8a540e151c6f7fe632efb2a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page