NPC - N2C error and kudos

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
zuvbir
Posts: 4
Joined: Wed Jan 21, 2009 4:22 pm

NPC - N2C error and kudos

Post by zuvbir »

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.
patas75
Posts: 2
Joined: Fri Jan 23, 2009 6:34 pm

Post by patas75 »

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
blank n2c screen
cacti-n2c-error.jpg (54.57 KiB) Viewed 6559 times
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

Hi zuvbir. Thanks for the kudos. I will get an ubuntu vm setup and try to reproduce this. On my CentOS/Cacti 0.8.7b I do not see this issue but I will try to track it down.

Cheers,
Billy
drewdavis1
Posts: 1
Joined: Tue Jul 11, 2006 11:45 am

Post by drewdavis1 »

I am getting the same issue as well, everything else seems to be working fine. Any ideas?
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

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
spdrmonkey
Posts: 9
Joined: Tue Aug 30, 2005 9:44 am

Post by spdrmonkey »

I would personally be very interested in your perl n2c script. I have issues with N2C, not the same as above, I have hostgroups listed to be imported, I select the hostgroups, it lists the hosts that I added, but then there is nothing in cacti. Awesome plugin btw.
User avatar
divagater
Cacti User
Posts: 191
Joined: Wed Nov 17, 2004 5:22 pm
Location: Chapel Hill, NC.
Contact:

Post by divagater »

spdrmonkey wrote:I would personally be very interested in your perl n2c script.
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.

Cheers,
Billy
delgaty
Posts: 1
Joined: Tue Apr 07, 2009 9:25 am

Post by delgaty »

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!
therockyb
Posts: 3
Joined: Mon Jun 08, 2009 4:24 pm

Post by therockyb »

Hi Divagater,

Is there any place where your n2c perl replacement script can be downloaded ?

The n2c functionnality from npc 2.0.2 is not working for me and I would really like to have this work.

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

Post by divagater »

therockyb wrote:Hi Divagater,

Is there any place where your n2c perl replacement script can be downloaded ?

Thank you
No, becuz ima slacker :)

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]
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests