1 /*****************************************************************************
2 * RRDtool 1.4.3 Copyright by Tobi Oetiker, 1997-2010
3 *****************************************************************************
4 * rrdupdate.c Main program for the (standalone) rrdupdate utility
5 *****************************************************************************
6 * $Id$
7 *****************************************************************************/
9 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
10 #include "../win32/config.h"
11 #else
12 #ifdef HAVE_CONFIG_H
13 #include "../rrd_config.h"
14 #endif
15 #endif
17 #include "rrd.h"
19 int main(
20 int argc,
21 char **argv)
22 {
23 rrd_update(argc, argv);
24 if (rrd_test_error()) {
25 printf("RRDtool " PACKAGE_VERSION
26 " Copyright by Tobi Oetiker, 1997-2008\n\n"
27 "Usage: rrdupdate filename\n"
28 "\t\t\t[--template|-t ds-name:ds-name:...]\n"
29 "\t\t\ttime|N:value[:value...]\n\n"
30 "\t\t\tat-time@value[:value...]\n\n"
31 "\t\t\t[ time:value[:value...] ..]\n\n");
33 printf("ERROR: %s\n", rrd_get_error());
34 rrd_clear_error();
35 return 1;
36 }
37 return 0;
38 }