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 sure this is a simple issue, but I'm not sure where to look, so I'm asking for some help.
I've got Cacti running nicely. I've got Nagios running nicely. I even have NPC running nicely. However, when I try to click on a graph from within NPC, I get the following error in my /var/log/httpd/error.log:
/var/www/html/graph_image.php' not found or unable to stat
Now, I know that the graph_image.php file is in the cacti directory - and I have a /var/www/html/cacti/graph_image.php file in place. But for some reason, my NPC setup is looking for everything in /var/www/html, instead of /var/www/html/cacti.
Any thoughts on this? What setting to I need to change to make NPC look in the correct directory?
script '/var/www/html/graph_image.php' not found or unable to stat, referer: http://skeeter/cacti/plugins/npc/npc.php?module=layoutDev&action=drawLayout
Is there somewhere else that I need to make the change?
Linegod wrote:By the looks of it, it has hard coded '/graph_image.php' in quite a few files. Changing that should solve your problem:
Yeah...you're right. Those are the only places that the graph_image.php shows up. So what could be the problem?
I can see all of my graphs when i click on the graphs tab, but when I try and click on the little graphs button in my host listing from within NPC, I get the error.
weird. My cacti/include/global.php file has the following line:
$config['url_path'] = "/cacti/";
And that appears to work just fine for everything else. Could it be something outside of the NPC plugin?
Linegod wrote:Not that I can see. Try grep'ing for 'graph_image' within the npc directory....
The weird thing is the changes I made had no affect on the results. Nothing I've done has made a difference.
Do the *.js files need to be re-read somehow? Is there a way to force that? or are they read in on the fly?
Or, again, is there somewhere else that I need to make a change?
- Todd
todd.seidenberg wrote:Yeah...you're right. Those are the only places that the graph_image.php shows up. So what could be the problem?
I can see all of my graphs when i click on the graphs tab, but when I try and click on the little graphs button in my host listing from within NPC, I get the error.
weird. My cacti/include/global.php file has the following line:
$config['url_path'] = "/cacti/";
And that appears to work just fine for everything else. Could it be something outside of the NPC plugin?
Linegod wrote:Not that I can see. Try grep'ing for 'graph_image' within the npc directory....
I initially had the same error as above. - script '/var/www/html/graph_image.php' not found or unable to stat.
I replaced all occurences of greaph_image.php, cleared the cache and finally the error went away. However, now when I try to map the graph, I see the following message in the http - errors -