Ok, i got the command setup, i believe they are:royce wrote:Next, I use a quick and dirty solution to fix the buffered-output problem. I run the win_update.sh through a script that just echo's all output up front. (Because cactid/php want it that way..) anyway. Dirty dirty.
Code: Select all
#!/bin/sh E=`/usr/share/cacti/scripts/uptime/win_uptime.sh $1 $2` echo $E
Code: Select all
command[win32_uptime1]=c:\uptime\uptime.exe
command[win32_uptime2]=c:\uptime\uptime.exe /s
Code: Select all
04/07/2010 05:45:17 PM - CMDPHP: Poller[0] Host[2] DS[160] CMD: sh /var/www/cacti/scripts/uptime/uptime.sh <my_host> 99.9900, output: cur_uptime:2851513 sla_avail:99.9900
Can anyone help?