2006-11-23 17:40:28 +01:00
|
|
|
# Base config file for Pandora FMS agents
|
2022-02-16 17:27:01 +01:00
|
|
|
# Version 7.0NG.760
|
2007-01-03 19:47:54 +01:00
|
|
|
# Licensed under GPL license v2,
|
2020-11-27 13:52:35 +01:00
|
|
|
# (c) 2003-2021 Artica Soluciones Tecnologicas
|
2007-01-03 19:47:54 +01:00
|
|
|
# please visit http://pandora.sourceforge.net
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
# General Parameters
|
|
|
|
# ==================
|
|
|
|
|
2008-05-26 22:45:11 +02:00
|
|
|
server_ip localhost
|
2007-04-11 16:14:32 +02:00
|
|
|
server_path /var/spool/pandora/data_in
|
2009-11-29 14:35:16 +01:00
|
|
|
temporal /var/spool/pandora/data_out
|
2007-06-29 23:25:37 +02:00
|
|
|
logfile /var/log/pandora/pandora_agent.log
|
2007-01-03 19:47:54 +01:00
|
|
|
|
|
|
|
# Interval in seconds, 300 by default
|
2006-07-06 19:17:49 +02:00
|
|
|
interval 300
|
2007-01-03 19:47:54 +01:00
|
|
|
|
2017-07-18 13:31:50 +02:00
|
|
|
# Debug mode renames XML in the temp folder and continues running
|
2008-07-17 10:29:23 +02:00
|
|
|
debug 0
|
2007-01-03 19:47:54 +01:00
|
|
|
|
|
|
|
# By default, agent takes machine name
|
|
|
|
#agent_name adama
|
|
|
|
|
2009-08-19 04:28:44 +02:00
|
|
|
# Agent description
|
2009-10-27 22:04:49 +01:00
|
|
|
#description Put here your agent description
|
2009-08-19 04:28:44 +02:00
|
|
|
|
|
|
|
# Group assigned for this agent (descriptive, p.e: Servers)
|
|
|
|
#group Servers
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2007-01-03 19:47:54 +01:00
|
|
|
# By default agent try to take default encoding defined in host.
|
2012-06-21 15:12:57 +02:00
|
|
|
# encoding UTF-8
|
2007-01-03 19:47:54 +01:00
|
|
|
|
2008-05-26 22:45:11 +02:00
|
|
|
# Listening TCP port for remote server. By default is 41121 (for tentacle)
|
|
|
|
# if you want to use SSH use 22, and FTP uses 21.
|
2008-05-29 16:33:54 +02:00
|
|
|
server_port 41121
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-05-26 22:45:11 +02:00
|
|
|
# Transfer mode: tentacle, ftp, ssh or local
|
|
|
|
transfer_mode tentacle
|
2007-04-21 22:05:35 +02:00
|
|
|
|
2008-05-26 22:45:11 +02:00
|
|
|
# Server password (Tentacle or FTP). Leave empty for no password (default).
|
|
|
|
# server_pwd mypassword
|
2008-03-11 16:27:21 +01:00
|
|
|
|
|
|
|
# Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
|
2008-05-26 22:45:11 +02:00
|
|
|
# server_ssl no
|
2008-03-11 16:27:21 +01:00
|
|
|
|
|
|
|
# Extra options for the Tentacle client (for example, server_opts "-v -r 5").
|
|
|
|
# server_opts
|
|
|
|
|
2007-06-12 11:32:54 +02:00
|
|
|
# delayed_startup defines number of MINUTES before start execution
|
2008-05-26 22:45:11 +02:00
|
|
|
# for first time when startup Pandora FMS Agent
|
|
|
|
# delayed_startup 10
|
2007-06-12 11:32:54 +02:00
|
|
|
|
2008-06-09 13:27:30 +02:00
|
|
|
# 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)
|
2008-05-26 22:45:11 +02:00
|
|
|
# pandora_nice 0
|
2007-06-12 11:32:54 +02:00
|
|
|
|
2008-05-26 22:45:11 +02:00
|
|
|
# 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
|
2007-06-12 11:32:54 +02:00
|
|
|
|
2009-08-11 18:58:01 +02:00
|
|
|
# If set to 1 allows the agent to be configured via the web console (Only Enterprise version)
|
|
|
|
# remote_config 1
|
2008-06-09 13:27:30 +02:00
|
|
|
|
2008-12-10 13:32:55 +01:00
|
|
|
# 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
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
# Module Definition
|
|
|
|
# =================
|
|
|
|
|
2007-01-03 19:47:54 +01:00
|
|
|
# System information
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
# vmstat syntax depends on linux distro and vmstat command version, please check before use it
|
|
|
|
module_begin
|
|
|
|
module_name cpu_user
|
|
|
|
module_type generic_data
|
2006-06-05 22:52:12 +02:00
|
|
|
module_interval 1
|
2006-11-23 17:40:28 +01:00
|
|
|
module_exec vmstat 1 2 | tail -1 | awk '{ print $13 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_max 100
|
|
|
|
module_min 0
|
2009-02-24 12:26:01 +01:00
|
|
|
module_description User CPU Usage (%)
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2009-08-11 18:58:01 +02:00
|
|
|
module_name Load Average
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2010-02-17 03:16:03 +01:00
|
|
|
module_exec cat /proc/loadavg |awk '{print $1}'
|
2009-08-11 18:58:01 +02:00
|
|
|
module_description Average process in CPU (Last minute)
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name disk_root_free
|
|
|
|
module_type generic_data
|
|
|
|
module_exec df -kh / | tail -1 | awk '{ print 100-$5 }'
|
|
|
|
module_max 100
|
|
|
|
module_min 0
|
|
|
|
module_description Free disk Percentage of root partition
|
|
|
|
module_end
|
|
|
|
|
2007-04-22 02:59:44 +02:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
module_begin
|
|
|
|
module_name memfree
|
|
|
|
module_type generic_data
|
2006-07-06 19:17:49 +02:00
|
|
|
module_exec cat /proc/meminfo | grep MemFree | awk '{ print $2 }'
|
2009-12-09 12:40:39 +01:00
|
|
|
module_description Free Memory
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
2009-08-19 04:28:44 +02:00
|
|
|
# This module uses postprocess feature to pass postprocess value to module
|
2006-03-27 05:37:27 +02:00
|
|
|
module_begin
|
|
|
|
module_name memused
|
|
|
|
module_type generic_data
|
2010-05-17 11:52:36 +02:00
|
|
|
module_exec cat /proc/meminfo | grep "Active:" | awk '{ print $2 }'
|
2009-08-19 04:28:44 +02:00
|
|
|
module_postprocess 0,976
|
2009-12-09 12:40:39 +01:00
|
|
|
module_description Meminfo postprocess
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name proctotal
|
|
|
|
module_type generic_data
|
2010-05-17 11:52:36 +02:00
|
|
|
module_exec ps -A | tail --lines=+5 | wc -l
|
2009-12-09 12:40:39 +01:00
|
|
|
module_description Total processes
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
2007-01-03 19:47:54 +01:00
|
|
|
# Process information
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
module_begin
|
|
|
|
module_name sshDaemon
|
|
|
|
module_type generic_proc
|
|
|
|
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
|
2009-12-09 12:40:39 +01:00
|
|
|
module_description Monitor SSH Daemon
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
2008-11-24 16:53:58 +01:00
|
|
|
# Async data example
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name LastLogin
|
|
|
|
module_type async_string
|
|
|
|
module_exec last | head -1
|
2009-12-09 12:40:39 +01:00
|
|
|
module_description Last Login
|
2008-11-24 16:53:58 +01:00
|
|
|
module_end
|
|
|
|
|
2008-05-27 10:25:39 +02:00
|
|
|
# Plugin example
|
2008-05-29 16:33:54 +02:00
|
|
|
|
|
|
|
# This parses /var/log/syslog file, under the module name "syslog"
|
|
|
|
# And search for "ssh" string into it, sending only that information.
|
|
|
|
|
|
|
|
module_plugin grep_log /var/log/syslog Syslog ssh
|
2009-08-11 18:58:01 +02:00
|
|
|
|
|
|
|
# Plugin for inventory on the agent (Only Enterprise)
|
|
|
|
# module_plugin inventory 1 cpu ram video nic hd cdrom software
|