Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Apr 24, 2017 8:22 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Sun Apr 03, 2011 3:09 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
BTB: Running 087g SVN from one week ago together with PIA/SVN without errors in production by now (at least it runs the whole production load in parallel to an 087c). Using spine/SVN as well
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Sun Apr 03, 2011 4:49 pm 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Thanks for your return gandalf and this good news


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Sun Apr 03, 2011 8:41 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5942
Location: Michigan, USA
I have one feature to finish this week and we should be ready for another beta release!

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Wed Apr 06, 2011 2:50 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello rony,

I've this error with cacti poller template :

PHPSVR: Poller[0] WARNING: Function does not exist

Best Regards


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Wed Apr 06, 2011 1:49 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5942
Location: Michigan, USA
I need more information....

That is the php script server saying it can't call the function that was defined for it.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Wed Apr 06, 2011 2:44 pm 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
of course, sorry

my last tests (I've only localhost with cacti poller template v3 on device), I used cacti 0.8.7h beta1, spine 0.8.7h beta1, pia 3.0 beta1 et boost 4.3.

if I done :

php -q ./ss_poller.php
Time:0.3875 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:14
snmp:0 script:3 script_server:11
RecacheTime:0.0 HostsRecached:0

or

php -q ./ss_poller.php 127.0.0.1
Time:0.3875 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:14
snmp:0 script:3 script_server:11
RecacheTime:0.0 HostsRecached:0

=> I've nothing on cacti log

But by the poller command line :

$ php /.../cacti/html/poller.php
PHP Notice: Undefined variable: function in /.../cacti/htm/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/htm/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.phpon line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.phpp on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 194
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 215
PHP Notice: Undefined variable: function in /.../cacti/html/script_server.php on line 231
ERROR: Not enough arguments
ERROR: Not enough arguments
ERROR: Not enough arguments
ERROR: Not enough arguments
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:0.23
ERROR: Not enough arguments
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:0.23
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:0.23
OK u:0.00 s:0.00 r:0.23
OK u:0.00 s:0.00 r:0.23
OK u:0.00 s:0.00 r:0.23
04/06/2011 10:34:35 PM - SYSTEM STATS: Time:0.3404 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:14


and on cacti log :
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - PHPSVR: Poller[0] WARNING: Function does not exist ''
04/06/2011 10:34:35 PM - SYSTEM STATS: Time:0.3404 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:14


That can help you ?

In fact is seems same as bug : 0001959: Problems with script_server.php


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Wed Apr 06, 2011 4:29 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5942
Location: Michigan, USA
Helps a little, but not completely....

Please provide me a link to the ss_poller.php templates.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Wed Apr 06, 2011 8:11 pm 
Offline

Joined: Mon Mar 28, 2011 3:54 pm
Posts: 4
Issue: Data sources not being correctly named.

I'm using the Script Server to run my query. They query is successful, but the graph are being a huge PITA.

So I setup the Suggested values for both data sources and graphs in my graph template as follows:

|host_hostname| - |query_Name| field name: name ( and title )

where 'Name' is the xml field name from my xml file

when I create the graphs the end up like:

10.x.x.x - |query_Name|

Am I doing something wrong or is this a bug....



Here is the verbose output of my data query:


Running data query [10].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/powerxpert.xml'
+ XML file parsed ok.
+ Executing script for num of indexes '"/usr/bin/php" -q /var/www/html/cacti/scripts/ss_powerxpert.php 10.30.0.55 liquidsnmp total'
+ Found number of indexes: 76
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/html/cacti/scripts/ss_powerxpert.php 10.30.0.55 liquidsnmp index' Index Count: 76
+ Found index: 1.1.1
+ Found index: 1.1.2
+ Found index: 1.2.1
+ Found index: 1.4.2
+ Found index: 1.5.1
+ Found index: 1.5.3
+ Found index: 1.6.3
+ Found index: 1.8.1
+ Found index: 1.9.2
+ Found index: 1.9.3
+ Found index: 1.10.2
+ Found index: 1.12.3
+ Found index: 1.13.1
+ Found index: 1.13.2
+ Found index: 1.14.1
+ Found index: 1.14.2
+ Found index: 1.17.1
+ Found index: 1.17.3
+ Found index: 1.18.1
+ Found index: 1.18.3
+ Found index: 1.21.2
+ Found index: 1.21.3
+ Found index: 1.22.2
+ Found index: 1.22.3
+ Found index: 1.25.1
+ Found index: 1.25.2
+ Found index: 1.26.1
+ Found index: 1.26.2
+ Found index: 1.29.1
+ Found index: 1.29.3
+ Found index: 1.30.1
+ Found index: 1.30.3
+ Found index: 1.34.2
+ Found index: 1.34.3
+ Found index: 2.1.1
+ Found index: 2.2.1
+ Found index: 2.3.2
+ Found index: 2.4.2
+ Found index: 2.5.3
+ Found index: 2.6.3
+ Found index: 2.7.1
+ Found index: 2.8.1
+ Found index: 2.9.2
+ Found index: 2.10.2
+ Found index: 2.11.3
+ Found index: 2.12.3
+ Found index: 2.13.1
+ Found index: 2.14.1
+ Found index: 2.15.2
+ Found index: 2.16.2
+ Found index: 2.17.3
+ Found index: 2.18.3
+ Found index: 2.19.1
+ Found index: 2.20.1
+ Found index: 2.21.2
+ Found index: 2.22.2
+ Found index: 2.23.3
+ Found index: 2.24.3
+ Found index: 2.25.1
+ Found index: 2.26.1
+ Found index: 2.27.2
+ Found index: 2.28.2
+ Found index: 2.29.3
+ Found index: 2.30.3
+ Found index: 2.31.1
+ Found index: 2.32.1
+ Found index: 2.33.2
+ Found index: 2.34.2
+ Found index: 2.35.3
+ Found index: 2.36.3
+ Found index: 2.37.1
+ Found index: 2.38.1
+ Found index: 2.39.2
+ Found index: 2.40.2
+ Found index: 2.41.3
+ Found index: 2.42.3
+ Executing script query '"/usr/bin/php" -q /var/www/html/cacti/scripts/ss_powerxpert.php 10.30.0.55 liquidsnmp query Name'
+ Found item [Name='R7/TS1'] index: 1.1.1
+ Found item [Name='R7/TS1'] index: 1.1.2
+ Found item [Name='R7/C1'] index: 1.2.1
+ Found item [Name='R7/C2'] index: 1.4.2
+ Found item [Name='R7/TS2'] index: 1.5.1
+ Found item [Name='R7/TS2'] index: 1.5.3
+ Found item [Name='R7/C3'] index: 1.6.3
+ Found item [Name='R7/C4'] index: 1.8.1
+ Found item [Name='R7/TS3'] index: 1.9.2
+ Found item [Name='R7/TS3'] index: 1.9.3
+ Found item [Name='R7/C5'] index: 1.10.2
+ Found item [Name='R7/C6'] index: 1.12.3
+ Found item [Name='R7/TS4'] index: 1.13.1
+ Found item [Name='R7/TS4'] index: 1.13.2
+ Found item [Name='R7/TS9'] index: 1.14.1
+ Found item [Name='R7/TS9'] index: 1.14.2
+ Found item [Name='R7/TS5'] index: 1.17.1
+ Found item [Name='R7/TS5'] index: 1.17.3
+ Found item [Name='R7/TS10'] index: 1.18.1
+ Found item [Name='R7/TS10'] index: 1.18.3
+ Found item [Name='R7/TS6'] index: 1.21.2
+ Found item [Name='R7/TS6'] index: 1.21.3
+ Found item [Name='R7/TS11'] index: 1.22.2
+ Found item [Name='R7/TS11'] index: 1.22.3
+ Found item [Name='R7/TS7'] index: 1.25.1
+ Found item [Name='R7/TS7'] index: 1.25.2
+ Found item [Name='R7/TS12'] index: 1.26.1
+ Found item [Name='R7/TS12'] index: 1.26.2
+ Found item [Name='R7/TS8'] index: 1.29.1
+ Found item [Name='R7/TS8'] index: 1.29.3
+ Found item [Name='R7/TS13'] index: 1.30.1
+ Found item [Name='R7/TS13'] index: 1.30.3
+ Found item [Name='R7/TS14'] index: 1.34.2
+ Found item [Name='R7/TS14'] index: 1.34.3
+ Found item [Name='R8/C1'] index: 2.1.1
+ Found item [Name='R8/C22'] index: 2.2.1
+ Found item [Name='R8/C2'] index: 2.3.2
+ Found item [Name='R8/C23'] index: 2.4.2
+ Found item [Name='R8/C3'] index: 2.5.3
+ Found item [Name='R8/C24'] index: 2.6.3
+ Found item [Name='R8/C4'] index: 2.7.1
+ Found item [Name='R8/C25'] index: 2.8.1
+ Found item [Name='R8/C5'] index: 2.9.2
+ Found item [Name='R8/C26'] index: 2.10.2
+ Found item [Name='R8/C6'] index: 2.11.3
+ Found item [Name='R8/C27'] index: 2.12.3
+ Found item [Name='R8/C7'] index: 2.13.1
+ Found item [Name='R8/C28'] index: 2.14.1
+ Found item [Name='R8/C8'] index: 2.15.2
+ Found item [Name='R8/C29'] index: 2.16.2
+ Found item [Name='R8/C9'] index: 2.17.3
+ Found item [Name='R8/C30'] index: 2.18.3
+ Found item [Name='R8/C10'] index: 2.19.1
+ Found item [Name='R8/C31'] index: 2.20.1
+ Found item [Name='R8/C11'] index: 2.21.2
+ Found item [Name='R8/C32'] index: 2.22.2
+ Found item [Name='R8/C12'] index: 2.23.3
+ Found item [Name='R8/C33'] index: 2.24.3
+ Found item [Name='R8/C13'] index: 2.25.1
+ Found item [Name='R8/C34'] index: 2.26.1
+ Found item [Name='R8/C17'] index: 2.27.2
+ Found item [Name='R8/C35'] index: 2.28.2
+ Found item [Name='R8/C15'] index: 2.29.3
+ Found item [Name='R8/C36'] index: 2.30.3
+ Found item [Name='R8/C216'] index: 2.31.1
+ Found item [Name='R8/C37'] index: 2.32.1
+ Found item [Name='R8/C14'] index: 2.33.2
+ Found item [Name='R8/C38'] index: 2.34.2
+ Found item [Name='R8/C18'] index: 2.35.3
+ Found item [Name='R8/C39'] index: 2.36.3
+ Found item [Name='R8/C19'] index: 2.37.1
+ Found item [Name='Panel 2 - Breaker 38'] index: 2.38.1
+ Found item [Name='R8/C20'] index: 2.39.2
+ Found item [Name='Panel 2 - Breaker 40'] index: 2.40.2
+ Found item [Name='R8/C21'] index: 2.41.3
+ Found item [Name='Panel 2 - Breaker 42'] index: 2.42.3
+ Executing script query '"/usr/bin/php" -q /var/www/html/cacti/scripts/ss_powerxpert.php 10.30.0.55 liquidsnmp query Rating'
+ Found item [Rating='30'] index: 1.1.1
+ Found item [Rating='30'] index: 1.1.2
+ Found item [Rating='20'] index: 1.2.1
+ Found item [Rating='20'] index: 1.4.2
+ Found item [Rating='30'] index: 1.5.1
+ Found item [Rating='30'] index: 1.5.3
+ Found item [Rating='20'] index: 1.6.3
+ Found item [Rating='20'] index: 1.8.1
+ Found item [Rating='30'] index: 1.9.2
+ Found item [Rating='30'] index: 1.9.3
+ Found item [Rating='20'] index: 1.10.2
+ Found item [Rating='20'] index: 1.12.3
+ Found item [Rating='30'] index: 1.13.1
+ Found item [Rating='30'] index: 1.13.2
+ Found item [Rating='30'] index: 1.14.1
+ Found item [Rating='30'] index: 1.14.2
+ Found item [Rating='30'] index: 1.17.1
+ Found item [Rating='30'] index: 1.17.3
+ Found item [Rating='30'] index: 1.18.1
+ Found item [Rating='30'] index: 1.18.3
+ Found item [Rating='30'] index: 1.21.2
+ Found item [Rating='30'] index: 1.21.3
+ Found item [Rating='30'] index: 1.22.2
+ Found item [Rating='30'] index: 1.22.3
+ Found item [Rating='30'] index: 1.25.1
+ Found item [Rating='30'] index: 1.25.2
+ Found item [Rating='30'] index: 1.26.1
+ Found item [Rating='30'] index: 1.26.2
+ Found item [Rating='30'] index: 1.29.1
+ Found item [Rating='30'] index: 1.29.3
+ Found item [Rating='30'] index: 1.30.1
+ Found item [Rating='30'] index: 1.30.3
+ Found item [Rating='30'] index: 1.34.2
+ Found item [Rating='30'] index: 1.34.3
+ Found item [Rating='20'] index: 2.1.1
+ Found item [Rating='20'] index: 2.2.1
+ Found item [Rating='20'] index: 2.3.2
+ Found item [Rating='20'] index: 2.4.2
+ Found item [Rating='20'] index: 2.5.3
+ Found item [Rating='20'] index: 2.6.3
+ Found item [Rating='20'] index: 2.7.1
+ Found item [Rating='20'] index: 2.8.1
+ Found item [Rating='20'] index: 2.9.2
+ Found item [Rating='20'] index: 2.10.2
+ Found item [Rating='20'] index: 2.11.3
+ Found item [Rating='20'] index: 2.12.3
+ Found item [Rating='20'] index: 2.13.1
+ Found item [Rating='20'] index: 2.14.1
+ Found item [Rating='20'] index: 2.15.2
+ Found item [Rating='20'] index: 2.16.2
+ Found item [Rating='20'] index: 2.17.3
+ Found item [Rating='20'] index: 2.18.3
+ Found item [Rating='20'] index: 2.19.1
+ Found item [Rating='20'] index: 2.20.1
+ Found item [Rating='20'] index: 2.21.2
+ Found item [Rating='20'] index: 2.22.2
+ Found item [Rating='20'] index: 2.23.3
+ Found item [Rating='20'] index: 2.24.3
+ Found item [Rating='20'] index: 2.25.1
+ Found item [Rating='20'] index: 2.26.1
+ Found item [Rating='20'] index: 2.27.2
+ Found item [Rating='20'] index: 2.28.2
+ Found item [Rating='20'] index: 2.29.3
+ Found item [Rating='20'] index: 2.30.3
+ Found item [Rating='20'] index: 2.31.1
+ Found item [Rating='20'] index: 2.32.1
+ Found item [Rating='20'] index: 2.33.2
+ Found item [Rating='20'] index: 2.34.2
+ Found item [Rating='20'] index: 2.35.3
+ Found item [Rating='20'] index: 2.36.3
+ Found item [Rating='20'] index: 2.37.1
+ Found item [Rating='20'] index: 2.38.1
+ Found item [Rating='20'] index: 2.39.2
+ Found item [Rating='20'] index: 2.40.2
+ Found item [Rating='20'] index: 2.41.3
+ Found item [Rating='20'] index: 2.42.3
+ Executing script query '"/usr/bin/php" -q /var/www/html/cacti/scripts/ss_powerxpert.php 10.30.0.55 liquidsnmp query Phases'
+ Found item [Phases='2'] index: 1.1.1
+ Found item [Phases='2'] index: 1.1.2
+ Found item [Phases='1'] index: 1.2.1
+ Found item [Phases='1'] index: 1.4.2
+ Found item [Phases='2'] index: 1.5.1
+ Found item [Phases='2'] index: 1.5.3
+ Found item [Phases='1'] index: 1.6.3
+ Found item [Phases='1'] index: 1.8.1
+ Found item [Phases='2'] index: 1.9.2
+ Found item [Phases='2'] index: 1.9.3
+ Found item [Phases='1'] index: 1.10.2
+ Found item [Phases='1'] index: 1.12.3
+ Found item [Phases='2'] index: 1.13.1
+ Found item [Phases='2'] index: 1.13.2
+ Found item [Phases='2'] index: 1.14.1
+ Found item [Phases='2'] index: 1.14.2
+ Found item [Phases='2'] index: 1.17.1
+ Found item [Phases='2'] index: 1.17.3
+ Found item [Phases='2'] index: 1.18.1
+ Found item [Phases='2'] index: 1.18.3
+ Found item [Phases='2'] index: 1.21.2
+ Found item [Phases='2'] index: 1.21.3
+ Found item [Phases='2'] index: 1.22.2
+ Found item [Phases='2'] index: 1.22.3
+ Found item [Phases='2'] index: 1.25.1
+ Found item [Phases='2'] index: 1.25.2
+ Found item [Phases='2'] index: 1.26.1
+ Found item [Phases='2'] index: 1.26.2
+ Found item [Phases='2'] index: 1.29.1
+ Found item [Phases='2'] index: 1.29.3
+ Found item [Phases='2'] index: 1.30.1
+ Found item [Phases='2'] index: 1.30.3
+ Found item [Phases='2'] index: 1.34.2
+ Found item [Phases='2'] index: 1.34.3
+ Found item [Phases='1'] index: 2.1.1
+ Found item [Phases='1'] index: 2.2.1
+ Found item [Phases='1'] index: 2.3.2
+ Found item [Phases='1'] index: 2.4.2
+ Found item [Phases='1'] index: 2.5.3
+ Found item [Phases='1'] index: 2.6.3
+ Found item [Phases='1'] index: 2.7.1
+ Found item [Phases='1'] index: 2.8.1
+ Found item [Phases='1'] index: 2.9.2
+ Found item [Phases='1'] index: 2.10.2
+ Found item [Phases='1'] index: 2.11.3
+ Found item [Phases='1'] index: 2.12.3
+ Found item [Phases='1'] index: 2.13.1
+ Found item [Phases='1'] index: 2.14.1
+ Found item [Phases='1'] index: 2.15.2
+ Found item [Phases='1'] index: 2.16.2
+ Found item [Phases='1'] index: 2.17.3
+ Found item [Phases='1'] index: 2.18.3
+ Found item [Phases='1'] index: 2.19.1
+ Found item [Phases='1'] index: 2.20.1
+ Found item [Phases='1'] index: 2.21.2
+ Found item [Phases='1'] index: 2.22.2
+ Found item [Phases='1'] index: 2.23.3
+ Found item [Phases='1'] index: 2.24.3
+ Found item [Phases='1'] index: 2.25.1
+ Found item [Phases='1'] index: 2.26.1
+ Found item [Phases='1'] index: 2.27.2
+ Found item [Phases='1'] index: 2.28.2
+ Found item [Phases='1'] index: 2.29.3
+ Found item [Phases='1'] index: 2.30.3
+ Found item [Phases='1'] index: 2.31.1
+ Found item [Phases='1'] index: 2.32.1
+ Found item [Phases='1'] index: 2.33.2
+ Found item [Phases='1'] index: 2.34.2
+ Found item [Phases='1'] index: 2.35.3
+ Found item [Phases='1'] index: 2.36.3
+ Found item [Phases='1'] index: 2.37.1
+ Found item [Phases='1'] index: 2.38.1
+ Found item [Phases='1'] index: 2.39.2
+ Found item [Phases='1'] index: 2.40.2
+ Found item [Phases='1'] index: 2.41.3
+ Found item [Phases='1'] index: 2.42.3


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Wed Apr 06, 2011 11:18 pm 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
rony wrote:
Helps a little, but not completely....

Please provide me a link to the ss_poller.php templates.


Hello rony,

It's the official package : http://docs.cacti.net/_media/usertemplate:host:cacti:poller_stats3.tgz :wink:


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Thu Apr 07, 2011 7:53 am 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5942
Location: Michigan, USA
LiquidJ wrote:
Issue: Data sources not being correctly named.

I'm using the Script Server to run my query. They query is successful, but the graph are being a huge PITA.

So I setup the Suggested values for both data sources and graphs in my graph template as follows:

|host_hostname| - |query_Name| field name: name ( and title )

where 'Name' is the xml field name from my xml file

when I create the graphs the end up like:

10.x.x.x - |query_Name|



I'm pretty sure we do not support that variable replacement, but I would have to defer to Gandalf for this question.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Thu Apr 07, 2011 8:27 am 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello rony,

More informations for you, I hope that can help you.

If I put the script_server.php file from 0.8.7g on 0.8.7h => all is right, no errors and no warning.

Here the diff beetween the two file :

diff script_server.php.087g script_server.php.087h
4c4
< | Copyright (C) 2004-2010 The Cacti Group |
---
> | Copyright (C) 2004-2011 The Cacti Group |
141c141,143
< $input_string = fgets(STDIN, 1024);
---
> $input_string = fgets(STDIN, 1024);
> $parameters = "";
> $parameter_array = array();
146,147c148,154
< if (strlen($input_string)) {
< $command_array = explode(" ", $input_string, 3);
---
> if (substr($input_string,0,4) == "quit") {
> fputs(STDOUT, "PHP Script Server Shutdown request received, exiting\n");
> if (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG) {
> cacti_log("DEBUG: PHP Script Server Shutdown request received, exiting", false, "PHPSVR");
> }
> exit(1);
> }
149,154c156,174
< if (sizeof($command_array)) {
< /* user has requested to quit */
< if (substr_count($command_array[0], "quit")) {
< fputs(STDOUT, "PHP Script Server Shutdown request received, exiting\n");
< if (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG) {
< cacti_log("DEBUG: PHP Script Server Shutdown request received, exiting", false, "PHPSVR");
---
> if (strlen($input_string)) {
> /* pull off the parameters */
> $i = 0;
> while ( true ) {
> $pos = strpos($input_string, " ");
>
> if ($pos > 0) {
> switch ($i) {
> case 0:
> $include_file = trim(substr($input_string,0,$pos));
> $input_string = trim(strchr($input_string, " "));
> break;
> case 1:
> $function = trim(substr($input_string,0,$pos));
> $input_string = trim(strchr($input_string, " "));
> break;
> case 2:
> $parameters = trim($input_string);
> break 2;
156,161d175
< exit(1);
< }
<
< /* valid command entered to system, parse and execute */
< if (isset($command_array[0])) {
< $include_file = trim($command_array[0]);
163c177
< $include_file = "";
---
> break;
166,170c180,181
< if (isset($command_array[1])) {
< $function = trim($command_array[1]);
< }else{
< $function = "";
< }
---
> $i++;
> }
172,182c183,187
< if (isset($command_array[2])) {
< $parameters = trim($command_array[2]);
< $parameter_array = array();
< if (!parseArgs($parameters, $parameter_array)) {
< cacti_log("WARNING: Script Server count not parse '$parameters' for $function", false, "PHPSVR");
< return "U";
< }
< }else{
< $parameters = "";
< $parameters_array = array();
< }
---
> if (!parseArgs($parameters, $parameter_array)) {
> cacti_log("WARNING: Script Server count not parse '$parameters' for $function", false, "PHPSVR");
> fputs(STDOUT, "U\n");
> continue;
> }
184,186c189,191
< if (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG) {
< cacti_log("DEBUG: PID[$pid] CTR[$ctr] INC: '". basename($include_file) . "' FUNC: '" .$function . "' PARMS: '" . $parameters . "'", false, "PHPSVR");
< }
---
> if (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG) {
> cacti_log("DEBUG: PID[$pid] CTR[$ctr] INC: '". basename($include_file) . "' FUNC: '" .$function . "' PARMS: '" . $parameters . "'", true, "PHPSVR");
> }
188,206c193,199
< /* validate the existance of the function, and include if applicable */
< if (!function_exists($function)) {
< if (file_exists($include_file)) {
< /* quirk in php on Windows, believe it or not.... */
< /* path must be lower case */
< if ($config["cacti_server_os"] == "win32") {
< $include_file = strtolower($include_file);
< }
<
< /* set this variable so the calling script can determine if it was called
< * by the script server or stand-alone */
< $called_by_script_server = true;
<
< /* turn on output buffering to avoid problems with nasty scripts */
< ob_start();
< include_once($include_file);
< ob_end_clean();
< } else {
< cacti_log("WARNING: PHP Script File to be included, does not exist", false, "PHPSVR");
---
> /* validate the existance of the function, and include if applicable */
> if (!function_exists($function)) {
> if (file_exists($include_file)) {
> /* quirk in php on Windows, believe it or not.... */
> /* path must be lower case */
> if ($config["cacti_server_os"] == "win32") {
> $include_file = strtolower($include_file);
208d200
< }
210,215c202,213
< if (function_exists($function)) {
< if ($parameters == "") {
< $result = call_user_func($function);
< } else {
< $result = call_user_func_array($function, $parameter_array);
< }
---
> /* set this variable so the calling script can determine if it was called
> * by the script server or stand-alone */
> $called_by_script_server = true;
>
> /* turn on output buffering to avoid problems with nasty scripts */
> ob_start();
> include_once($include_file);
> ob_end_clean();
> } else {
> cacti_log("WARNING: PHP Script File to be included, does not exist", false, "PHPSVR");
> }
> }
217,218c215,220
< fputs(STDOUT, trim($result) . "\n");
< fflush(STDOUT);
---
> if (function_exists($function)) {
> if ($parameters == "") {
> $result = call_user_func($function);
> } else {
> $result = call_user_func_array($function, $parameter_array);
> }
220,222c222,223
< if (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG) {
< cacti_log("DEBUG: PID[$pid] CTR[$ctr] RESPONSE:'$value'", false, "PHPSVR");
< }
---
> fputs(STDOUT, trim($result) . "\n");
> fflush(STDOUT);
224,227c225,226
< $ctr++;
< } else {
< cacti_log("WARNING: Function does not exist", false, "PHPSVR");
< fputs(STDOUT, "WARNING: Function does not exist\n");
---
> if (read_config_option("log_verbosity") >= POLLER_VERBOSITY_DEBUG) {
> cacti_log("DEBUG: PID[$pid] CTR[$ctr] RESPONSE:'$result'", false, "PHPSVR");
228a228,232
>
> $ctr++;
> } else {
> cacti_log("WARNING: Function does not exist '$function'", false, "PHPSVR");
> fputs(STDOUT, "U\n");
343c347
< }else{
---
> }elseif (strlen($curstr)) {



Best Regards


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Thu Apr 07, 2011 11:56 am 
Offline

Joined: Mon Mar 28, 2011 3:54 pm
Posts: 4
rony wrote:
LiquidJ wrote:
Issue: Data sources not being correctly named.

I'm using the Script Server to run my query. They query is successful, but the graph are being a huge PITA.

So I setup the Suggested values for both data sources and graphs in my graph template as follows:

|host_hostname| - |query_Name| field name: name ( and title )

where 'Name' is the xml field name from my xml file

when I create the graphs the end up like:

10.x.x.x - |query_Name|



I'm pretty sure we do not support that variable replacement, but I would have to defer to Gandalf for this question.



It was working in 0.8.7g. query_Name is referring to an XML field, you can see the verbose query pulling values for it. If that is incorrect, how would I go about making sure my data sources have unique names?


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Thu Apr 07, 2011 12:04 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5942
Location: Michigan, USA
I stand corrected! :)

Please submit a bug at http://www.cacti.net/bugs.php

Thanks,


LiquidJ wrote:
rony wrote:
LiquidJ wrote:
Issue: Data sources not being correctly named.

I'm using the Script Server to run my query. They query is successful, but the graph are being a huge PITA.

So I setup the Suggested values for both data sources and graphs in my graph template as follows:

|host_hostname| - |query_Name| field name: name ( and title )

where 'Name' is the xml field name from my xml file

when I create the graphs the end up like:

10.x.x.x - |query_Name|



I'm pretty sure we do not support that variable replacement, but I would have to defer to Gandalf for this question.



It was working in 0.8.7g. query_Name is referring to an XML field, you can see the verbose query pulling values for it. If that is incorrect, how would I go about making sure my data sources have unique names?

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Thu Apr 07, 2011 2:39 pm 
Offline

Joined: Mon Mar 28, 2011 3:54 pm
Posts: 4
Issue: Poller keeps recaching host

I was checking my logs to figure out why my graphs are blank and noticed the following:

04/07/2011 03:35:02 PM - CMDPHP: Poller[0] ASSERT: '76=U' failed. Recaching host '10.30.0.55', data query #10

the 76 is the index count from my data query. I'm not sure if this is saying that the poller is unable to get an updated value or that it is not storing the index value. Here is a complete log output:

04/07/2011 03:35:23 PM - RECACHE STATS: RecacheTime:20.1807 HostsRecached:1
04/07/2011 03:35:23 PM - PCOMMAND: Poller[0] Host[2] RECACHE: Recache successful.
04/07/2011 03:35:02 PM - PCOMMAND: Poller[0] Host[2] RECACHE: Recache for Host, data query #10
04/07/2011 03:35:02 PM - PCOMMAND: Poller[0] Host[2] WARNING: Recache Event Detected for Host
04/07/2011 03:35:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cacti/poller_commands.php"]
04/07/2011 03:35:02 PM - SYSTEM STATS: Time:0.9140 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:7 RRDsProcessed:6
04/07/2011 03:35:02 PM - CMDPHP: Poller[0] Time: 0.2906 s, Theads: N/A, Hosts: 2
04/07/2011 03:35:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/b3s4bcms_traffic_in_8.rrd --template traffic_out:traffic_in 1302204902:2244018416:2608514313
04/07/2011 03:35:02 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 10.30.0.55, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 2244018416
04/07/2011 03:35:02 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 10.30.0.55, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 2608514313
04/07/2011 03:35:02 PM - CMDPHP: Poller[0] ASSERT: '76=U' failed. Recaching host '10.30.0.55', data query #10
04/07/2011 03:35:02 PM - CMDPHP: Poller[0] Host[2] DS[8] *SKIPPING* Script Server: .1.3.6.1.2.1.2.2.1.10.3 (PHP < 4.3)


Top
 Profile  
 
 Post subject: Re: Cacti 0.8.7h Beta Release Discussion
PostPosted: Thu Apr 07, 2011 11:56 pm 
Offline
Cacti User

Joined: Mon Jan 17, 2011 12:15 pm
Posts: 155
Hello rony,

A last thing for me, I've always NaN for traffic network, I'm alone on this matter, or others persons as same matter ?


[Edit] I confirm to you, on same cacti servers with same conf and version of apache, php, mysql, but with 0.8.7g :

- no error on database when I add some objet on a tree
- graph traffic network => all are OK

[/Edit]


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

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