64 |
|
if ( debug == 1 ){ |
65 |
|
std::cout << "Using Default Tolerance\n"; |
66 |
|
} // if |
67 |
< |
MaxFilterRetrys = 5; |
67 |
> |
MaxFilterRetrys = 1; |
68 |
|
} // if |
69 |
|
|
70 |
|
|
71 |
< |
std::cout << "Configuring Alerter\n"; |
71 |
> |
// std::cout << "Configuring Alerter\n"; |
72 |
|
// Set the values at which the Alerter should kick in. and how many packets it should |
73 |
|
// send |
74 |
|
|
206 |
|
nextUDPTime = localTime + UDPUpdateTime; |
207 |
|
// package up the system data |
208 |
|
string host = config.getFQDN(); |
209 |
< |
string ip = (config.getSmallNet())->getHostIP(); |
209 |
> |
// string ip = (config.getSmallNet())->getHostIP(); |
210 |
|
|
211 |
|
string seq = ""; |
212 |
|
// char * buffer; |
216 |
|
string date = ""; |
217 |
|
sprintf(buffer,"%u", localTime); |
218 |
|
date = buffer; |
219 |
< |
string attributes = "type=\"data\" machine_name=\""+host+"\" date=\""+date+"\" seq_no=\""+seq+"\""; |
219 |
> |
string attributes = "type=\"data\" machine_name=\""+host+"\" ip=\"0.0.0.0\" date=\""+date+"\" seq_no=\""+seq+"\""; |
220 |
|
|
221 |
|
XMLFormatter xml("packet",attributes); |
222 |
|
// put in the data |