[Nagios-db-devel] RE: [Nagios-devel] Reporting Trends on a Host Group
Status: Beta
Brought to you by:
bench23
From: Ben <be...@si...> - 2005-02-23 20:37:37
|
Not really, but then, I didn't do the mysql NEB. Perhaps Matthew Kent can chime in about his baby..... On Wed, 23 Feb 2005, Winkles, William (Bill) wrote: > Ben, > > I grabbed makefile and inserter.c from neb/mysql in the Nagios-DB CVS > repository. I edited the makefile to point to my nagios-source/include > directory and I pointed it to my mysql include directory. When I run make, > I keep getting: > > gcc -g -O2 -Wall -o inserter.o inserter.c -shared > -I/export/home/billy/nagios-2. > 0b2/include -I/usr/local/mysql/include -lmysqlclient -fPIC > inserter.c: In function `loadconfig': > inserter.c:182: warning: implicit declaration of function `asprintf' > Text relocation remains referenced > against symbol offset in file > <unknown> 0x1f8 > /usr/local/lib/gcc/sparc-sun-sol > aris2.9/3.4.1/../../../libmysqlclient.a(libmysql.o) > <unknown> 0x1fc > /usr/local/lib/gcc/sparc-sun-sol > aris2.9/3.4.1/../../../libmysqlclient.a(libmysql.o) > <unknown> 0x200 > /usr/local/lib/gcc/sparc-sun-sol > aris2.9/3.4.1/../../../libmysqlclient.a(libmysql.o) > > And it just keeps scrolling. > > Any ideas? > > > Thanks again. > > Bill > > > -----Original Message----- > From: Ben [mailto:be...@si...] > Sent: Wednesday, February 23, 2005 12:35 PM > To: Winkles, William (Bill) > Subject: RE: [Nagios-devel] Reporting Trends on a Host Group > > Oh. heh. I didn't really go into too much detail there, did I? Go to > neb/mysql/, see if the makefile needs to be modified for your system, and > run make. It should compile the neb into an inserter.o file, which you > then place somewhere (I keep it with the nagios executable), and then you > configure nagios to load that file as a neb. Make sense? > > On Wed, 23 Feb 2005, Winkles, William (Bill) wrote: > > > > > Ben, > > > > That is the problem. Where can I find some details about compiling neb? > > > > Thanks. > > > > Bill > > > > > > -----Original Message----- > > From: Ben [mailto:be...@si...] > > Sent: Wednesday, February 23, 2005 11:39 AM > > To: Winkles, William (Bill) > > Subject: RE: [Nagios-devel] Reporting Trends on a Host Group > > > > Did you configure the neb in nagios.cfg? For that matter, did you compile > > the neb? > > > > Note that the neb currently takes no arguments, so you'll have to hardcode > > > the database connection parameters into the neb. Look at > > nebmodule_init().... it should be pretty straightforward. > > > > On Wed, 23 Feb 2005, Winkles, William (Bill) wrote: > > > > > Ben, > > > > > > I am hoping you may be able to give me some direction here. > > > > > > I have compiled Nagios 2.0b2 with: > > > *** Configuration summary for nagios 2.0b2 02-09-2005 ***: > > > > > > General Options: > > > ------------------------- > > > Nagios executable: nagios > > > Nagios user/group: nagios,nagios > > > Command user/group: nagios,nagcmd > > > Embedded Perl: yes, with caching > > > Event Broker: yes > > > Install ${prefix}: /usr/local/nagios > > > Lock file: ${prefix}/var/nagios.lock > > > Init directory: /etc/init.d > > > Host OS: solaris2.9 > > > > > > Web Interface Options: > > > ------------------------ > > > HTML URL: http://localhost/nagios/ > > > CGI URL: http://localhost/nagios/cgi-bin/ > > > Traceroute (used by WAP): /usr/sbin/traceroute > > > > > > > > > I created a mysql 4.1 DB called nagios and created all the > > > Tables using the CSV schema.sql 1.3. > > > > > > I also installed php-4.3.10. > > > > > > Everything is up and running fine, but I am not sure how to make the NEB > > > start feeding my DB. It seems like I should be putting some PHP files > or > > a > > > directory on my web server, but I'm not exactly sure what to do from > here. > > > I see in the CSV repository that there is a Neb and UI directory, but I > > > don't know what I need to complete this. > > > > > > Any help is greatly appreciated. > > > > > > Thanks. > > > > > > Bill > > > > > > > > > > > > > > > -----Original Message----- > > > From: Ben [mailto:be...@si...] > > > Sent: Tuesday, February 22, 2005 2:24 PM > > > To: Winkles, William (Bill) > > > Cc: nag...@li... > > > Subject: RE: [Nagios-devel] Reporting Trends on a Host Group > > > > > > Sorry, no, it's Nagios 2 only. It does support mysql, though. > > > > > > On Tue, 22 Feb 2005, Winkles, William (Bill) wrote: > > > > > > > Ben, > > > > > > > > Thanks for the good info. I will start playing with this package > > tonight. > > > > > > > > I currently have Nagios 1.2 compiled with MySQL. I'm assuming that > this > > > > will work with 1.2, do you know? > > > > > > > > Thanks again. > > > > > > > > Bill > > > > > > > > -----Original Message----- > > > > From: Ben [mailto:be...@si...] > > > > Sent: Tuesday, February 22, 2005 2:01 PM > > > > To: Winkles, William (Bill) > > > > Cc: nag...@li... > > > > Subject: Re: [Nagios-devel] Reporting Trends on a Host Group > > > > > > > > I do this, but I'm running Nagios 2 with the Nagios-DB stuff. Because > > all > > > > the availability data is kept in SQL, it makes harvesting data for > such > > > > reports pretty easy. > > > > > > > > http://sourceforge.net/projects/nagios-db/ > > > > > > > > Nagios-DB was designed to replace the CGI interface, but it doesn't > > modify > > > > > > > them at all, so you could keep using them if you want, and just pull > > data > > > > out of the database when you want to run special reports. > > > > > > > > On Tue, 22 Feb 2005, Winkles, William (Bill) wrote: > > > > > > > > > All, > > > > > > > > > > > > > > > > > > > > I am interested in using the Nagios Reporting Trends on a host > group. > > I > > > > > understand that it would take some time to generate the graphs for > all > > > of > > > > > the hosts in the host group, but it seems better than manually doing > > it > > > 1 > > > > > host at a time. > > > > > > > > > > > > > > > > > > > > Has anyone done this in the past? It doesn't necessarily have to be > > > > > reported in the web interface. I could create the reports with an > > > > outputted > > > > > txt or csv file. > > > > > > > > > > > > > > > > > > > > Any help or suggestions are appreciated. > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > Bill > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |