Come on folks, you heard the man, speak up! Wish I were a developer - I'd have this replacing our current THREE monitoring systems tomorrow...and who cares if the company just threw away a half-mill on them.divagater wrote: I can't promise any time frame on this. If there are any PHP/MySQL folks that are interested in helping speed this along I would be glad to collaborate.
~Billy
Nagios Plugin for Cacti (NPC) Released
Moderators: Developers, Moderators
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
ndo2db is a component of ndoutils. ndoutils can be found on the Nagios sourceforge page:julpie wrote:Who knows what ndo2db is?
http://sourceforge.net/project/showfile ... p_id=26589
Cheers,
Billy
NPC Nagios can not start
Hi,
I would like to install Nagios Plugin For Cacti.
(cacti-0.8.6h + Nagios 2.1 + NPC OS: Fedora Core 4 )
After some difficulties, I achieved to install all the components.
But when I tried to restart Nagios, I 've got this message in my log !
Nagios can not start.
NPC use Event Broker and I have configured the file nagios.cfg
Any ideas ?
Thanks,
Crocop_83
I would like to install Nagios Plugin For Cacti.
(cacti-0.8.6h + Nagios 2.1 + NPC OS: Fedora Core 4 )
After some difficulties, I achieved to install all the components.
But when I tried to restart Nagios, I 've got this message in my log !
Code: Select all
[1145976826] initializing nagios-db mysql inserter...
[1145976826] nagios-db: inserter locked into db
[1145976826] Event broker module '/usr/local/nagios/modules/inserter.o' initialized successfully.
[1145976826] Finished daemonizing... (New PID=16277)
[1145976869] Caught SIGTERM, shutting down...
NPC use Event Broker and I have configured the file nagios.cfg
Code: Select all
retain_state_information=0
event_broker_options=-1 and
broker_module=/path/to/nagios/modules/inserter.o
Thanks,
Crocop_83
Re: NPC Nagios can not start
crocop_83 wrote:Hi,
I would like to install Nagios Plugin For Cacti.
(cacti-0.8.6h + Nagios 2.1 + NPC OS: Fedora Core 4 )
After some difficulties, I achieved to install all the components.
But when I tried to restart Nagios, I 've got this message in my log !
Nagios can not start.Code: Select all
[1145976826] initializing nagios-db mysql inserter... [1145976826] nagios-db: inserter locked into db [1145976826] Event broker module '/usr/local/nagios/modules/inserter.o' initialized successfully. [1145976826] Finished daemonizing... (New PID=16277) [1145976869] Caught SIGTERM, shutting down...
NPC use Event Broker and I have configured the file nagios.cfgAny ideas ?Code: Select all
retain_state_information=0 event_broker_options=-1 and broker_module=/path/to/nagios/modules/inserter.o
Thanks,
Crocop_83
were there any errors when you compiled inserter.o? It pretty much has to be an inserter compile problem. Also, what platform are you on, and which nagios?
When I tried to compile inserter.c, I've got these errors :
So I had to change some variables declaration in the source code. Then I achieved to compile it.
Could it be the source of my problem ?
About the Nagios version, I use the 2.1, and Cacti-0.8.6h.
All the components are installed on Fedora Core 4 Operating system
Crocop_83
Code: Select all
inserter.c: In function `processCheck':
inserter.c:451: parse error before `char'
inserter.c:455: `safeName' undeclared (first use in this function)
inserter.c:455: (Each undeclared identifier is reported only once
inserter.c:455: for each function it appears in.)
inserter.c:470: parse error before `char'
inserter.c:476: `safeServiceDescription' undeclared (first use in this function)
inserter.c: In function `processStatus':
inserter.c:518: parse error before `char'
inserter.c:547: `safeName' undeclared (first use in this function)
inserter.c:556: `safeEventHandler' undeclared (first use in this function)
inserter.c:586: `safeHostCheckCommand' undeclared (first use in this function)
inserter.c:596: `safePerfData' undeclared (first use in this function)
inserter.c:688: `safePluginOutput' undeclared (first use in this function)
inserter.c:714: parse error before `char'
inserter.c:744: `safeServiceDescription' undeclared (first use in this function)
inserter.c:785: `safeServiceCheckCommand' undeclared (first use in this function)
make: *** [all] Erreur 1
Could it be the source of my problem ?
About the Nagios version, I use the 2.1, and Cacti-0.8.6h.
All the components are installed on Fedora Core 4 Operating system
Crocop_83
Yes, I compiled the inserter.c file in the Nagios source directory.
I follow the README.
I'm using gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113), I think that it can cause my trouble because I had to change some lines of code in inserter.c.
Does it exist a special command to avoid to get these error messages when I try to compile the inserter.c ?
(You could see the error message in my previous post)
Crocop_83
I follow the README.
Code: Select all
- Nagios Event Broker:
Edit the MySQL options on line 143 of /cacti/plugins/npc/neb/inserter.c. The parameters
for connecting to the Cacti database have to be hard coded right now. In the future
the parameters will be able to be passed in from Nagios.
Next, copy /cacti/plugins/npc/neb/inserter.c and /cacti/plugins/npc/neb/makefile
to module/ under your Nagios source directory. cd to the module directory and
run make. When make completes you should have a file called inserter.o. This is
the module that will be loaded by Nagios. Copy inserter.o to /path/to/nagios/modules.
Does it exist a special command to avoid to get these error messages when I try to compile the inserter.c ?
(You could see the error message in my previous post)
Crocop_83
NPC
Anyone remember the fix for this........
netstat:/home/Downloads/nagios-2.2/module# make
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
.........it seems you have to hardcode the inserter.c file with your Mysql connect items....what do i change the above too?? its failing??
THX>
netstat:/home/Downloads/nagios-2.2/module# make
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
.........it seems you have to hardcode the inserter.c file with your Mysql connect items....what do i change the above too?? its failing??
THX>
Re: NPC
I had this problem, and I replaced CLIENT_MULTI_STATEMENTS by 0, now it's running.spoonman wrote:Anyone remember the fix for this........
netstat:/home/Downloads/nagios-2.2/module# make
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
.........it seems you have to hardcode the inserter.c file with your Mysql connect items....what do i change the above too?? its failing??
THX>
npc project?
I would be interested in helping with this. Just drop me a message on how to contact you.divagater wrote: I can't promise any time frame on this. If there are any PHP/MySQL folks that are interested in helping speed this along I would be glad to collaborate.
Who is online
Users browsing this forum: No registered users and 2 guests