Windows uptime statistics

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Posts: 25
Joined: Wed Jan 25, 2006 8:27 am

Re: linux -> Windows WMI

#61 Post by zeroy » Wed Apr 07, 2010 11:47 am

royce wrote:Next, I use a quick and dirty solution to fix the buffered-output problem. I run the through a script that just echo's all output up front. (Because cactid/php want it that way..) anyway. Dirty dirty.

Code: Select all

E=`/usr/share/cacti/scripts/uptime/ $1 $2`

echo $E
Ok, i got the command setup, i believe they are:

Code: Select all

command[win32_uptime2]=c:\uptime\uptime.exe /s
But i dont get the part with the above little scripts for output. Currently Cacti outputs the Uptime and SLA:

Code: Select all

04/07/2010 05:45:17 PM - CMDPHP: Poller[0] Host[2] DS[160] CMD: sh /var/www/cacti/scripts/uptime/ <my_host> 99.9900, output: cur_uptime:2851513 sla_avail:99.9900
But i think im missing the other output data?

Can anyone help?

Post Reply