pandorafms/pandora_agents/unix/HP-UX/pandora_agent.conf

205 lines
5.3 KiB
Plaintext

# Base config file for Pandora FMS agents
# Version 7.0NG.758.1, HP-UX Version
# Licensed under GPL license v2,
# Copyright (c) 2003-2021 Artica Soluciones Tecnologicas
# http://www.pandorafms.com
# General Parameters
# ==================
server_ip localhost
server_path /var/spool/pandora/data_in
temporal /tmp
logfile /var/log/pandora/pandora_agent.log
#include /etc/pandora/pandora_agent_alt.conf
#broker_agent name_agent
# Interval in seconds, 300 by default
interval 300
# Debug mode renames XML in the temp folder and continues running
debug 0
# By default, agent takes machine name
#agent_name xxxxxx
# Agent description
#description Demo agent
# Group assigned for this agent (descriptive, p.e: Servers)
#group Servers
# Group password (if defined).
#group_password
# Autotime: Enforce to server to ignore timestamp coming from this
# agent, used when agents has no timer or it's inestable. 1 to enable
# this feature
# autotime 1
# Timezone offset: Difference with the server timezone
#timezone_offset 0
# Agent position paramters
# Those parameters define the geographical position of the agent
# latitude
#latitude 0
# longitude
#longitude 0
# altitude
#altitude 0
# By default agent try to take default encoding defined in host.
# encoding UTF-8
# Listening TCP port for remote server. By default is 41121 (for tentacle)
# if you want to use SSH use 22, and FTP uses 21.
server_port 41121
# Transfer mode: tentacle, ftp, ssh or local
transfer_mode tentacle
# Transfer mode user: Owner of files copied on local transfer mode (default apache)
#transfer_mode_user apache
# Server password (Tentacle or FTP). Leave empty for no password (default).
# server_pwd mypassword
# Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
# server_ssl no
# Extra options for the Tentacle client (for example: server_opts -v -r 5).
# server_opts
# delayed_startup defines number of seconds before start execution
# for first time when startup Pandora FMS Agent
# delayed_startup 10
# Pandora nice defines priority of execution. Less priority means more intensive execution
# A recommended value is 10. 0 priority means no Pandora CPU protection enabled (default)
# pandora_nice 0
# Cron mode replace Pandora FMS own task schedule each XX interval seconds by the use
# of old style cron. You should add to crontab Pandora FMS agent script to use this mode.
# This is disabled by default, and is not recommended. Use Pandora FMS internal scheduler
# is much more safe.
# cron_mode
# If set to 1 allows the agent to be configured via the web console (Only Enterprise version)
# remote_config 1
# Default 0, set to 1 to avoid module executions and report to server
# standby 1
# If set to 1 start Drone Agent's Proxy Mode
# proxy_mode 1
# Max number of simmultaneus connection for proxy (by default 10)
# proxy_max_connection 10
# Proxy timeout (by default 1s)
# proxy_timeout 1
# Address the proxy will listen on.
#proxy_address 0.0.0.0
# Port the proxy will listen on.
#proxy_port 41121
# User the agent will run as
#pandora_user root
# Agent mode: Learn (default), No-learn, Autodisable
# agent_mode autodisable
# Secondary groups. You can select several groups separated by comma.
# secondary_groups Group1,Group2
# Secondary server configuration
# ==============================
# If secondary_mode is set to on_error, data files are copied to the secondary
# server only if the primary server fails. If set to always, data files are
# always copied to the secondary server.
# secondary_mode on_error
# secondary_server_ip localhost
# secondary_server_path /var/spool/pandora/data_in
# secondary_server_port 41121
# secondary_transfer_mode tentacle
# secondary_server_pwd mypassword
# secondary_server_ssl no
# secondary_server_opts
# Module Definition
# =================
# System information
# All this commands has been tested on a Standard HP-UX B.11.31
module_begin
module_name disk_usage_/
module_type generic_data
module_exec df -P | grep -e "/$" | awk '{print $5}' | tr -d %
module_description Disk usage on / (%)
module_end
module_begin
module_name disk_usage_/var
module_type generic_data
module_exec df -P | grep -e "/var$" | awk '{print $5}' | tr -d %
module_description Disk usage on / var(%)
module_end
module_begin
module_name proctotal
module_type generic_data
module_exec ps -ex | wc -l | awk '{ print $1 }'
module_end
module_begin
module_name sshDaemon
module_type generic_proc
module_exec ps -e | grep "sshd" | grep -v "grep" | wc -l | awk '{ print $1 }'
module_end
# Async data example
module_begin
module_name LastLogin
module_type async_string
module_exec last | head -1
module_end
module_begin
module_name Swap_Free
module_type generic_data
module_exec /usr/sbin/swapinfo -t | grep memory | tr -d "%" | awk '{ print 100-$5 }'
module_description Unused swap memory
module_end
module_begin
module_name RAM_Free
module_type generic_data
module_exec /usr/sbin/swapinfo -t | grep memory | awk '{print $4}'
module_description Unused RAM memory
module_end
module_begin
module_name CPU_User
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $16 }'
module_description % of USER CPU
module_end
module_begin
module_name CPU_System
module_type generic_data
module_exec vmstat 1 2 | tail -1 | awk '{ print $17 }'
module_description % of system CPU
module_end
module_plugin grep_log /var/adm/syslog/syslog.log Syslog .