Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Network Management Integration Plugin ( v0.3.9a Build 129 )
Goto page Previous  1, 2, 3 ... 13, 14, 15, 16, 17  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
neovox



Joined: 02 Jan 2007
Posts: 18
Location: MI

PostPosted: Thu Jul 31, 2008 9:22 am    Post subject: NMIDPhpip - Import Syntax Reply with quote

When using the import feature on NMIDPhpip, what is order of the fields for the import file? For instance.

IP;LOCATION;NOTES

OR

IP;MASK;DESCRIPTION;CLIENT;ETC


And should it be comma delimited or semicolon as shown in a previous post in this thread.

Thanks and great plug-in.

M
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Fri Aug 01, 2008 2:48 am    Post subject: Reply with quote

It is actually:

Code:

IP;DESCRIPTION;CLIENT;NOTES


Nothing more, nothing less ...
Back to top
neovox



Joined: 02 Jan 2007
Posts: 18
Location: MI

PostPosted: Wed Aug 06, 2008 10:58 am    Post subject: Reply with quote

I'm having an issue where it seems the value for "IP RANGE" is not being set when a new CIDR is added. As a result no IP RANGE is displayed in the display.php output or appended to the url for the subnet. This causes an issues when using the Set Default feature, as the system doesn't have an iprange to reference.

I've been unable to determine where the system is inserting this value when the CIDR is added or where it's later is trying to reference it from. My table entries look pretty much the same for my 2 other CIDRs, where the IP RANGE is showing up.

Thanks.



example.GIF
 Description:
 Filesize:  6.76 KB
 Viewed:  1429 Time(s)

example.GIF


Back to top
neovox



Joined: 02 Jan 2007
Posts: 18
Location: MI

PostPosted: Thu Aug 07, 2008 11:46 am    Post subject: Reply with quote

ok. I think I figured this out, but phalek I'll need your input.

After a clean install of the plugin I added 3 CIDRs, two /24 and one /25. So far so good. I then added a /23. Once it added the CIDR, I added both /24 prefixes of the /23 as prompted. I deleted this /23 CIDR and added a different /26. At this point the IP RANGE entry (as shown in the previous graphic) was still showing up for the existing two /24 and the one /25, but not for the new /26.

The problem seems to be due to a mismatch between the NetID for this new subnet in the phpIP_addresses table and the AddressId in the phpIP_net_ips table. When a /23 is added the system assigns a separate AddressId to each /24 but only one NetID to the entire /23. As the two tables auto-increment going forward the NetID and AddressID for the newly entered subnets no longer match. The system can no longer find the IP RANGE for these networks and therefore cannot SET DEFAULTS. Once these values are off by one or more they continue to mismatch from that point on. If you manually set the AddressId to match the NetID it works as it should, but due to the auto-increment the next newly entered CIDR will be off again and need to be manually adjusted.
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Thu Aug 07, 2008 3:50 pm    Post subject: Reply with quote

Nice

I'm just wondering if those errors never occurred in the original phpIP tool ...

I'll have a look at this, but I guess I won't be able to until next week.
Back to top
neovox



Joined: 02 Jan 2007
Posts: 18
Location: MI

PostPosted: Fri Aug 08, 2008 6:44 am    Post subject: Reply with quote

cool. thanks for checkin' it out.
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Wed Aug 20, 2008 2:54 pm    Post subject: Reply with quote

Hi neovox,

I think I found that error.

Can you change the following line (line 91) in get_data.php:

Code:

$netAddress = db_fetch_cell("select netaddress from phpIP_net_ips where AddressId='".$leaf['NetID']."'");

to
Code:

$netAddress = db_fetch_cell("select netaddress from phpIP_net_ips where NetCidr='".$leaf['NetID']."'");


that should actually fix it,, at least I hope
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Wed Aug 20, 2008 2:59 pm    Post subject: Reply with quote

msw1970 wrote:

Called it with ./getSmokePingPath.pl

I've removed the lines at the top that relate to a windows file patch and confirmed that my perl is in /usr/bin/

If I run it from the command line both ways return Content-type: image/png


That's fine then, the script just returns a png image.Did you get it up and running by now ?

Sorry for not answering for quite some time. I'm away from home during the week and just bought myself a Netbook (Acer Aspire One 150x) to get myself online again ...
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Mon Sep 01, 2008 3:00 pm    Post subject: Reply with quote

Uploaded a new build 126. It contains the following changes:

* nmidPhpip - fixed a bug preventing the correct settings of "default" values for subnets
* nmidNagiosPNP - added plugin to display Nagios PNP graphs within Cacti. The plugin behaves like the nmidSmokeping plugin.
Back to top
neovox



Joined: 02 Jan 2007
Posts: 18
Location: MI

PostPosted: Wed Sep 03, 2008 2:34 pm    Post subject: Reply with quote

phalek,

Sorry for the delayed response. Looks like that mod worked to resolve my issue. Thanks again for looking into it.

Mike
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 153

PostPosted: Wed Oct 01, 2008 7:53 am    Post subject: Reply with quote

Hi

