Nagios Plugin for Cacti (NPC) Released

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
tarpat1
Posts: 17
Joined: Sun Jan 01, 2006 11:39 pm

Post by tarpat1 »

I have it running, sort of, with 2.10 which is the current stable version of Nagios. But I am still experiencing the errors of only hosts are displaying ever since the upgrade to Cacti 0.87.
padawan
Posts: 25
Joined: Fri Nov 30, 2007 4:54 am

Post by padawan »

so i have to install nagios2.0b4 and it will works good ?
myfreeke
Cacti User
Posts: 82
Joined: Tue Dec 04, 2007 10:24 pm

Post by myfreeke »

i make error
[root@test module]# make
gcc -g -O2 -Wall -o inserter.o inserter.c -shared -I../include -I/usr/local/mysql/include -lmysqlclient -fPIC
inserter.c:43:25: mysql/mysql.h: 没有那个文件或目录
inserter.c:44:26: mysql/errmsg.h: 没有那个文件或目录
In file included from ../include/nebcallbacks.h:28,
from inserter.c:48:
../include/config.h:29:1: warning: "_GNU_SOURCE" redefined
inserter.c:40:1: warning: this is the location of the previous definition
../include/config.h:203:18: glib.h: 没有那个文件或目录
inserter.c:96: error: syntax error before "mysql"
inserter.c:96: warning: type defaults to `int' in declaration of `mysql'
inserter.c:96: warning: data definition has no type or storage class
inserter.c: In function `nebmodule_init':
inserter.c:137: error: too few arguments to function `schedule_new_event'
inserter.c:139: warning: implicit declaration of function `mysql_init'
inserter.c:143: warning: implicit declaration of function `mysql_real_connect'
inserter.c:144: warning: implicit declaration of function `mysql_error'
inserter.c:144: warning: format argument is not a pointer (arg 3)
inserter.c: In function `nebmodule_deinit':
inserter.c:162: warning: implicit declaration of function `deschedule_event'
inserter.c:166: warning: implicit declaration of function `mysql_close'
inserter.c: In function `loadconfig':
inserter.c:292: error: `hostgroupmember' undeclared (first use in this function)
inserter.c:292: error: (Each undeclared identifier is reported only once
inserter.c:292: error: for each function it appears in.)
inserter.c:292: error: `hgm' undeclared (first use in this function)
inserter.c:347: error: `servicegroupmember' undeclared (first use in this function)
inserter.c:347: error: `sgm' undeclared (first use in this function)
inserter.c: In function `querify':
inserter.c:911: warning: implicit declaration of function `mysql_real_escape_string'
inserter.c: In function `sql_dump':
inserter.c:1066: warning: implicit declaration of function `mysql_real_query'
inserter.c:1067: warning: implicit declaration of function `mysql_errno'
inserter.c:1067: warning: format argument is not a pointer (arg 2)
inserter.c:1078: warning: format argument is not a pointer (arg 3)
make: *** [all] 错误 1
myfreeke
Cacti User
Posts: 82
Joined: Tue Dec 04, 2007 10:24 pm

Post by myfreeke »

anybody help me solve my question?
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Hold out for new version of NPC

Post by divagater »

myfreeke, if you can hold out just a little longer I have (after 2 years) a completely re-written version of NPC coming. The new version uses ndo2db to get data from Nagios to the database. Because ndo2db is written by the Nagios developers it will be much better supported.

I already have a lot done with the new version so hang in there and look for an anouncement for NPC 2 in a couple weeks.

Cheers,
Billy
tarpat1
Posts: 17
Joined: Sun Jan 01, 2006 11:39 pm

Post by tarpat1 »

Thats great news, we were just about to abandon use of NC since we were having issues with it but I will hold out for the new version!
morla
Posts: 3
Joined: Tue Feb 05, 2008 11:07 pm

No services or host on NPC page

Post by morla »

Im just starting with NPC installed everything ok, inserter and everything.

Everything works fine except that services and host dont get displayed on the NPC page.

Any suggestions.

Thanks

P.S. Great project hope someone continue the work .
morla
Posts: 3
Joined: Tue Feb 05, 2008 11:07 pm

No host or services on NPC tab

Post by morla »

Im using mysql 5 on a centos box.
Im looking into mysql compatibility mode. To correct my problems.

Any suggestions, please HELP ME!!!

I can't downgrade to mysql 4.x, what can I do?

Thanks
jeffreak
Posts: 5
Joined: Wed Feb 06, 2008 8:28 am

Post by jeffreak »

make a seperate topic
Last edited by jeffreak on Wed Feb 06, 2008 10:53 am, edited 1 time in total.
dswinford
Posts: 10
Joined: Fri Nov 09, 2007 3:54 pm

Post by dswinford »

Anyone have word on the "new version of NPC comming?"
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

WORD


any? 8)
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

Just posted about the new version of NPC here: http://forums.cacti.net/viewtopic.php?p=126873

This thread should be retired :)

Cheers,
Billy
doudou
Posts: 2
Joined: Thu Dec 11, 2008 9:49 am

NPC 2.0.0b

Post by doudou »

hello everybody

i would like to know if it's possible to install and do work
Nagios 2.9 + NPC on Cacti 0.87b

my configurtion :

Nagios 2.9 on linux server Red Hat
Cacti 0.87b
Pluing Architecture 2.1

i would like to install NPC's pluging but i have anormal reaction.

the plugin management show me : "last scaned : never"

That why my question : Nagios 2.9 and NPC 2.0.0b plugin on Cacti 0.87b it is compatble ?

thank for your anwser

Eddy
adelgado
Posts: 2
Joined: Fri Dec 28, 2007 3:54 am

Post by adelgado »

Hi,

In our current nagios installation we use notes_url and action_url so 24x7 operators can read some information related to each alert. We use it a lot and this is a mandatory requierement for us.

NPC doesn't show this info, but I've managed to add these fields at the bottom of the service detail screen (see attached screenshot).

The point is that I'm not able to insert an hyperlink or make this URL 'clickable'... I would like to open the URL in a new window or browser tab... Is it possible? Any advice?

Thanks in advance.
Attachments
notes_action_url.jpg
notes_action_url.jpg (136.56 KiB) Viewed 5939 times
pretender01
Posts: 3
Joined: Thu Jun 18, 2009 11:19 am

Post by pretender01 »

Hello,

I have installed nagios, cacti and npc and all works good but i don't know how i can use data from nagios to make graph in cacti .

I have look for many hours and i have found nothing about this probleme, can you help me please !!

Thanks

best regards
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests