Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[XML] successor to apachestats 0.4
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Tue Jul 25, 2006 11:13 am    Post subject: Re: Thanks Reply with quote

tarunsood wrote:
Hi thanks for the reply the graphs are working fine now
Would you please be so kind to state, what did the trick? So other users may get a hint?
Reinhard
Back to top
tarunsood



Joined: 13 Mar 2006
Posts: 9
Location: india

PostPosted: Fri Jul 28, 2006 3:54 am    Post subject: Reply with quote

CACTID: Host[34] DS[1418] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[34] ERROR: Empty result [xxx.xxx.xxx.xxx]: 'perl /var/www/html/cacti/scripts/ws_apachestats.pl xxx.xxx.xxx.xxx'
CACTID: Host[34] DS[1419] WARNING: Result from SCRIPT not valid. Partial Result: ...

This Error was resolved by adding /path/to/perl in the data input methord ->WebServer - Apache Statistics-> Input String
Back to top
tarunsood



Joined: 13 Mar 2006
Posts: 9
Location: india

PostPosted: Fri Jul 28, 2006 3:56 am    Post subject: Reply with quote

but i am getting the error
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 63.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 65.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 63.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 65.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 63.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 65.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 63.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 65.
Use of uninitialized value in concatenation (.) or string at /var/www/html/cacti/scripts/ws_apachestats.pl line 63

cam any one tell me the solution to this
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Jul 28, 2006 10:44 am    Post subject: Reply with quote

This would be the result, if either httpd.conf is _not_ configured for server-status or the result of http://your-server/server-status?auto is not as expected.
Please check the first case (description is in the docs for this Template) and post the result of the second
Reinhard
Back to top
tarunsood



Joined: 13 Mar 2006
Posts: 9
Location: india

PostPosted: Sat Jul 29, 2006 2:49 pm    Post subject: Reply with quote

Yes Thanks its working now i have enable the status thing on webserver but did not turned on the extended status now its working fine now
Back to top
Aris



Joined: 29 Sep 2006
Posts: 7

PostPosted: Wed Oct 11, 2006 2:24 pm    Post subject: Reply with quote

Hey Ppl!

I have several servers with URLs
server01.domain.com to server67.domain.com

Al server-status pages are behind the domainnames serverxx.domain.com

Is it possible to edit something so it doenst poll on IP address but on servername (URL)?

Code:

[root@server07 scripts]# ./ws_apachestats.pl server01.xxxx.nl
apache_total_hits:120560748 apache_total_kbytes:233220410 apache_busy_workers:282 apache_idle_workers:88 thread_O:30 threadC:16 threadD:0 threadG:0 threadI:0 threadK:249 threadL:0 threadR:1 threadS:0 threadW:16 thread_W:88 apache_cpuload:.306352[root@server07 scripts]#


But cacti polls
./ws_apachestats.pl xxx.xxx.xxx.xxx (ip address).

|host_description| would be great

I tried changing that but I see:

10/11/2006 09:27:08 PM - CMDPHP: Poller[0] Host[9] DS[247] CMD: perl /var/www/vhosts/xxxx.com/httpdocs/status/scripts/ws_apachestats.pl |host_description|, output: U


regards,


Desmond
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Thu Oct 12, 2006 4:04 am    Post subject: Reply with quote

Aris wrote:
But cacti polls
./ws_apachestats.pl xxx.xxx.xxx.xxx (ip address).
I'm quite sure it doesn't. As I created some extension to this on my own, I'm sure you'll find a wget in the code. And ist takes |host_hostname| from the device you've applied the template to. So if you put the dns name in, wget will use dns resolution, which should be ok. Or are you talking about vhosts?
Reinhard
Back to top
stealthllama



Joined: 21 Jul 2005
Posts: 1

PostPosted: Wed Oct 25, 2006 1:46 pm    Post subject: Reply with quote

I have imported the XML without errors, but when I try to create a graph I get the following errors - Any idea why?

