mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2009-12-09 Raul Mateos <raulofpandora@gmail.com>
* linux/pandora_agent.conf: Added comments to all modules. This will help in reporting (reporting get the module's descriptions) and it's a good habit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2184 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2e9e025096
commit
ab23c1eb91
@ -1,3 +1,9 @@
|
|||||||
|
2009-12-09 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
|
* linux/pandora_agent.conf: Added comments to all modules. This will
|
||||||
|
help in reporting (reporting get the module's descriptions) and it's
|
||||||
|
a good habit.
|
||||||
|
|
||||||
2009-12-07 Raul Mateos <raulofpandora@gmail.com>
|
2009-12-07 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* linux/pandora_agent_installer: Use tabs instead spaces. Small text
|
* linux/pandora_agent_installer: Use tabs instead spaces. Small text
|
||||||
|
@ -121,6 +121,7 @@ module_begin
|
|||||||
module_name memfree
|
module_name memfree
|
||||||
module_type generic_data
|
module_type generic_data
|
||||||
module_exec cat /proc/meminfo | grep MemFree | awk '{ print $2 }'
|
module_exec cat /proc/meminfo | grep MemFree | awk '{ print $2 }'
|
||||||
|
module_description Free Memory
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
# This module uses postprocess feature to pass postprocess value to module
|
# This module uses postprocess feature to pass postprocess value to module
|
||||||
@ -129,12 +130,14 @@ module_name memused
|
|||||||
module_type generic_data
|
module_type generic_data
|
||||||
module_exec cat /proc/meminfo | grep "Active" | awk '{ print $2 }'
|
module_exec cat /proc/meminfo | grep "Active" | awk '{ print $2 }'
|
||||||
module_postprocess 0,976
|
module_postprocess 0,976
|
||||||
|
module_description Meminfo postprocess
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
module_begin
|
module_begin
|
||||||
module_name proctotal
|
module_name proctotal
|
||||||
module_type generic_data
|
module_type generic_data
|
||||||
module_exec ps -A | wc -l
|
module_exec ps -A | wc -l
|
||||||
|
module_description Total processes
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
# Process information
|
# Process information
|
||||||
@ -143,6 +146,7 @@ module_begin
|
|||||||
module_name sshDaemon
|
module_name sshDaemon
|
||||||
module_type generic_proc
|
module_type generic_proc
|
||||||
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
|
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
|
||||||
|
module_description Monitor SSH Daemon
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
# Async data example
|
# Async data example
|
||||||
@ -151,6 +155,7 @@ module_begin
|
|||||||
module_name LastLogin
|
module_name LastLogin
|
||||||
module_type async_string
|
module_type async_string
|
||||||
module_exec last | head -1
|
module_exec last | head -1
|
||||||
|
module_description Last Login
|
||||||
module_end
|
module_end
|
||||||
|
|
||||||
# Plugin example
|
# Plugin example
|
||||||
|
Loading…
x
Reference in New Issue
Block a user