[Nagios-devel] Host/Hostgroups members
Posted: Thu Mar 25, 2004 12:32 pm
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to [email protected] for more info.
---849969675-1957634439-1080246591=:19218
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID:
After playing with the new hostgroup option in the host definations object
I noticed that when you do not define and hosts in the hostgroup object
that nagios adds the name of the hostgroup as a member. Attached is a very
small patch to correct this.
Thanks,
-Dale
---849969675-1957634439-1080246591=:19218
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="2.0a1-xdata.patch"
Content-Transfer-Encoding: BASE64
Content-ID:
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="2.0a1-xdata.patch"
LS0tIHhkYXRhL3hvZHRlbXBsYXRlLmMub3JpZyAgICBUaHUgTWFyIDI1IDE4
OjA0OjA1IDIwMDQNCisrKyB4ZGF0YS94b2R0ZW1wbGF0ZS5jIFRodSBNYXIg
MjUgMTg6MDU6MDcgMjAwNA0KQEAgLTY0MDgsNyArNjQwOCw3IEBADQogDQog
ICAgICAgICAgICAgICAgICAgICAgICAvKiBhZGQgdGhpcyBsaXN0IHRvIHRo
ZSBob3N0Z3JvdXAgbWVtYmVycyBkaXJlY3RpdmUgKi8NCiAgICAgICAgICAg
ICAgICAgICAgICAgIGlmKHRlbXBfaG9zdGdyb3VwLT5tZW1iZXJzPT1OVUxM
KQ0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZW1wX2hvc3Rn
cm91cC0+bWVtYmVycz1zdHJkdXAodGVtcF9wdHIpOw0KKyAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICB0ZW1wX2hvc3Rncm91cC0+bWVtYmVycz1z
dHJkdXAodGVtcF9ob3N0LT5ob3N0X25hbWUpOw0KICAgICAgICAgICAgICAg
ICAgICAgICAgZWxzZXsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgbmV3X21lbWJlcnM9KGNoYXIgKilyZWFsbG9jKHRlbXBfaG9zdGdyb3Vw
LT5tZW1iZXJzLHN0cmxlbih0ZW1wX2hvc3Rncm91cC0+bWVtYmVycykrc3Ry
bGVuKHRlbXBfaG9zdC0+aG9zdF9uYW1lKSsyKTsNCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgaWYobmV3X21lbWJlcnMhPU5VTEwpew0K
---849969675-1957634439-1080246591=:19218--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to [email protected] for more info.
---849969675-1957634439-1080246591=:19218
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID:
After playing with the new hostgroup option in the host definations object
I noticed that when you do not define and hosts in the hostgroup object
that nagios adds the name of the hostgroup as a member. Attached is a very
small patch to correct this.
Thanks,
-Dale
---849969675-1957634439-1080246591=:19218
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="2.0a1-xdata.patch"
Content-Transfer-Encoding: BASE64
Content-ID:
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="2.0a1-xdata.patch"
LS0tIHhkYXRhL3hvZHRlbXBsYXRlLmMub3JpZyAgICBUaHUgTWFyIDI1IDE4
OjA0OjA1IDIwMDQNCisrKyB4ZGF0YS94b2R0ZW1wbGF0ZS5jIFRodSBNYXIg
MjUgMTg6MDU6MDcgMjAwNA0KQEAgLTY0MDgsNyArNjQwOCw3IEBADQogDQog
ICAgICAgICAgICAgICAgICAgICAgICAvKiBhZGQgdGhpcyBsaXN0IHRvIHRo
ZSBob3N0Z3JvdXAgbWVtYmVycyBkaXJlY3RpdmUgKi8NCiAgICAgICAgICAg
ICAgICAgICAgICAgIGlmKHRlbXBfaG9zdGdyb3VwLT5tZW1iZXJzPT1OVUxM
KQ0KLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZW1wX2hvc3Rn
cm91cC0+bWVtYmVycz1zdHJkdXAodGVtcF9wdHIpOw0KKyAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICB0ZW1wX2hvc3Rncm91cC0+bWVtYmVycz1z
dHJkdXAodGVtcF9ob3N0LT5ob3N0X25hbWUpOw0KICAgICAgICAgICAgICAg
ICAgICAgICAgZWxzZXsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgbmV3X21lbWJlcnM9KGNoYXIgKilyZWFsbG9jKHRlbXBfaG9zdGdyb3Vw
LT5tZW1iZXJzLHN0cmxlbih0ZW1wX2hvc3Rncm91cC0+bWVtYmVycykrc3Ry
bGVuKHRlbXBfaG9zdC0+aG9zdF9uYW1lKSsyKTsNCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgaWYobmV3X21lbWJlcnMhPU5VTEwpew0K
---849969675-1957634439-1080246591=:19218--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]