From eabfff37538c2789014189a21c34171b0c098f16 Mon Sep 17 00:00:00 2001 From: slerena Date: Sun, 8 Oct 2023 17:03:21 +0000 Subject: [PATCH] Fixed disk status (Crit/Warn), added some sample modules --- pandora_agents/unix/Darwin/pandora_agent.conf | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/pandora_agents/unix/Darwin/pandora_agent.conf b/pandora_agents/unix/Darwin/pandora_agent.conf index 44f909aee8..46a654561f 100644 --- a/pandora_agents/unix/Darwin/pandora_agent.conf +++ b/pandora_agents/unix/Darwin/pandora_agent.conf @@ -239,8 +239,34 @@ module_exec df -kh / | tail -1 | awk '{ print 100-$5 }' module_max 100 module_min 0 module_description Free disk Percentage of root partition -module_min_warning 70 -module_max_warning 90 -module_min_critical 91 -module_max_critical 100 +module_min_warning 10 +module_max_warning 20 +module_min_critical 0 +module_max_critical 10 module_end + +# Sample modules to check connectivity from your mac +#module_begin +#module_name Packet_loss +#module_type generic_data +#module_exec ping 8.8.8.8 -c 5 | grep "packet loss" | cut -d " " -f 7 | grep -o "[0-9\.]*" +#module_end + +#module_begin +#module_name Internet_Latency +#module_type generic_data +#module_exec ping -c 1 8.8.8.8 | grep "time"| cut -f 4 -d "=" | grep -o "[0-9\.]*" +#module_end + +#module_begin +#module_name Internet_check +#module_type generic_proc +#module_exec ping 8.8.8.8 -c 2 | grep "2 packets received" | wc -l +#module_end + +# Check a running process +#module_begin +#module_name Cyberduck +#module_type generic_proc +#module_exec ps aux | grep cyberduck | grep -v grep | wc -l +#module_end