NPC - N2C error and kudos
Moderators: Developers, Moderators
NPC - N2C error and kudos
I just got npc running on ubuntu 8.10. Took some tweeks but Man! what a nifty but of coding!
Thanks!!
Cacti is 8.7n
NPC is 2.0.0b
Browser IE 7.0.6
N2C is not working. I am yet to find "Templat" icon near hosts/hostgroups
If I click on the N2C link, I see a blank window. If I click on any other link and then click N2C again, I get a script error.
"
Line: 18827
Char: 13
Error: 'Ext.Fly()' is null or not an object
Code: 0
URL: http://pathto cacti/plugins/npc/npc.php?module=layoutDev&action=drawLayout
I'd appreciate any ideas for correcting.
Thanks!!
Cacti is 8.7n
NPC is 2.0.0b
Browser IE 7.0.6
N2C is not working. I am yet to find "Templat" icon near hosts/hostgroups
If I click on the N2C link, I see a blank window. If I click on any other link and then click N2C again, I get a script error.
"
Line: 18827
Char: 13
Error: 'Ext.Fly()' is null or not an object
Code: 0
URL: http://pathto cacti/plugins/npc/npc.php?module=layoutDev&action=drawLayout
I'd appreciate any ideas for correcting.
I have a similar issue. When I click on the N2C link I get a blank screen. All other screens work fine and I am able to see the Nagios data.
Cacti Version - 0.8.7b
Plugin Architecture - 2.1
Poller Type - Cactid v
Server Info - Linux 2.6.27-7-server
Web Server - Apache/2.2.9 (Ubuntu) mod_auth_kerb/5.3 PHP/5.2.6-2ubuntu4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
PHP - 5.2.6-2ubuntu4
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, mysql, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.67-0ubuntu6
RRDTool - 1.2.28
SNMP - 5.4.1
Plugins
- Global Plugin Settings (settings - v0.5)
Host Info (hostinfo - v0.2)
Network Discovery (discovery - v0.8.4)
- Attachments
-
- blank n2c screen
- cacti-n2c-error.jpg (54.57 KiB) Viewed 6557 times
-
- Posts: 1
- Joined: Tue Jul 11, 2006 11:45 am
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
No ideas off the top of my head but after making a bunch of performance enhancements I noticed some other issues with n2c as well. I will take a look at it and see what I can come up with.
On a side note I wrote a perl version of N2C which I have running from cron every 5 minutes. Now when I add a host to nagios it is auto added to cacti. All the default graphs that I specify in the config are added as well and start trending immediately. Its a very hands off approach that I like so I have not been using the n2c that is built into NPC lately. If there is interest in this script post here and I will end-user-a-fy it
Cheers,
Billy
On a side note I wrote a perl version of N2C which I have running from cron every 5 minutes. Now when I add a host to nagios it is auto added to cacti. All the default graphs that I specify in the config are added as well and start trending immediately. Its a very hands off approach that I like so I have not been using the n2c that is built into NPC lately. If there is interest in this script post here and I will end-user-a-fy it
Cheers,
Billy
-
- Posts: 9
- Joined: Tue Aug 30, 2005 9:44 am
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
Ok cool. I have a few custom methods that are very specific to my environment in this script but I should be able to make it a lot more generic pretty easily. Let me hack at it a bit and I will post or send to you.spdrmonkey wrote:I would personally be very interested in your perl n2c script.
Cheers,
Billy
I would also like to use a copy of your perl script. I was able to import my linux hosts with N2C fine but when I try to import my windows hosts it gets stuck with the message "Importing 1 of 30 hosts" and does not complete the import process.
I am running FC10, cacti 0.8.7c, nagios 3.0.6, ndoutils-1.4b7, npc-2.0.0b.182
Here are the errors in the httpd log:
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 54, referer: http://cacti.domainnamel.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 102, referer: http://cacti.domainname.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 102, referer: http://cacti.domainname.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 102, referer: http://cacti.domainname.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 162, referer: http://cacti.domainname.com/index.php
Thanks for any help. Nice work on the plugin!
I am running FC10, cacti 0.8.7c, nagios 3.0.6, ndoutils-1.4b7, npc-2.0.0b.182
Here are the errors in the httpd log:
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 54, referer: http://cacti.domainnamel.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 102, referer: http://cacti.domainname.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 102, referer: http://cacti.domainname.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 102, referer: http://cacti.domainname.com/index.php
[Tue Apr 07 08:32:35 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: action in /usr/local/cacti-0.8.7c/include/top_graph_header.php on line 162, referer: http://cacti.domainname.com/index.php
Thanks for any help. Nice work on the plugin!
- divagater
- Cacti User
- Posts: 191
- Joined: Wed Nov 17, 2004 5:22 pm
- Location: Chapel Hill, NC.
- Contact:
No, becuz ima slackertherockyb wrote:Hi Divagater,
Is there any place where your n2c perl replacement script can be downloaded ?
Thank you
When I get into the office this morning I will post a link to it. I have not 'consumerized' it, so that means be prepared for it not to work out of the box but with a little tweaking it should be fine. Mine runs from a cron every 30 minutes and it automatically adds hosts to cacti as well as setting up some default graphs.
The re-write of N2C that I do in NPC will be based off this script but built into the UI.
Cheers,
Billy
[url=http://forums.cacti.net/viewtopic.php?t=26540][b]NPC 2.0.4[/b][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
[url=http://trac2.assembla.com/npc][size=75]Trac[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=defect][size=75]Bugs[/size][/url] | [url=http://trac2.assembla.com/npc/newticket?type=enhancement][size=75]Requests[/size][/url]
Who is online
Users browsing this forum: No registered users and 1 guest