- status = rrdc_connect (opt_daemon);
- if (status != 0)
- {
- rrd_set_error ("rrdc_connect failed with status %i.", status);
- return (-1);
- }
-
- status = rrdc_flush (argv[optind]);
- if (status != 0)
- rrd_set_error ("rrdc_flush (%s) failed with status %i.",
- argv[optind], status);
-
- rrdc_disconnect ();