Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@russoisraeli
Favorites0
Views
Projects0
I have the same exact problem, so this really helped. Had to adjust it a bit, maybe to fit the recent version? Also, tweaked a bit to have line breaks between hosts/services.. Here are my cents: host_status.awk: 1c1 #!/bin/awk -f 30c30 /^[[:space:]]*host {[[:space:]]*$/ { 36c36 /^[[:space:]]*service {[[:space:]]*$/ { service_status.awk: 1c1 #!/bin/awk -f 30c30 /^[[:space:]]*host {[[:space:]]*$/ { 34c34 /^[[:space:]]*service {[[:space:]]*$/ { 36d35
Reviewed 16 years ago