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,7 +12,7 @@ PORT="80"
|
||||
status="status"
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user