Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
massie committed Jan 29, 2005
1 parent cd74621 commit 72f5857
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions monitor-core/gmond/g25_config.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* $Id$ */
#include <stdio.h>
#include <dotconf.h>
#include "ganglia.h"
#include "g25_config.h"

gmond_config_t gmond_config;
Expand Down Expand Up @@ -283,10 +284,10 @@ print_config(char *path, gmond_config_t *config)
{
fprintf(stdout, " access {\n ip=\"%s\"\n mask = 24\n action = \"allow\"\n }\n", p);
}
fprintf(stdout,"}\n");/* close acl */
}
fprintf(stdout,"}\n\n");


fprintf(stdout,"}\n\n"); /* close tcp_accept_channel */
fprintf(stdout,"%s\n", Ganglia_default_collection_groups());
return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions monitor-core/lib/ganglia.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ int Ganglia_gmetric_send( Ganglia_gmetric gmetric, Ganglia_udp_send_channels sen
void Ganglia_gmetric_destroy( Ganglia_gmetric gmetric );

void build_default_gmond_configuration(Ganglia_pool context);
char *Ganglia_default_collection_groups(void);



extern int gexec_errno;
Expand Down
10 changes: 10 additions & 0 deletions monitor-core/lib/libgmond.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ tcp_accept_channel { \n\
} \n\
\n\
\n\
"

#define COLLECTION_GROUP_LIST "\
/* The old internal 2.5.x metric array has been replaced by the following \n\
collection_group directives. What follows is the default behavior for \n\
collecting and sending metrics that is as close to 2.5.x behavior as \n\
Expand Down Expand Up @@ -424,10 +427,17 @@ collection_group { \n\
\n\
"

char *
Ganglia_default_collection_groups(void)
{
return COLLECTION_GROUP_LIST;
}

void
build_default_gmond_configuration(apr_pool_t *context)
{
default_gmond_configuration = apr_pstrdup(context, BASE_GMOND_CONFIGURATION);
default_gmond_configuration = apr_pstrcat(context, default_gmond_configuration, COLLECTION_GROUP_LIST, NULL);
#if SOLARIS
default_gmond_configuration = apr_pstrcat(context, default_gmond_configuration, SOLARIS_SPECIFIC_CONFIGURATION, NULL);
#endif
Expand Down

0 comments on commit 72f5857

Please sign in to comment.