2006-03-27 05:37:27 +02:00
|
|
|
# Fichero de configuracion base de agentes de Pandora
|
|
|
|
# Base config file for Pandora agents
|
2012-06-21 Ramon Novoa <rnovoa@artica.es>
* win32/bin/pandora_agent.conf,
win32/installer/pandora.mpi,
win32/versioninfo.rc,
win32/pandora.cc,
pc/AIX/pandora_agent.conf,
pc/Linux/pandora_agent.conf,
pc/HP-UX/pandora_agent.conf,
pc/Win32/pandora_agent.conf,
pc/NT4/pandora_agent.conf,
pc/SunOS/pandora_agent.conf,
pc/FreeBSD/pandora_agent.conf,
unix/AIX/pandora_agent.conf,
unix/DEBIAN/control,
unix/DEBIAN/make_deb_package.sh,
unix/pandora_agent.spec,
unix/Linux/pandora_agent.conf,
unix/HP-UX/pandora_agent.conf,
unix/pandora_agent.redhat.spec,
unix/pandora_agent,
unix/NT4/pandora_agent.conf,
unix/SunOS/pandora_agent.conf,
unix/FreeBSD/pandora_agent.conf,
shellscript/linux/pandora_agent.conf,
shellscript/bsd-ipso/pandora_agent.conf,
shellscript/aix/pandora_agent.conf,
shellscript/hp-ux/pandora_agent.conf,
shellscript/mac_osx/pandora_agent.conf,
shellscript/solaris/pandora_agent.conf,
shellscript/openWRT/pandora_agent.conf: Updated version strings.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6672 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-21 19:41:54 +02:00
|
|
|
# Version 5.0dev
|
2006-03-27 05:37:27 +02:00
|
|
|
# FreeBSD/IPSO version
|
2007-08-01 20:32:34 +02:00
|
|
|
# Licenced under GPL licence, 2003-2007 Sancho Lerena
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
# General Parameters
|
|
|
|
# ==================
|
|
|
|
|
2007-08-01 20:32:34 +02:00
|
|
|
server_ip 192.168.50.1
|
2007-04-11 16:14:32 +02:00
|
|
|
server_path /var/spool/pandora/data_in
|
2007-08-01 20:32:34 +02:00
|
|
|
pandora_path /opt/pandora_agent
|
2007-04-11 16:14:32 +02:00
|
|
|
temporal /var/spool/pandora/data_out
|
2007-08-01 20:32:34 +02:00
|
|
|
interval 600
|
|
|
|
agent_name nokia
|
|
|
|
debug 0
|
|
|
|
checksum 0
|
|
|
|
harmless_mode 1
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
# Module Definition
|
|
|
|
# =================
|
|
|
|
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name TCP_Conections
|
|
|
|
module_type generic_data_inc
|
|
|
|
module_exec fw ctl pstat | grep "TCP" | awk '{ print $3 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name UDP_Conections
|
|
|
|
module_type generic_data_inc
|
|
|
|
module_exec fw ctl pstat | grep "UDP" | awk '{ print $5 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name Nat_Conecctions
|
|
|
|
module_type generic_data_inc
|
|
|
|
module_exec fw ctl pstat | grep "tcpudp" | awk '{ print $5 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name SYS_Temp_Celsius
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec ipsctl hw:sys_stat:temp:1:current_val | awk '{ print $3 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name TCP_Established
|
|
|
|
module_type generic_data_inc
|
|
|
|
module_exec ipsctl net:ip:tcp:stats:conns_established | awk '{ print $3 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name UDP_RX_Packets
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data_inc
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec ipsctl net:ip:udp:stats:rx_pkts | awk '{ print $3 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name TCP_RX_Packets
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data_inc
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec ipsctl net:ip:tcp:stats:rx_total_pkts | awk '{ print $3 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name FW1_Conns
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec cpstat -f policy fw | grep "Num. connections" | awk '{ print $3 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name cpu_user
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec vmstat 1 2 | tail -1 | awk '{ print $16 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name cpu_sys
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec vmstat 1 2 | tail -1 | awk '{ print $17 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name system_freemem
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2007-08-01 20:32:34 +02:00
|
|
|
module_exec vmstat | tail -1 | awk '{ print $5 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
2007-08-01 20:32:34 +02:00
|
|
|
module_name load_avg
|
2006-03-27 05:37:27 +02:00
|
|
|
module_type generic_data
|
2007-08-02 10:49:25 +02:00
|
|
|
module_exec uptime | tr -d "," | awk '{ print $11 }'
|
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name fwd_CPU
|
|
|
|
module_type generic_data
|
|
|
|
module_exec ps aux | grep "fwd (fw)" | grep -v grep | awk '{ print $3 }'
|
|
|
|
module_end
|
|
|
|
|
|
|
|
module_begin
|
|
|
|
module_name nat_cache_stat
|
|
|
|
module_type generic_data
|
|
|
|
module_exec fw tab -t fwx_cache -s | tail -1 | awk '{ print $4 }'
|
2006-03-27 05:37:27 +02:00
|
|
|
module_end
|
|
|
|
|
|
|
|
|