Nagios Plugin for Cacti (NPC) Released

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
qeldroma
Posts: 8
Joined: Wed Nov 23, 2005 5:31 am

Post by qeldroma »

Hello together,

am i right, that this plugin only substitutes the Nagios-UI?
Meaning, i have to maintain TWO configurations for all devices/hosts?

Or does it integrate one of both in the other?

Kidn regards, Qedlroma
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

Yes, it is only a user interface substitute. Nagios is extremely good at determining host and service availability... no sense replacing it that I can see.

Cheers,
Billy
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

NPC Plugin

Post by farhan »

Hi All,

I am trying to compile inserter.c module. But it is giving me following

error.

gcc -g -O2 -Wall -o inserter.o inserter.c -shared -I../include -I/usr/include/mysql -lmysqlclient -lz -fPIC
/usr/bin/ld: cannot find -lmysqlclient

Even I installed mysql-devel rpm's. What can be the reason.

This is list of mysql rpm's

mysql-bench
mysql
mysql-server
mysql-devel

Thanks
Minupla
Posts: 1
Joined: Thu Nov 24, 2005 12:07 am

Post by Minupla »

Thank you for making my life so much easier. I was just starting an integration project when I saw your post.

Using it in test now.

Thanks again, will be eagerly tracking any enhancments :)

Minupla
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

Hi ,

That was my fault. Now it is working fine. But I could not find hostGroups.php and serviceGroups.php in npc directory. When I click HostGroups and ServiceGroups under NPC, it could not find these php files.

Thanks,
r_chetanjain
Cacti User
Posts: 83
Joined: Fri Aug 22, 2003 4:33 am

error with nagios 2.0b5...

Post by r_chetanjain »

I have installed nagios with event checker....when i copy both the files from npc/neb to nagios-src/module and run make...i get this error... can u help me..



gcc -g -O2 -Wall -o inserter.o inserter.c -shared -I../include -I/usr/include/mysql -lmysqlclient -fPIC
inserter.c: In function `nebmodule_init':
inserter.c:143: error: `CLIENT_MULTI_STATEMENTS' undeclared (first use in this function)
inserter.c:143: error: (Each undeclared identifier is reported only once
inserter.c:143: error: for each function it appears in.)
make: *** [all] Error 1


Chetan Jain
spica
Posts: 3
Joined: Fri Aug 26, 2005 7:17 pm
Location: Japan

good jpb

Post by spica »

i hope this plugin will include "nagios status map" function , near future

great thanks!!
BrettS
Posts: 24
Joined: Tue Feb 15, 2005 8:49 pm

Post by BrettS »

Installed a couple of days ago. Works like a treat.

Thanks for a Fantastic job

Brett Stevens
jlim0930
Posts: 40
Joined: Thu Oct 27, 2005 12:07 am

Post by jlim0930 »

any updates to have this working in solaris ?

i am still having problem with the inserter.c

it compiles but nagios will die when trying to run with inserter.o in the config file
rsalsa
Posts: 2
Joined: Fri Dec 02, 2005 2:36 am

Re: NPC Plugin

Post by rsalsa »

farhan, what was your issue? I'm getting the same error.

Oh, thanks for the excellent plugin divagater!
farhan wrote:Hi All,

I am trying to compile inserter.c module. But it is giving me following

error.

gcc -g -O2 -Wall -o inserter.o inserter.c -shared -I../include -I/usr/include/mysql -lmysqlclient -lz -fPIC
/usr/bin/ld: cannot find -lmysqlclient

Even I installed mysql-devel rpm's. What can be the reason.

This is list of mysql rpm's

mysql-bench
mysql
mysql-server
mysql-devel

Thanks
rsalsa
Posts: 2
Joined: Fri Dec 02, 2005 2:36 am

Post by rsalsa »

Figured it out. For anyone else who comes across this problem, try this:

gcc -g -O2 -Wall -o inserter.o inserter.c -shared -I../include -I/usr/include/mysql -lmysqlclient -fPIC -L/usr/lib/mysql
farhan
Posts: 47
Joined: Sat Nov 12, 2005 6:55 am

Post by farhan »

Hi rsala,

I had same issue and figuered out the same way which you did.

We have to issue following command

gcc -g -O2 -Wall -o inserter.o inserter.c -shared -L/usr/lib/mysql -I../include -I/usr/include/mysql -lmysqlclient -fPIC

Thanks,

Farhan
jlim0930
Posts: 40
Joined: Thu Oct 27, 2005 12:07 am

Post by jlim0930 »

divagater wrote:I verified that the inserter module will run in Nagios 2.0b5 on Linux / i386. Unfortunatley, I do not have access to Solaris to try and debug the issue any further.
if i can give you access to a solaris box would you be able to take a look at this ?

Thanks
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Nagios for Window / test / ../modules/inserter.o for Windows

Post by pepj »

Hi

I want to test Nagios under Windows but don't have a C compiler.

Has anybody a compiled /path/to/nagios/modules/inserter.o for Windows ?

ThX
Jean-Michel
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
Chester
Posts: 9
Joined: Wed Nov 16, 2005 1:12 pm

Re: error with nagios 2.0b5...

Post by Chester »

removed. User error. MySQL v4.1!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests