| 1 |
|
/* |
| 2 |
|
* i-scream central monitoring system |
| 3 |
< |
* http://www.i-scream.org.uk |
| 3 |
> |
* http://www.i-scream.org |
| 4 |
|
* Copyright (C) 2000-2002 i-scream |
| 5 |
|
* |
| 6 |
|
* This program is free software; you can redistribute it and/or |
| 26 |
|
#include <string.h> |
| 27 |
|
#include <sys/types.h> |
| 28 |
|
#include <sys/socket.h> |
| 29 |
+ |
#include <sys/ioctl.h> |
| 30 |
|
#include <unistd.h> |
| 31 |
|
#include <stdlib.h> |
| 32 |
|
#include <ukcprog.h> |
| 414 |
|
machine_data_list->diskio_data_list=NULL; |
| 415 |
|
*md=machine_data_list; |
| 416 |
|
num_hosts++; |
| 417 |
+ |
} else { |
| 418 |
+ |
xmlFree(hostname); |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
/* Now we want to pull out the data */ |
| 974 |
|
printf(" default: %s\n", DEF_SERVER_NAME); |
| 975 |
|
printf(" -p Specifies the i-scream server port.\n"); |
| 976 |
|
printf(" default: %d\n", DEF_SERVER_PORT); |
| 977 |
< |
printf(" -l Sets the list of hosts to monitor in a semi-colon seperated list.\n"); |
| 977 |
> |
printf(" -l Sets the list of hosts to monitor in a semi-colon separated list.\n"); |
| 978 |
|
printf(" -h Displays this help information.\n"); |
| 979 |
|
printf("\nReport bugs to <%s>.\n", PACKAGE_BUGREPORT); |
| 980 |
|
exit(1); |
| 1102 |
|
machine_list=strdup(optarg); |
| 1103 |
|
break; |
| 1104 |
|
case 'h': |
| 1105 |
+ |
default: |
| 1106 |
|
usage(); |
| 1107 |
|
break; |
| 1108 |
|
} |