Nagios Plugin for Cacti (NPC) Released
Moderators: Developers, Moderators
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 warning: implicit declaration of function `mysql_real_query'
inserter.c warning: implicit declaration of function `mysql_errno'
inserter.c warning: format argument is not a pointer (arg 2)
inserter.c warning: format argument is not a pointer (arg 3)
make: *** [all] 错误 1
[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 warning: implicit declaration of function `mysql_real_query'
inserter.c warning: implicit declaration of function `mysql_errno'
inserter.c warning: format argument is not a pointer (arg 2)
inserter.c warning: format argument is not a pointer (arg 3)
make: *** [all] 错误 1
- 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
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
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
No services or host on NPC page
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 .
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 .
No host or services on NPC tab
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
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
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
Just posted about the new version of NPC here: http://forums.cacti.net/viewtopic.php?p=126873
This thread should be retired
Cheers,
Billy
This thread should be retired
Cheers,
Billy
NPC 2.0.0b
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
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
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.
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 (136.56 KiB) Viewed 5939 times
-
- Posts: 3
- Joined: Thu Jun 18, 2009 11:19 am
Who is online
Users browsing this forum: No registered users and 0 guests