Revision: 228 Author: martin2812 Date: Sat Aug 28 08:45:19 2010 Log: [No log message] http://code.google.com/p/monit/source/detail?r=228
Modified: /trunk/xml.c ======================================= --- /trunk/xml.c Thu Aug 26 12:31:40 2010 +++ /trunk/xml.c Sat Aug 28 08:45:19 2010 @@ -98,14 +98,17 @@ if (E) { status_event(E, &B); } else { - Util_stringbuffer(&B, "<services>"); + if (V == 2) + Util_stringbuffer(&B, "<services>"); for (S = servicelist_conf; S; S = S->next_conf) status_service(S, &B, L, V); - Util_stringbuffer(&B, "</services>"); - Util_stringbuffer(&B, "<servicegroups>"); - for (SG = servicegrouplist; SG; SG = SG->next) - status_servicegroup(SG, &B, L); - Util_stringbuffer(&B, "</servicegroups>"); + if (V == 2) { + Util_stringbuffer(&B, "</services>" + "<servicegroups>"); + for (SG = servicegrouplist; SG; SG = SG->next) + status_servicegroup(SG, &B, L); + Util_stringbuffer(&B, "</servicegroups>"); + } } document_foot(&B); _______________________________________________ monit-dev mailing list monit-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/monit-dev