Add items to monitor number of FD for squid

This commit is contained in:
Daniel Berteaud 2016-08-25 11:02:17 +02:00
parent 754f75600a
commit 91f2db6f71
1 changed files with 30 additions and 0 deletions

View File

@ -50,3 +50,33 @@ UserParameter=squid.cache_size_disk,squidclient mgr:info|grep 'Storage Swap size
UserParameter=squid.cache_size_mem,squidclient mgr:info|grep 'Storage Mem size:' | awk '{print $4}'
# Description: Squid FD limit
# Type: Agent or Agent (active)
# Key: squid.fd_max
# Type of information: Numeric (integer 64bits)
# Units: N/A
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.max_fd,squidclient mgr:info | grep 'Maximum number of file descriptors' | cut -d':' -f2 | tr -d ' \t'
# Description: Squid reserved FD
# Type: Agent or Agent (active)
# Key: squid.fd_reserved
# Type of information: Numeric (integer 64bits)
# Units: N/A
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.reserved_fd,squidclient mgr:info | grep 'Reserved number of file descriptors' | cut -d':' -f2 | tr -d ' \t'
# Description: Squid available FD
# Type: Agent or Agent (active)
# Key: squid.fd_available
# Type of information: Numeric (integer 64bits)
# Units: N/A
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.available_fd,squidclient mgr:info | grep 'Available number of file descriptors' | cut -d':' -f2 | tr -d ' \t'