SQL Server 2005 Templates
Moderators: Developers, Moderators
Can you copy the contents of the 'Input String' field on one of the SQL Server's Data Input Methods?
It seems that your poller cache is missing a field and I'm wondering why it's not showing up properly.
It seems that your poller cache is missing a field and I'm wondering why it's not showing up properly.
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
here is the one for "sql server - connections" :
That exact same line is what I have used to test via the command line manually, and it returns results without issues.
Thanks
Code: Select all
/usr/bin/php /usr/local/cacti-0.8.7e/scripts/ss_win_mssql.php <hostname>:<port> connections <user> <password>
Thanks
Here's what I have for 'SQL Server - Connections':
So... It seems that your Data Input Methods are missing a field and I'm wondering why it's not there. Did you modify the 'Input String' field for these DS?
If you look at my poller cache, you'll see that between the name of the script and the hostname/port there's an argument that you don't have in your cache.
This argument tells the Script Server which function to run and without it, these graphs aren't going to work.
You don't need that argument there when running the script on the command line because the script behaves a little bit differently when run manually.
Code: Select all
<path_cacti>/scripts/ss_win_mssql.php ss_win_mssql <hostname>:<port> connections <user> <password>
If you look at my poller cache, you'll see that between the name of the script and the hostname/port there's an argument that you don't have in your cache.
This argument tells the Script Server which function to run and without it, these graphs aren't going to work.
You don't need that argument there when running the script on the command line because the script behaves a little bit differently when run manually.
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Ok I have deleted all the data input methods, templates, hosts, etc. I re-imported and started again from scratch. I will let you know how it goes at this point.lints wrote:Here's what I have for 'SQL Server - Connections':So... It seems that your Data Input Methods are missing a field and I'm wondering why it's not there. Did you modify the 'Input String' field for these DS?Code: Select all
<path_cacti>/scripts/ss_win_mssql.php ss_win_mssql <hostname>:<port> connections <user> <password>
If you look at my poller cache, you'll see that between the name of the script and the hostname/port there's an argument that you don't have in your cache.
This argument tells the Script Server which function to run and without it, these graphs aren't going to work.
You don't need that argument there when running the script on the command line because the script behaves a little bit differently when run manually.
The input line now reads :
Code: Select all
<path_cacti>/scripts/ss_win_mssql.php ss_win_mssql <hostname>:<port> connections <user> <password>
No problem.
I'm just happy that they work for you.
I'm just happy that they work for you.
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Hello all,
I have the same return that kevin for all graph template (Result from SERVER not valid. Partial Result: U) but when i launch the command from the server :
I have test too the telnet connection on the 1433 port, it is OK
the return is the same for all graph template so maybe a script problem ? i have the ss_win_mssql.txt in the page 2 of this thread :/
Any reaction, advice for help me is welcome
Thanks!
I have the same return that kevin for all graph template (Result from SERVER not valid. Partial Result: U) but when i launch the command from the server :
And in my Poller Cache i have this info :xxxxx@srvxxxxxx:~$ sudo /usr/bin/php -q /usr/share/cacti/site/scripts/ss_win_mssql.php 10.10.xxx.xxx scans cactistats toto
xxxxx@srvxxxxxx:~$
I have delete all the graph template, data template, etc... but the return of the plugin is always the same.Script Server: /usr/share/cacti/site/scripts/ss_win_mssql.php ss_win_mssql 10.10.xxx.xxx:1433 scans cactistats toto
RRD: /srv/cacti/rra/srvaiinfra-dev_mssql_rangescans_79.rrd
I have test too the telnet connection on the 1433 port, it is OK
the return is the same for all graph template so maybe a script problem ? i have the ss_win_mssql.txt in the page 2 of this thread :/
Any reaction, advice for help me is welcome
Thanks!
As mentioned in previous posts, if you comment out line 10, which should look like 'error_reporting(0);', you'll see some error messages.
Try that and post the errors back here.
Try that and post the errors back here.
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Sorry, i have read this too and i don't see the relation, oups :/
So with the error_reporting(1);
i have this :
PHP Fatal error: Class 'Memcache' not found in /usr/share/cacti/site/scripts/ss_win_mssql.php on line 29
I don't understand why because i have installed the packet memcached with :
sudo aptitude install memcached
It need a config to be enable ?
So with the error_reporting(1);
i have this :
PHP Fatal error: Class 'Memcache' not found in /usr/share/cacti/site/scripts/ss_win_mssql.php on line 29
I don't understand why because i have installed the packet memcached with :
sudo aptitude install memcached
It need a config to be enable ?
That's the server component of MemCache.
PHP also needs an extension so it can interface with it.
On CentOS/RedHat, it the package is called 'php-pecl-memcache', but it might also be installable via PECL.
Alternatively, you can just comment out the parts to do with MemCache.
PHP also needs an extension so it can interface with it.
On CentOS/RedHat, it the package is called 'php-pecl-memcache', but it might also be installable via PECL.
Alternatively, you can just comment out the parts to do with MemCache.
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Re: SQL Server 2005 Templates
Anyone tried this template on a Windows cacti server ?
I have done the part on the sql server, and imported the templates and edited and copied the script.
But i only get:
ERROR: SS[1] PHP Script Server communications lost. Restarting PHP Script Server
If i try to run the script from a dos prompt i dont get any data att all, no error, nothing.
Any hints ?
Thanks
I have done the part on the sql server, and imported the templates and edited and copied the script.
But i only get:
ERROR: SS[1] PHP Script Server communications lost. Restarting PHP Script Server
If i try to run the script from a dos prompt i dont get any data att all, no error, nothing.
Any hints ?
Thanks
Re:
Hi isse,
As dusk2k wrote a few months ago:
As dusk2k wrote a few months ago:
dust2k wrote:fixed the problem, I believe the ss_win_mssql.php need to be modified for Windows OS, mssql_connect() function shouldn't use port in windows environment.
so for windows OS user, please changetoCode: Select all
if (! $link = mssql_connect($host.':'.$port, $username, $password) )
, otherwise the connection won't be successful.Code: Select all
if (! $link = mssql_connect($host, $username, $password) )
Cacti Version - 0.8.7e
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.2.10
MySQL - 5.1.35-log
RRDTool - 1.4.4
------------------------------
As of March 23rd:
Hosts - 564
Graphs - 15274
Re: SQL Server 2005 Templates
Thanks!
THis togheter with the sql extension in the Windows php installer solved it.
/I
THis togheter with the sql extension in the Windows php installer solved it.
/I
Who is online
Users browsing this forum: No registered users and 0 guests