mirror of
https://github.com/aljazceru/zabbix.git
synced 2025-12-17 10:14:21 +01:00
exact match
This commit is contained in:
@@ -12,12 +12,12 @@ PORT="80"
|
|||||||
status="status"
|
status="status"
|
||||||
|
|
||||||
function query() {
|
function query() {
|
||||||
curl -s http://${HOST}:${PORT}/${status}?xml | grep "$1" | awk -F'>|<' '{ print $3}'
|
curl -s http://${HOST}:${PORT}/${status}?xml | grep "<$1>" | awk -F'>|<' '{ print $3}'
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# == 0 ]; then
|
if [ $# == 0 ]; then
|
||||||
echo $"Usage $0 {pool|process-manager|start-time|start-since|accepted-conn|listen-queue|max-listen-queue|listen-queue-len|idle-processes|active-processes|total-processes|max-active-processes|max-children-reached|slow-requests}"
|
echo $"Usage $0 {pool|process-manager|start-time|start-since|accepted-conn|listen-queue|max-listen-queue|listen-queue-len|idle-processes|active-processes|total-processes|max-active-processes|max-children-reached|slow-requests}"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
query "$1"
|
query "$1"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user