:
This is a manual which helps you to monitor HP-UX based devices using Pandora FMS.
Module data
1. CPU user
module_begin module_name CPU User module_type generic_data module_exec vmstat 1 2 | tail -1 | awk '{ print $17 }' | tr -d “\n” module_max 100 module_min 0 module_description CPU (%) use by user module_end
2. CPU system
module_begin module_name CPU System module_type generic_data module_cpuusage all module_max 100 module_min 0 module_description CPU (%) used by system module_end
3. Virtual Mem Free
module_begin module_name Virtual Mem Free module_type generic_data module_exec swapinfo | grep memory | tr -d "%" | awk '{ print 100-$5 }' | tr -d “\n” module_max 100 module_min 0 module_description % Virtual mem free module_end
4. Physical Mem Free
module_begin module_name Physical Mem Free module_type generic_data module_freepercentmemory module_description % Physical mem free module_end
5. Free swap
module_begin module_name Free swap module_type generic_data module_exec swapinfo -t | grep memory | tr -d "%" | awk '{ print 100-$5 }' | tr -d “\n” module_description Free swap module_end
6. Services
module_begin module_name Service xxx module_type generic_proc module_service xxx module_description Service xxx module_end
7. Free disk
module_begin module_name Disco_Libre module_type generic_data module_freepercentdisk / module_description Free disk module_end
8. Used disk
module_begin module_name Used disk xxx module_type generic_data module_occupiedpercentdisk /xxx module_description % used disk module_end
9. Number processes
module_begin module_name Number processes module_type generic_data module_exec echo $(((`ps -e | wc -l`)-1)) | tr -d “\n” module_description Total processes module_end
10. Zombie processes
module_begin module_name Zombie processes module_type generic_data module_exec ps -elf | awk '$2~/'Z'/{print $2}' | wc -l | tr -d “\n” module_description Zombie processes module_end
11. Instances xntpd
module_begin module_name Instances xntpd module_type generic_data module_exec ps -elf | grep "xntpd" | wc -l | tr -d "\n" module_description Instances xntpd module_end
Files:
(Visited 175 times, 1 visits today)