69 lines
1.5 KiB
Plaintext
Executable File
69 lines
1.5 KiB
Plaintext
Executable File
# Fichero de configuracion base de agentes de Pandora
|
|
# Base config file for Pandora agents
|
|
# Version 1.2, Solaris version
|
|
|
|
# General Parameters
|
|
# ==================
|
|
server_ip 192.168.50.100
|
|
server_path /opt/pandora_server/data_in
|
|
pandora_path /opt/pandora_agent/
|
|
temporal /opt/pandora_agent/data_out
|
|
interval 300
|
|
#agent_name satellite_system
|
|
checksum 0
|
|
debug 1
|
|
|
|
# Module Definition
|
|
# =================
|
|
|
|
module_begin
|
|
module_name cpu_user
|
|
module_type generic_data
|
|
module_exec vmstat 2 2| tail -1 | awk '{ print $20 }'
|
|
module_end
|
|
|
|
module_begin
|
|
module_name cpu_sys
|
|
module_type generic_data
|
|
module_exec vmstat 2 2 | tail -1 | awk '{ print $21 }'
|
|
module_end
|
|
|
|
module_begin
|
|
module_name disk_var_free
|
|
module_type generic_data
|
|
module_exec df -k | grep /var | tr -s "%" " " | tail -1 | awk '{ print 100 - $5 }'
|
|
module_interval 10
|
|
module_end
|
|
|
|
module_begin
|
|
module_name memfree
|
|
module_type generic_data
|
|
module_exec vmstat 2 2| tail -1 | awk '{ print $5 }'
|
|
module_end
|
|
|
|
module_begin
|
|
module_name proctotal
|
|
module_type generic_data
|
|
module_exec ps -A | wc -l | awk '{ print $1 }'
|
|
module_interval 4
|
|
module_end
|
|
|
|
module_begin
|
|
module_name IP_Packet_OUT
|
|
module_type generic_data
|
|
module_exec netstat -as | grep "ipOutRequest" | tr "=" " " | awk '{ print $4 }'
|
|
module_end
|
|
|
|
module_begin
|
|
module_name IP_Packet_IN
|
|
module_type generic_data
|
|
module_exec netstat -as | grep "ipInReceives" | tr "=" " " | awk ' { print $2 }'
|
|
module_end
|
|
|
|
module_begin
|
|
module_name SSH_Daemon
|
|
module_type generic_proc
|
|
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
|
|
module_end
|
|
|