Notice: Undefined index: local_data_id in /usr/share/cacti/site/lib/template.php on line 726

Notice: Undefined index: local_data_id in /usr/share/cacti/site/lib/template.php on line 726

Notice: Undefined index: local_data_id in /usr/share/cacti/site/lib/template.php on line 726

Notice: Undefined index: local_data_id in /usr/share/cacti/site/lib/template.php on line 726

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/lib/template.php:726) in /usr/share/cacti/site/graphs_new.php on line 86

thanks!!!
Back to top
UKS-Gavin



Joined: 06 Oct 2006
Posts: 40

PostPosted: Tue Oct 31, 2006 7:32 am    Post subject: Reply with quote

I'd appreciate some help here, running Cacti 0.8.6h on Debian Sarge 3.1 (stable). I've imported various other templates but this one gives me the following message when trying to import;

Code:

Notice: Undefined index: import_file in /var/www/cacti/templates_import.php on line 56

Notice: Undefined index: import_file in /var/www/cacti/templates_import.php on line 56

Warning: Cannot modify header information - headers already sent by (output started at /var/www/cacti/templates_import.php:56) in /var/www/cacti/templates_import.php on line 62


I've tried importing using the file as well as importing by pasting in the text, neither works.

Any assistance is greatly appreciated.
Back to top
xmtx



Joined: 17 Nov 2006
Posts: 4

PostPosted: Fri Nov 24, 2006 9:12 am    Post subject: Reply with quote

all graphs work execpt for CPU Load.
Code:

RRDTool Says:

ERROR: invalid rpn expression 'c,1800,TREND'


i'm running RRDTool 1.0.x
is there any way to get this to work with RRDTool 1.0.x?

thanks, mt
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Sat Nov 25, 2006 8:36 am    Post subject: Reply with quote

Yep. Omit the line that refers to the "TREND" CDEF from the Graph Template
Reinhard
Back to top
cipix



Joined: 20 Nov 2006
Posts: 5

PostPosted: Thu Nov 30, 2006 10:45 am    Post subject: Reply with quote

What can I do if my apache servers run on ports different than the standard one and I can't change them ? If I put the port number after the hostname in device details, cacti doesn't see the box as being up no more but if not, apache graphs don't get any data cause I presume they're getting the hostname from cacti.

Regards
Back to top
cipix



Joined: 20 Nov 2006
Posts: 5

PostPosted: Thu Nov 30, 2006 11:29 am    Post subject: Reply with quote

Also btw. when I try to add the "Hits / s" graph in "Graph Management" it says :

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="web6-apache - Apache Statistics - Hits / s" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Hits/sec" \
--slope-mode \
AREA:#AAABA1:"Hits/sec" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:" Represents the number of hits per second\n" \
COMMENT:" ApacheStats v0.4 - Rolf Poser\n"

RRDTool Says:

ERROR: Not a valid vname: #AAABA1 in line AREA:#AAABA1:Hits/sec

I'm wondering what could cause that error...
Do you have any ideea ?
Back to top
cipix



Joined: 20 Nov 2006
Posts: 5

PostPosted: Fri Dec 01, 2006 5:37 am    Post subject: Reply with quote

Ignore last post. I was too tired last night and I forgot to setup graph properly
Back to top
cipix



Joined: 20 Nov 2006
Posts: 5

PostPosted: Fri Dec 01, 2006 5:58 am    Post subject: Reply with quote

Hi again ! I have a problem with "Thread Details" plugin. All the other graphs are working fine but this doesn't seem to setup properly. When I imported the xml, there was no error and when I add the graph from "Graph management" on any host that I tried it lets me change only colours for graphs but no data sources(check attached image)

Do you have an ideea over what is wrong ? I'm running cacti-0.8.6i with a 5 minute polling interval.



Screenshot.png
 Description:
 Filesize:  77.09 KB
 Viewed:  6003 Time(s)

Screenshot.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 5 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group