Changeset 181


Ignore:
Timestamp:
03/12/10 09:05:48 (15 years ago)
Author:
ogrimm
Message:
Updated config request
Location:
Evidence
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Evidence/Alarm.cc

    r174 r181  
    5757
    5858  // Copy original list of servers to observe
    59   char *ServerNames = GetConfig(SERVER_NAME " servers");
     59  char *ServerNames = GetConfig("servers");
    6060  ServerList = new char [strlen(ServerNames)+1];
    6161  strcpy(ServerList, ServerNames);
     
    162162   
    163163    Alarm.UpdateAlarmSummary();
    164     sleep(atoi(Alarm.GetConfig(SERVER_NAME " period")));
     164    sleep(atoi(Alarm.GetConfig("period")));
    165165  }
    166166}
  • Evidence/DColl.cc

    r174 r181  
    105105
    106106  // Request configuration data
    107   DataDir = GetConfig(SERVER_NAME " datadir");
    108   SizeUpdateDelay = atoi(GetConfig(SERVER_NAME " sizeupdate"));
    109   HistDir = GetConfig(SERVER_NAME " histdir");
     107  DataDir = GetConfig("datadir");
     108  SizeUpdateDelay = atoi(GetConfig("sizeupdate"));
     109  HistDir = GetConfig("histdir");
    110110   
    111111  // Open log file
    112   char *Logname = GetConfig(SERVER_NAME " logfile");
     112  char *Logname = GetConfig("logfile");
    113113  if ((LogFile = fopen(Logname, "a")) == NULL) {
    114114    State(FATAL, "Could not open log file '%s' (%s)", Logname, strerror(errno));
     
    128128
    129129  // Count how many minimum change value regular expressions are present
    130   char *Change = GetConfig(SERVER_NAME " items");
     130  char *Change = GetConfig("items");
    131131  RegExCount = 0;
    132132  char *Token = strtok(Change, "\t ");
Note: See TracChangeset for help on using the changeset viewer.