Hi
I want to check, if my webserver is showing one speziall keyword when I call the side. Afterwards I want to use Thold to alarm me, when Apache is down.
I wrote a PHP Script, which is giving a 1 or a 0. I created a Data Input Method, Data Source template, and graph template and everything looks ok. The RRD file is created and I also don't see any errors in the log. But graph is not displayed. I see only the titel.
What could be wrong?
Thanks
Michael
No Graph for a own script
Moderators: Developers, Moderators
In the log file I see the following:
Michael
Is the number "1" after the word action the result from the script? If yes, then I would be also sure, that the script is working.Data Source: bern - WebCheck
RRD: /usr/share/cacti/site/rra/bern_webcheck_69.rrd
Action: 1, Script: /usr/bin/php -q /usr/share/cacti/site/scripts/webcheck.php http://bern.tophost.ch Bern
Michael
Here are a bit more information
Data Source Debug
/usr/bin/rrdtool create \
/usr/share/cacti/site/rra/bern_webcheck_69.rrd \
--step 300 \
DS:webcheck:ABSOLUTE:600:0:1 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
No. The Action gives the type of the query to be used. You'll want to switch to DEBUG mode and have a look at cacti.log to see what's going oncoolmike wrote:In the log file I see the following:
Is the number "1" after the word action the result from the script? If yes, then I would be also sure, that the script is working.Data Source: bern - WebCheck
RRD: /usr/share/cacti/site/rra/bern_webcheck_69.rrd
Action: 1, Script: /usr/bin/php -q /usr/share/cacti/site/scripts/webcheck.php http://bern.tophost.ch Bern
Michael
Reinhard
Hi
Thanks for your answer, I activated now the debug mode and just found the following in the log:
[quate]
11/20/2005 03:40:06 PM - CMDPHP: Poller[0] Host[4] DS[70] CMD: /usr/bin/php -q /usr/share/cacti/site/scripts/webcheck.php http://zug.tophost.ch Zug, output: 1
[/quote]
The output is correct, but still the graph is not created...
Michael
Thanks for your answer, I activated now the debug mode and just found the following in the log:
[quate]
11/20/2005 03:40:06 PM - CMDPHP: Poller[0] Host[4] DS[70] CMD: /usr/bin/php -q /usr/share/cacti/site/scripts/webcheck.php http://zug.tophost.ch Zug, output: 1
[/quote]
The output is correct, but still the graph is not created...
Michael
Who is online
Users browsing this forum: No registered users and 9 guests