2010-04-29 Sancho Lerena <slerena@artica.es>
* pandora_agent_installer: Added darwin (snow leopard), and BSD to installer OS detection. * AIX/pandora_agent.conf: Fixed version & date. * HP-UX/pandora_agent.conf: Replaced some default modules by better ones. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2650 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
793f623996
commit
5aca46ad57
|
@ -1,7 +1,7 @@
|
|||
# Base config file for Pandora FMS agents
|
||||
# Version 3.0, AIX version
|
||||
# Licensed under GPL license v2,
|
||||
# Copyright (c) 2003-2009 Artica Soluciones Tecnologicas
|
||||
# Copyright (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||
# http://www.pandorafms.com
|
||||
|
||||
# General Parameters
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
2010-04-29 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* pandora_agent_installer: Added darwin (snow leopard), and BSD to
|
||||
installer OS detection.
|
||||
|
||||
* AIX/pandora_agent.conf: Fixed version & date.
|
||||
|
||||
* HP-UX/pandora_agent.conf: Replaced some default modules by
|
||||
better ones.
|
||||
|
||||
2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
|
||||
|
||||
* Linux/pandora_agent.conf: Added parameters position_description
|
||||
|
|
|
@ -106,31 +106,12 @@ transfer_mode tentacle
|
|||
module_begin
|
||||
module_name disk_root_free
|
||||
module_type generic_data
|
||||
module_exec df -k / | tail -1 | tr -d "%" | awk '{ print 100-$1 }'
|
||||
module_exec bdf / | grep -v "Filesystem" | awk '{print $4}'
|
||||
module_max 100
|
||||
module_min 0
|
||||
module_description Free disk Percentage of root partition
|
||||
module_end
|
||||
|
||||
module_begin
|
||||
module_name disk_var_free
|
||||
module_type generic_data
|
||||
module_exec df -k /var | tail -1 | tr -d "%" | awk '{ print 100-$1 }'
|
||||
module_max 100
|
||||
module_min 0
|
||||
module_description Free disk Percentage of /var partition
|
||||
module_end
|
||||
|
||||
module_begin
|
||||
module_name disk_usr_free
|
||||
module_type generic_data
|
||||
module_exec df -k /usr | tail -1 | tr -d "%" | awk '{ print 100-$1 }'
|
||||
module_max 100
|
||||
module_min 0
|
||||
module_description Free disk Percentage of /usr partition
|
||||
module_end
|
||||
|
||||
|
||||
module_begin
|
||||
module_name proctotal
|
||||
module_type generic_data
|
||||
|
@ -140,7 +121,7 @@ module_end
|
|||
module_begin
|
||||
module_name sshDaemon
|
||||
module_type generic_proc
|
||||
module_exec ps -ex | grep sshd | grep -v "grep" | wc -l | awk '{ print $1 }'
|
||||
module_exec ps -Af | grep "sshd" | grep -v "grep" | wc -l | awk '{ print $1 }'
|
||||
module_end
|
||||
|
||||
# Async data example
|
||||
|
@ -154,14 +135,14 @@ module_end
|
|||
module_begin
|
||||
module_name Swap_Free
|
||||
module_type generic_data
|
||||
module_exec swapinfo | grep memory | tr -d "%" | awk '{ print 100-$5 }'
|
||||
module_exec 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 dmesg | awk '/Physical:/ && /Kbytes/ {print $8}'
|
||||
module_exec swapinfo -t | grep memory | awk '{print $4}'
|
||||
module_description Unused RAM memory
|
||||
module_end
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ then
|
|||
fi
|
||||
|
||||
UNIX_KIND=`uname -s`
|
||||
if [ -z "`echo Linux HP-UX SunOS AIX Solaris | grep \"$UNIX_KIND\"`" ]
|
||||
if [ -z "`echo Linux HP-UX SunOS AIX Solaris Darwin BSD bsd | grep \"$UNIX_KIND\"`" ]
|
||||
then
|
||||
echo "This system: '$UNIX_KIND' is not supported by this script"
|
||||
echo "Please make the install yourself as it's described in documentation"
|
||||
|
|
Loading…
Reference in New Issue