I have a problem, and I upgraded from .86i to .87a hoping it was an issue with cactid / cacti.
I have installed spine now and this upgraded version of cacti, but still get a problem with a script I run.
When run with spine:
/usr/local/spine/bin/spine -f 5 -l 5 -C /etc/cactid.conf
I get this:
01/17/2008 12:15:36 PM - SPINE: Poller[0] Host[5] DS[1165] SCRIPT: /bin/sh /usr/local/apache/sites/cacti.4rnd.com/html/scripts/sms.sh, output: wip:641 wipretry:26 error:178 okretry0:169402 okretry1:352 okretryg1:19
In the cacti.log file when it is run through the poller.php cronjob I get this:
01/17/2008 11:55:02 AM - SPINE: Poller[0] Host[5] DS[1165] WARNING: Result from SCRIPT not valid. Partial Result: wip: wipretry: error...
01/17/2008 11:55:02 AM - SPINE: Poller[0] Host[5] DS[1165] SCRIPT: /bin/sh /usr/local/apache/sites/cacti.4rnd.com/html/scripts/sms.sh, output: U
any reason why that would happen? I have searched the forum, but dont seem to find anything that is related.
Thank you,
Kosta
problem with poller.php!
Moderators: Developers, Moderators
still shows that output: U
This is the script:
#!/bin/sh
mysql='/usr/bin/mysql'
tail='/usr/bin/tail'
echo='/bin/echo'
awk='/bin/awk'
data=`$mysql -ppass real_long_query_here" | $tail -1 `
$echo $data | $awk '{print "wip:"$1" wipretry:"$2" error:"$3" okretry0:"$4" okretry1:"$5" okretryg1:"$6}';
What else do you think it might be, as it works on the command line, and user the user cacti runs as
thanks,
kosta
This is the script:
#!/bin/sh
mysql='/usr/bin/mysql'
tail='/usr/bin/tail'
echo='/bin/echo'
awk='/bin/awk'
data=`$mysql -ppass real_long_query_here" | $tail -1 `
$echo $data | $awk '{print "wip:"$1" wipretry:"$2" error:"$3" okretry0:"$4" okretry1:"$5" okretryg1:"$6}';
What else do you think it might be, as it works on the command line, and user the user cacti runs as
thanks,
kosta
Who is online
Users browsing this forum: No registered users and 2 guests