This has gotta be me somehow. But I'm stumped; maybe somebody else using this code can see what I got wrong?
Your graphing scripts are working fine on one server (fsfs), but I can't get them to work on another (rebma). Both are running 9.10-Stable latest (well, I actually haven't checked yet today, but they were yesterday; they could be one release out of date now I suppose).
On Rebma, the cron jobs are running:
Code:
From /var/log/cron:
May 7 15:35:00 rebma /usr/sbin/cron[9361]: (root) CMD (PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /mnt/z01/info/temps/rrd-graph.ssh /mnt/z01/info/temps/temp-5min.rrd)
May 7 15:35:00 rebma /usr/sbin/cron[9363]: (root) CMD (PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /mnt/z01/info/temps/rrd.sh /mnt/z01/info/temps/temp-5min.rrd)
Note I'm currently not redirecting stdout to /dev/null; however, no email is turning up at the root email address.
Here's the directory the scripts are in (and hence the pngs should appear in).
Code:
[ddb@rebma ~]$ ls -al /mnt/z01/info/temps/
total 104
drwxr-xr-x 2 root wheel 7 May 7 14:03 .
drwxr-xr-x 3 root wheel 3 May 7 13:22 ..
-rwxr-xr-x 1 root wheel 6033 May 7 13:35 rrd-graph.sh
-rwxr-xr-x 1 root wheel 2264 May 7 13:35 rrd.sh
-rw-r--r-- 1 root wheel 389264 May 7 14:04 temps-5min.rrd
-rwxr-xr-x 1 root wheel 1184 May 7 13:35 temps-rrd-format.sh
-rwxr-xr-x 1 root wheel 754 May 7 13:35 temps-simple.sh
The .rrd file that is present (with the 14:04 timestamp) resulted from my running rrd.sh manually (as root) once. That worked, and created the file. But there are no .png files, and this has been running for over an hour.
Protections look right to me. No "+", so no ACLs to possibly confuse things.
Oh, and temps-simple.sh runs manually fine.
EDITED: I do see that the rrd file from my manual run has the wrong name, so it's no surprise that the graphing run isn't picking that up. But this does nothing I can see to explain why rrd.sh isn't generating a file.
EDITED: kept thrashing, restarted, thrashed some more, slept. Working now. Wish I knew what had been wrong.