Hello,
I installed cacti with aptitude not from sources.
I use RRDtool 1.4.3.
I created a script
temp=`sensors | grep 1: | grep Core | cut -d"+" -f 2 | cut -d"." -f 1`
printf $temp
After configuring cacti, i see a graph but it empty. When i see rrd file associated with it i see that
RRD^@0003^@^@^@^@^@^@^@^@/%ÀÇC+^_[^A^@^@^@^@^@^@^@
It is not updated but the other graph are. Only those wich were created by my script doesn't work.
I've got a cron job in cron.d/cacti with that
MAILTO=root
*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
And in my cacti.log i have this error
06/18/2011 06:10:02 PM - CMDPHP: Poller[0] Host[1] DS[9] WARNING: Result from CMD not valid. Partial Result: U
06/18/2011 06:10:02 PM - SYSTEM STATS: Time:0.9549 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:15 RRDsProcessed:11
So i need your help because i don't understant where i'm wrong.
Permissions are in 777 for /var/lib/cacti ans in subfolder in 770 but with group www-data.
If anyone can solved my problem...
Result from CMD not valid. Partial Result
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Result from CMD not valid. Partial Result
Please see 2nd link of my sig as a start. Generally speaking, at least using /full/path/to/commands used in scripts is recommended
R.
R.
Re: Result from CMD not valid. Partial Result
In my log I have
06/20/2011 09:15:02 PM - CMDPHP: Poller[0] Host[1] DS[8] CMD: sh /usr/share/cacti/site/scripts/sensors_core1, output: 71
06/20/2011 09:15:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_sensors_core1_8.rrd --template sensors_core1 1308597301:71
So it works but i see nothing in the rrd file, and nothing more in the graph.
If i use this command in phpmyadmin
SELECT count( * )
FROM poller_output
I see this result
+ Options
count(*)
0
Any idea ?
06/20/2011 09:15:02 PM - CMDPHP: Poller[0] Host[1] DS[8] CMD: sh /usr/share/cacti/site/scripts/sensors_core1, output: 71
06/20/2011 09:15:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_sensors_core1_8.rrd --template sensors_core1 1308597301:71
So it works but i see nothing in the rrd file, and nothing more in the graph.
If i use this command in phpmyadmin
SELECT count( * )
FROM poller_output
I see this result
+ Options
count(*)
0
Any idea ?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Result from CMD not valid. Partial Result
Until then, all seems fine.yoshx wrote:In my log I have
06/20/2011 09:15:02 PM - CMDPHP: Poller[0] Host[1] DS[8] CMD: sh /usr/share/cacti/site/scripts/sensors_core1, output: 71
06/20/2011 09:15:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_sensors_core1_8.rrd --template sensors_core1 1308597301:71
Why do you suppose that this could help in any way?If i use this command in phpmyadmin
SELECT count( * )
FROM poller_output
Why not proceeding with the link I provided?
R.
Re: Result from CMD not valid. Partial Result
All seems good but i have no update in my rdd file.
And i follow the link and the command is in the end of the link. And all the other point of the link are good, i tested them.
And i follow the link and the command is in the end of the link. And all the other point of the link are good, i tested them.
Who is online
Users browsing this forum: No registered users and 2 guests