Search found 15 matches

by Pinky
Sat Mar 28, 2009 9:56 am
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

Ok, my graphs are working now. Unfortunately I there were some bugs in my Graph Template. But I've one more question: Sometimes the sensor fails and returns 85.00°C. Is it possible to skip every 85.00°C dataset, and still draw a contiuous line ? The graphs I've right now ,have to unpleasant breakawa...
by Pinky
Wed Mar 25, 2009 4:41 pm
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

Is it a problem for cacti, if the script adds a newline to it's output ? For example: #!/bin/sh cat /var/www/tempsensor/temp.txt | grep "sensor $1" | awk '{print $3}' server-debian:/usr/share/cacti/site/scripts$ ./digitemp_single.sh 0 17.812500 server-debian:/usr/share/cacti/site/scripts$ ...
by Pinky
Tue Mar 24, 2009 4:50 pm
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

here is the output of rrdtool fetch: rrdtool fetch AVERAGE /var/lib/cacti/rra/localhost_sensor1_24.rrd ERROR: unknown consolidation function '/var/lib/cacti/rra/localhost_temperature_25.rrd' rrdtool info; last_ds shows reasonable content : server-debian:/var/lib/cacti/rra$ rrdtool info localhost_sen...
by Pinky
Tue Mar 24, 2009 4:47 pm
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

sorry, but there was an error in my Data Template. I edited my post.
Still no temperature-graphs... other graphs work fine
by Pinky
Tue Mar 24, 2009 4:35 pm
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

I experimented for a while, it seems like, that now some data is added to the rra, but still no graph can be seen 03/24/2009 10:41:31 PM - CMDPHP: Poller[0] Host[1] DS[24] CMD: /bin/cat /var/www/tempsensor/temp.txt | /usr/bin/awk '{printf "%s ",$1 $2 $3}', output: sensor0:18.375000 sensor1...
by Pinky
Sat Mar 21, 2009 4:29 am
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

I forgot to post the output of cmd.php (debug-level): server-debian:/usr/share/cacti/site$ php -q cmd.php 03/21/2009 10:24:08 AM - CMDPHP: Poller[0] Host[0] DS[18] CMD: /bin/cat /var/www/tempsensor/temp.txt | /usr/bin/awk '{printf "%s ",$1 $2 $3}', output: sensor0:18.625000 sensor1:29.6250...
by Pinky
Fri Mar 20, 2009 1:09 pm
Forum: Scripts and Templates
Topic: Own Script: "CMDPHP: Result from CMD not valid"
Replies: 11
Views: 6501

Own Script: "CMDPHP: Result from CMD not valid"

Hello, I'am working on a template to graph the results of my digitemp-output. The logfile I get looks like this: sensor 0: 18.937500 degrees C sensor 1: 22.625000 degrees C sensor 2: 5.562500 degrees C sensor 3: 22.125000 degrees C sensor 4: 63.500000 degrees C In order to make this logfile useable ...
by Pinky
Wed Jun 29, 2005 9:29 am
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

yepp, you've to edit your ts.php

Code: Select all

$socket = getSocket("remoteip", 51234, $errno, $errstr, 1);
by Pinky
Tue Jun 21, 2005 1:15 pm
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

Check you "Data Input Methods" and "Data Sources"
by Pinky
Tue Jun 21, 2005 6:29 am
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

Sounds good ! Perhaps you've to update you Cacti.
by Pinky
Mon Jun 20, 2005 1:03 pm
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

Sorry, but you've posted the wrong log. Post your "php cacti/scripts/ts.php" output.

Here's my output:

Code: Select all

server scripts # php ts.php
1server scripts #
by Pinky
Mon Jun 20, 2005 3:56 am
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

post your "php $cactidir/scripts/ts.php" output
by Pinky
Fri Jun 17, 2005 4:40 pm
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

I'm using 0.8.6d, too.

Download should work. If not, ask the administrator
by Pinky
Sat May 07, 2005 3:28 pm
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

Picture

Picture:
by Pinky
Sat May 07, 2005 3:10 pm
Forum: Scripts and Templates
Topic: TeamSpeak - Current Players
Replies: 37
Views: 46950

TeamSpeak - Current Players

This plugin shows the current number of players, who are connected on your local TeamSpeakServer.

INSTALL:

1.copy the ts.php into your scripts directory
2. import the xml file using the cacti webinterface

UPDATE:

11.05.05 - I fixed the average bug