Hi,
I have a graph for my CPU & MB temperatures. When i run the script it returns:
CPU:35 MB:38
From cacti log result is different:
CMD: /usr/share/cacti/site/scripts/sensors, output: CPU:44 MB:38
and the result is this:
Only CPU temp is different!
Please help, i check and duoble chek for any errors, but still a reciev different values.
Different values
Moderators: Developers, Moderators
localhostgandalf wrote:The script runs against localhost or against a remote host?
Reinhard
This is the script:
Code: Select all
cat /usr/share/cacti/site/scripts/sensors
#!/bin/bash
t1=`/usr/bin/sensors |grep ^CPU | awk '{print $3}' | cut -c 2-3`
t2=`/usr/bin/sensors |grep ^M/B | awk '{print $3}' | cut -c 2-3`
echo "CPU:$t1 MB:$t2"
Code: Select all
#!/bin/bash
t1=`/usr/bin/sensors |grep ^CPU | awk '{print $3}' | cut -c 2-3`
t2=`/usr/bin/sensors |grep ^M/B | awk '{print $3}' | cut -c 2-3`
echo "CPU:35 MB:$t2"
CMD: /usr/share/cacti/site/scripts/sensors, output: CPU:35 MB:38
Using cmd.phpgandalf wrote:This is which version of cacti? Using cmd.php or spine/cactid? Which version, if spine/cactid?
Reinhard
Version 0.8.6i
Yes, it was!gandalf wrote:My workstations does not support sensors. So please post output of a sensors command. Is execution of sensors restricted to root?
Reinhard
Now is OK. Thank you!
Who is online
Users browsing this forum: No registered users and 1 guest