Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
russoisraeli
byrussoisraeli, October 30, 2009
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
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