Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Aug 16, 2017 12:44 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: nmidWebService Version 2 released - Remote Display of Gr
PostPosted: Tue May 27, 2014 3:00 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
The webservice password is under:

Console -> Settings -> NMID

Can you reach the following URL and does it display an XML syntax ?

http://192.168.0.28/cacti/plugins/nmidW ... e.php?wsdl

If not,do you have the "php-soap" module installed ?

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: nmidWebService Version 2 released - Remote Display of Gr
PostPosted: Thu May 29, 2014 3:44 pm 
Offline

Joined: Thu May 22, 2014 2:31 pm
Posts: 8
I was not able to get to it. I also did not have php-soap installed so I installed it and even rebooted my system. but still nothing comes up but a blank page.

Any thoughts
Thanks


Top
 Profile  
 
 Post subject: Re: nmidWebService Version 2 released - Remote Display of Gr
PostPosted: Mon Jun 02, 2014 11:34 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
check your php error log ( enable it via php.ini : error_log = syslog ) and check what's noted there.

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: nmidWebService Version 2 released - Remote Display of Gr
PostPosted: Wed Dec 10, 2014 9:37 am 
Offline

Joined: Wed Dec 10, 2014 9:35 am
Posts: 1
Hi,

I've succeeded to set up your plugin and work great but, the quality of the graph is poor, how it could be raised ?

thanks.


Top
 Profile  
 
 Post subject: Re: nmidWebService Version 2 released - Remote Display of Gr
PostPosted: Wed Dec 10, 2014 9:45 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2598
Location: Kressbronn, Germany
The function you need to look at is the "getGraph" function from the "graph_functions.php" file.

The party you may play around with is this one:

Code:
// Create the Cacti image:
system($php_binary . " create_image.php ". $i_lgid ." 0 ". $i_start ." ". $i_end ." ". $i_height ." ". $i_width ." ".$i_nolegend." > ". $s_imgname );

// Create an image object from the newly created file/image:
$tmp_image = @ImageCreateFromPNG ($s_imgname);

// Get the Image width and height
$width = imagesx($tmp_image);
$height = imagesy($tmp_image);

// Do some resampling:
$new_image = imagecreatetruecolor($i_width,$i_height);
ImageCopyResampled($new_image, $tmp_image,0,0,0,0, $i_width, $i_height, $width, $height);
imagealphablending ( $new_image, FALSE );
imagepng($new_image, $s_imgname);                       
                 
// open the freshly created image and read its content
$h_handle = fopen( $s_imgname, "rb" );



Maybe changing this function to this may help you:
Code:
// Create the Cacti image:
system($php_binary . " create_image.php ". $i_lgid ." 0 ". $i_start ." ". $i_end ." ". $i_height ." ". $i_width ." ".$i_nolegend." > ". $s_imgname );

// --> Removed Image processing <--
               
// open the freshly created image and read its content
$h_handle = fopen( $s_imgname, "rb" );

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group