I'm having a bit of trouble with the TaskManager element of this plugin... Basically, I can add tasks from the main login screen but when I select the NMID TaskManager from the lefthand panel nothing appears and it seems there's no way of deleting tasks from the main screen!!
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Sun Oct 05, 2008 5:07 am    Post subject: Reply with quote

Hi msw1970 !

Going to have a look at this I probably just forgot to add some links
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Sun Oct 12, 2008 6:16 am    Post subject: Reply with quote

Hi msw1970

Did you add at least one group ?

Tasks can only be deleted via the "Manage Tasks" link in the NMID TaskMangaer section. But Tasks will only show up if at least one group is actually created.
Back to top
frasketi



Joined: 16 Sep 2008
Posts: 12

PostPosted: Tue Oct 21, 2008 10:10 am    Post subject: Smokeping images not displaying inline Reply with quote

I'm getting the same problems as above. My smokeping install is working, I have configured the cacti plugin. When I add a host to smokeping, I the graph is missing, but if I click on the magnifying glass, it takes me to the correct smokeping graph (within smokeping).

I'm stumped and frustrated, any help???

Here is the tail of /var/log/httpd/error_log which is interesting, but I have no idea where to proceed.

Code:

[Tue Oct 21 11:03:44 2008] [error] [client xx.xx.xx.xx] (2)No such file or directory: exec of '/var/www/cgi-bin/getSmokePingPath.pl' failed, referer: http://xx.xx.xx.xx/cacti2/graph_view.php?action=tree&tree_id=2&leaf_id=37
[Tue Oct 21 11:03:44 2008] [error] [client xx.xx.xx.xx] Premature end of script headers: getSmokePingPath.pl, referer: http://xx.xx.xx.xx/cacti2/graph_view.php?action=tree&tree_id=2&leaf_id=37
[Tue Oct 21 11:03:53 2008] [error] [client xx.xx.xx.xx script not found or unable to stat: /var/www/cgi-bin/cropper, referer: http://xx.xx.xx.xx/cgi-bin/smokeping.cgi?target=External.Va
[Tue Oct 21 11:03:53 2008] [error] [client xx.xx.xx.xx] script not found or unable to stat: /var/www/cgi-bin/cropper, referer: http://xx.xx.xx.xx/cgi-bin/smokeping.cgi?target=External.Va
[Tue Oct 21 11:03:53 2008] [error] [client xx.xx.xx.xx] script not found or unable to stat: /var/www/cgi-bin/cropper, referer: http://xx.xx.xx.xx/cgi-bin/smokeping.cgi?target=External.Va
[Tue Oct 21 11:03:53 2008] [error] [client xx.xx.xx.xx] script not found or unable to stat: /var/www/cgi-bin/cropper, referer: http://xx.xx.xx.xx/cgi-bin/smokeping.cgi?target=External.Va
[Tue Oct 21 11:04:51 2008] [error] [client xx.xx.xx.xx] (2)No such file or directory: exec of '/var/www/cgi-bin/getSmokePingPath.pl' failed, referer: http://xx.xx.xx.xx/cacti2/graph_view.php?action=tree&tree_id=2&leaf_id=37
[Tue Oct 21 11:04:51 2008] [error] [client xx.xx.xx.xx] Premature end of script headers: getSmokePingPath.pl, referer: http://xx.xx.xx.xx/cacti2/graph_view.php?action=tree&tree_id=2&leaf_id=37
[Tue Oct 21 11:04:52 2008] [error] [client xx.xx.xx.xx] (2)No such file or directory: exec of '/var/www/cgi-bin/getSmokePingPath.pl' failed, referer: http://xx.xx.xx.xx/cacti2/graph_view.php?action=tree&tree_id=2&leaf_id=37
[Tue Oct 21 11:04:52 2008] [error] [client xx.xx.xx.xx] Premature end of script headers: getSmokePingPath.pl, referer: http://xx.xx.xx.xx/cacti2/graph_view.php?action=tree&tree_id=2&leaf_id=37



Thanks


phalek wrote:
right click on the boxes, and copy the url to the image. Then paste that url into your browser and let it show up. It should bring back some more errors ... I hope


Code:
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 162
Location: Kressbronn, Germany

PostPosted: Tue Oct 21, 2008 3:07 pm    Post subject: Reply with quote

Hm, that sounds like it can't find the perl interpreter of the script "/var/www/cgi-bin/getSmokePingPath.pl"

The first two lines of that script actually has the windows path and the linux path in it. AS you're using Linux, you should make sure the Linux one is at the very top of that script.
Execute the following on the shell to know the right path to your perl installation:

Code:

which perl


It should give you the following

Code:

/usr/bin/perl


so the very first line of the above script should be

Code:

#!/usr/bin/perl


depending on what "which perl" returns ...

In addition you can call that perl script from the comand line:

Code:

perl /var/www/cgi-bin/getSmokePingPath.pl



It should provide you with some additional info.

Also make sure you actually did make that script executable:

Code:

chmod +x /var/www/cgi-bin/getSmokePingPath.pl


post here if you still got any errors.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 13, 14, 15, 16, 17  Next
Page 14 of 17

 



Powered by phpBB © 2001, 2005 phpBB Group