2012-04-25 18:03:46 +02:00
|
|
|
# Base config file for Pandora FMS agents
|
2017-12-18 13:26:41 +01:00
|
|
|
# Version 7.0NG.717, GNU/Linux
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# Licensed under GPL license v2,
|
2014-05-30 17:55:42 +02:00
|
|
|
# Copyright (c) 2003-2014 Artica Soluciones Tecnologicas
|
2009-11-06 21:24:52 +01:00
|
|
|
# http://www.pandorafms.com
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# General Parameters
|
|
|
|
# ==================
|
|
|
|
|
|
|
|
server_ip localhost
|
|
|
|
server_path /var/spool/pandora/data_in
|
2010-05-18 18:09:06 +02:00
|
|
|
temporal /tmp
|
|
|
|
logfile /var/log/pandora/pandora_agent.log
|
2014-05-30 17:55:42 +02:00
|
|
|
|
2011-07-14 17:14:03 +02:00
|
|
|
#include /etc/pandora/pandora_agent_alt.conf
|
|
|
|
#broker_agent name_agent
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# Interval in seconds, 300 by default
|
|
|
|
interval 300
|
|
|
|
|
2017-07-17 11:26:22 +02:00
|
|
|
# Debug mode renames XML in the temp folder and continues running
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
debug 0
|
|
|
|
|
2010-10-08 11:58:18 +02:00
|
|
|
# Optional. UDP Server to receive orders from outside
|
|
|
|
# By default is disabled, set 1 to enable
|
|
|
|
# Set port (41122 by default)
|
|
|
|
# Set address to restrict who can order a agent restart (0.0.0.0 = anybody)
|
|
|
|
#
|
|
|
|
udp_server 0
|
|
|
|
udp_server_port 41122
|
|
|
|
udp_server_auth_address 0.0.0.0
|
|
|
|
|
2014-08-18 15:21:32 +02:00
|
|
|
#process_xeyes_start xeyes
|
|
|
|
#process_xeyes_stop killall xeyes
|
|
|
|
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# By default, agent takes machine name
|
2012-04-25 18:03:46 +02:00
|
|
|
#agent_name adama
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2014-11-15 23:56:35 +01:00
|
|
|
# To define agent name by specific command, define 'agent_name_cmd'.
|
|
|
|
# (In the following example, agent name is 'hostname_IP')
|
2017-02-20 15:23:18 +01:00
|
|
|
# If set to __rand__ the agent will generate a random name.
|
2014-11-17 11:24:41 +01:00
|
|
|
#agent_name_cmd LANG=C; /bin/echo -n `hostname`; /bin/echo -n "_"; /bin/echo `/sbin/ifconfig eth0 | /bin/grep 'inet addr' | /usr/bin/awk '{print $2;}' | /usr/bin/cut -d: -f2`
|
2017-02-20 15:23:18 +01:00
|
|
|
agent_name_cmd __rand__
|
2014-11-15 23:56:35 +01:00
|
|
|
|
2010-02-22 20:32:10 +01:00
|
|
|
#Parent agent_name
|
2010-10-08 11:58:18 +02:00
|
|
|
#parent_agent_name caprica
|
2010-02-22 20:32:10 +01:00
|
|
|
|
2017-04-17 12:50:46 +02:00
|
|
|
# By default, agent takes machine alias
|
|
|
|
#agent_alias
|
|
|
|
|
|
|
|
# To define agent alias by specific command, define 'agent_alias_cmd'.
|
|
|
|
#agent_alias_cmd
|
|
|
|
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# Agent description
|
2010-10-08 11:58:18 +02:00
|
|
|
#description This is a demo agent for Linux
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# Group assigned for this agent (descriptive, p.e: Servers)
|
2014-09-11 19:41:14 +02:00
|
|
|
group Servers
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2017-01-16 11:29:23 +01:00
|
|
|
# Group password (if defined).
|
|
|
|
#group_password
|
|
|
|
|
2011-06-28 14:13:26 +02:00
|
|
|
# address: Enforce to server a ip address to this agent
|
|
|
|
# You can also try to detect the first IP using "auto", for example
|
2013-06-25 18:07:30 +02:00
|
|
|
address auto
|
2011-06-28 14:13:26 +02:00
|
|
|
# or setting a fixed IP address, like for example:
|
2011-06-28 11:47:10 +02:00
|
|
|
#address 192.168.36.73
|
2011-06-28 10:10:31 +02:00
|
|
|
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# 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
|
2010-10-08 11:58:18 +02:00
|
|
|
#autotime 1
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2010-01-12 18:29:03 +01:00
|
|
|
# Timezone offset: Difference with the server timezone
|
|
|
|
#timezone_offset 0
|
|
|
|
|
|
|
|
# Agent position paramters
|
|
|
|
# Those parameters define the geographical position of the agent
|
|
|
|
|
2011-06-28 14:13:26 +02:00
|
|
|
# gis_exec: Call a script that returns a string with a fixed
|
|
|
|
# format of latitude,longitude,altitude
|
2011-06-28 10:10:31 +02:00
|
|
|
# i.e.: 41.377,-5.105,2.365
|
|
|
|
|
2011-06-28 14:13:26 +02:00
|
|
|
#gis_exec /tmp/gis.sh
|
2011-06-28 10:10:31 +02:00
|
|
|
|
2011-06-28 14:13:26 +02:00
|
|
|
# This sets the GIS coordinates as fixed values:
|
2010-01-12 18:29:03 +01:00
|
|
|
# latitude
|
|
|
|
#latitude 0
|
|
|
|
# longitude
|
|
|
|
#longitude 0
|
|
|
|
# altitude
|
|
|
|
#altitude 0
|
|
|
|
|
2011-06-28 14:13:26 +02:00
|
|
|
#GPS Position description
|
2010-02-22 20:32:10 +01:00
|
|
|
#position_description Madrid, centro
|
|
|
|
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# By default agent try to take default encoding defined in host.
|
2012-06-21 15:12:57 +02:00
|
|
|
#encoding UTF-8
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +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.
|
|
|
|
server_port 41121
|
|
|
|
|
|
|
|
# Transfer mode: tentacle, ftp, ssh or local
|
|
|
|
transfer_mode tentacle
|
|
|
|
|
2017-09-21 10:09:06 +02:00
|
|
|
# Transfer mode user: Owner of files copied on local transfer mode (default apache)
|
|
|
|
#transfer_mode_user apache
|
|
|
|
|
2015-06-03 09:41:31 +02:00
|
|
|
# timeout in seconds for file transfer programs execution (30 by default)
|
|
|
|
#transfer_timeout 30
|
|
|
|
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# Server password (Tentacle or FTP). Leave empty for no password (default).
|
2010-10-08 11:58:18 +02:00
|
|
|
#server_pwd mypassword
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# Set to yes/no to enable/disable OpenSSL support for Tentacle (disabled by default).
|
2010-10-08 11:58:18 +02:00
|
|
|
#server_ssl no
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2015-10-28 14:03:24 +01:00
|
|
|
# Extra options for the Tentacle client (for example: server_opts -v -r 5).
|
2010-10-08 11:58:18 +02:00
|
|
|
#server_opts
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2011-08-03 11:41:28 +02:00
|
|
|
# delayed_startup defines number of seconds before start execution
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
# for first time when startup Pandora FMS Agent
|
2010-10-08 11:58:18 +02:00
|
|
|
#delayed_startup 10
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +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)
|
2010-10-08 11:58:18 +02:00
|
|
|
#pandora_nice 0
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +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
|
2010-10-08 11:58:18 +02:00
|
|
|
# is much more safe
|
|
|
|
#cron_mode
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# If set to 1 allows the agent to be configured via the web console (Only Enterprise version)
|
2013-06-26 10:22:39 +02:00
|
|
|
remote_config 0
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2011-04-13 10:15:16 +02:00
|
|
|
# If set to 1 start Drone Agent's Proxy Mode
|
2011-04-11 18:35:45 +02:00
|
|
|
# proxy_mode 1
|
|
|
|
|
2011-04-12 17:09:25 +02:00
|
|
|
# Max number of simmultaneus connection for proxy (by default 10)
|
|
|
|
# proxy_max_connection 10
|
|
|
|
|
|
|
|
# Proxy timeout (by default 1s)
|
|
|
|
# proxy_timeout 1
|
|
|
|
|
2010-10-07 11:18:13 +02:00
|
|
|
# Number of threads to execute modules in parallel
|
|
|
|
#agent_threads 1
|
|
|
|
|
2010-11-19 15:18:34 +01:00
|
|
|
# User the agent will run as
|
2013-09-19 14:07:31 +02:00
|
|
|
#pandora_user pandora
|
2010-11-19 15:18:34 +01:00
|
|
|
|
2012-02-28 16:48:26 +01:00
|
|
|
# Enable or disable XML buffer.
|
2012-02-29 12:39:29 +01:00
|
|
|
# If you are in a secured environment and want to enable the XML buffer you
|
|
|
|
# should consider changing the temporal directory, since /tmp is world writable.
|
2014-05-30 17:55:42 +02:00
|
|
|
xml_buffer 1
|
2012-02-28 16:48:26 +01:00
|
|
|
|
|
|
|
# Minimum available bytes in the temporal directory to enable the XML buffer
|
2014-05-30 17:55:42 +02:00
|
|
|
temporal_min_size 1024
|
2012-02-28 16:48:26 +01:00
|
|
|
|
2016-06-03 11:58:13 +02:00
|
|
|
# Agent mode: Learn (default), No-learn, Autodisable
|
|
|
|
# agent_mode autodisable
|
|
|
|
|
2017-02-23 12:44:21 +01:00
|
|
|
# eHorus agent configuration file path:
|
|
|
|
# The agent will create a custom field named eHorusID that contains
|
|
|
|
# the eHorus agent's identifying key
|
|
|
|
ehorus_conf /etc/ehorus/ehorus_agent.conf
|
|
|
|
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02: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.
|
2010-10-08 11:58:18 +02:00
|
|
|
#secondary_mode on_error
|
|
|
|
#secondary_server_ip localhost
|
|
|
|
#secondary_server_path /var/spool/pandora/data_in
|
|
|
|
#secondary_server_port 41121
|
|
|
|
#secondary_transfer_mode tentacle
|
2015-06-03 09:41:31 +02:00
|
|
|
#secondary_transfer_timeout 30
|
2010-10-08 11:58:18 +02:00
|
|
|
#secondary_server_pwd mypassword
|
|
|
|
#secondary_server_ssl no
|
|
|
|
#secondary_server_opts
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# Module Definition
|
|
|
|
# =================
|
|
|
|
|
|
|
|
# System information
|
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
# Could change depending on linux distro and vmstat command version
|
|
|
|
module_begin
|
2014-05-30 17:55:42 +02:00
|
|
|
module_name CPU Load
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_type generic_data
|
|
|
|
module_interval 1
|
|
|
|
module_exec vmstat 1 2 | tail -1 | awk '{ print $13 }'
|
|
|
|
module_max 100
|
|
|
|
module_min 0
|
|
|
|
module_description User CPU Usage (%)
|
2012-04-25 09:20:59 +02:00
|
|
|
module_min_warning 70
|
|
|
|
module_max_warning 90
|
|
|
|
module_min_critical 91
|
|
|
|
module_max_critical 100
|
2012-05-10 18:27:15 +02:00
|
|
|
module_unit %
|
2017-02-22 12:25:05 +01:00
|
|
|
module_group System
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_end
|
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
# Could change depending on linux distro and vmstat command version
|
2014-09-11 19:41:14 +02:00
|
|
|
module_begin
|
|
|
|
module_name CPU IOWait
|
|
|
|
module_type generic_data
|
|
|
|
module_interval 1
|
|
|
|
module_exec vmstat 1 2 | tail -1 | awk '{ print $16 }'
|
|
|
|
module_min_warning 10
|
|
|
|
module_min_critical 16
|
|
|
|
module_unit %
|
2014-05-30 17:55:42 +02:00
|
|
|
module_description Too much IOwait means IO bottleneck and performance problems. Check also LoadAVG.
|
2017-02-22 12:25:05 +01:00
|
|
|
module_group System
|
2014-05-30 17:55:42 +02:00
|
|
|
module_end
|
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
# Get load average
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_begin
|
2017-02-22 12:25:05 +01:00
|
|
|
module_name Load Average
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_type generic_data
|
2017-02-22 12:25:05 +01:00
|
|
|
module_exec cat /proc/loadavg | cut -d' ' -f1
|
|
|
|
module_description Average process in CPU (Last minute)
|
|
|
|
module_group System
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_end
|
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
# Basic info about TCP Connection
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_begin
|
2017-02-22 12:25:05 +01:00
|
|
|
module_name TCP_Connections
|
|
|
|
module_type generic_data
|
|
|
|
module_exec netstat -an | grep tcp | grep -v LIST | wc -l
|
|
|
|
module_description Total number of TCP connections active
|
|
|
|
module_group Networking
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
module_end
|
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
# This plugin detects all disk and report used space (%)
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2016-10-25 13:24:56 +02:00
|
|
|
module_plugin pandora_df_used
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
# This plugin detects system free memory and used swap (in %)
|
2012-04-25 09:20:59 +02:00
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
module_plugin pandora_mem_used
|
2012-04-25 09:20:59 +02:00
|
|
|
|
2014-05-30 17:55:42 +02:00
|
|
|
# This plugin will get the network usage (bytes/sec)
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
2014-05-30 17:55:42 +02:00
|
|
|
module_plugin pandora_netusage
|
2009-09-14 Ramon Novoa <rnovoa@artica.es>
* unix, unix/pandora_agent_installer,
unix/plugins, unix/pandora_agent,
unix/pandora_agent_daemon, unix/AUTHORS,
unix/pandora_agent.conf, unix/COPYING,
unix/pandora_agent.spec, unix/tentacle_client,
unix/README: Added to repository. Generic Pandora FMS Unix agent
written in PERL. The skeleton files where copied from the linux
subdirectory.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1940 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-09-14 17:57:00 +02:00
|
|
|
|
|
|
|
# Plugin for inventory on the agent (Only Enterprise)
|
2017-02-22 12:25:05 +01:00
|
|
|
#module_plugin inventory 1 cpu ram video nic hd cdrom software init_services filesystem users route
|
2014-09-11 12:10:17 +02:00
|
|
|
|
|
|
|
# Log collection modules. Only for enterprise version, this will collect log files for forensic analysis.
|
|
|
|
# This is for LOG monitoring, only on enterprise version
|
|
|
|
#module_plugin grep_log_module /var/log/messages Syslog \.\*
|
|
|
|
|
2017-02-22 12:25:05 +01:00
|
|
|
#module_begin
|
|
|
|
#module_name HTTPD_Status
|
|
|
|
#module_type generic_proc
|
|
|
|
#module_exec ps aux | grep httpd | grep -v grep | wc -l
|
|
|
|
#module_group Application
|
|
|
|
#module_end
|
|
|
|
|
|
|
|
#module_begin
|
|
|
|
#module_name MySQL_Status
|
|
|
|
#module_type generic_proc
|
|
|
|
#module_exec ps aux | grep -v grep | grep mysqld_safe | wc -l
|
|
|
|
#module_group Database
|
|
|
|
#module_end
|
|
|
|
|
|
|
|
#module_begin
|
|
|
|
#module_name Zombies
|
|
|
|
#module_type generic_data
|
|
|
|
#module_exec ps aux | grep "<defunct>" | grep -v grep | wc -l
|
|
|
|
#module_description Zombies process on system
|
|
|
|
#module_group System
|
|
|
|
#module_end
|