On Monday 30 January 2006 11:45, Andre Heine wrote: > Hi Peter > > Am Sonntag, 29. Januar 2006 22:11 schrieb Peter Gritsch: > > The SNMP4Nagios project is proud to announce its first > > software release. > > Very nice:) Thank you!
> But I get some problems to compile it with RRDtool 1.2.11. > > gcc -O2 -I. `net-snmp-config --cflags` -ansi -pedantic -Wall > -D_GNU_SOURCE -DRRDDIR='"/usr/local/nagios/perflog/rrd"' > -DPNGDIR='"/usr/local/nagios/perflog/img"' -c -o rrdif.o rrdif.c > rrdif.c: In function ‘RRDGraph’: > rrdif.c:545: error: syntax error before ‘/’ token > rrdif.c:545:13: error: too many decimal points in number > rrdif.c:546: error: too few arguments to function ‘rrd_graph’ > rrdif.c:546: error: syntax error before ‘/’ token > make: *** [rrdif.o] Fehler 1 > > > The rrd.h wants this function signatur: > ------------------------------- > int rrd_graph(int, char **, char ***, int *, int *, FILE *, > double *, double *); > --------------------------------- > > Your call to rrd_graph in rrdif.c:545 is: > > --------------------------------- > chk = rrd_graph ( aParamCnt, aParams, &results, &w, &h ); > --------------------------------- > > I added this call to my rrdif.c, but I don't know whether it > works;( > > chk = rrd_graph (aParamCnt, aParams, &results, &w, &h, NULL, > NULL,NULL); > > Now, it compiles cleanly. But it's untested yet... I'll look into it ASAP. > Which version of rrdtool do you prefer? I've used 1.0.49 for developing. Did Tobi change the interface? [...] CU Peter -- Peter Gritsch mail: [EMAIL PROTECTED] web: http://snmp4nagios.sourceforge.net/ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
