Windows uptime statistics

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

Moderators: Developers, Moderators

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

Re: linux -> Windows WMI

Post by zeroy »

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
Ok, i got the command setup, i believe they are:

Code: Select all

command[win32_uptime1]=c:\uptime\uptime.exe
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/uptime.sh <my_host> 99.9900, output: cur_uptime:2851513 sla_avail:99.9900
But i think im missing the other output data?

Can anyone help?
¬¬ZeRoY¬¬
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest