Introducing SNMP4Nagios

Andre Heine andre at netdynamite.de
Mon Jan 30 11:45:58 CET 2006


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:)

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...

Which version of rrdtool do you prefer?

> SNMP4Nagios is a package of Nagios plugins which use SNMP to
> query hosts. While some of the plugins use standard MIBs, most
> are designed for vendor specific agents.
>
> Unlike other Nagios plugins, they are able to scan hosts for
> objects which can be monitored. Aditionally they can keep
> performance logs and draw plots of these using Tobias Oetiker's
> RRDTool.
>
> Currently devices by Brocade, Cisco, Compaq/HP and Network
> Appliance as well as computers running Microsoft Windows or
> Net-SNMP and uninterruptable power supplies are supported.
>
> For a complete list of plugins see "Features" at the SNMP4Nagios
> Home Page at http://snmp4nagios.sourceforge.net/

Greetings

Andre


-------------------------------------------------------
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
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list