Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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.
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.
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 ...
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.
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!!
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.
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.
[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