Probably the reason is that by default you're on the C drive while the rest
is on the D drive.
What happens if you add
        d:
To the .BAT file (after the CD command)
 


Dirk.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 5:38 PM
To: [EMAIL PROTECTED]
Subject: [SA-list] RRDTools graph generation problem

Hi everyone,

I am experiencing problems with RRDTools, expecially when generating
graphs. However, the problems seems to be with ServersAlive (release
4.1.1609/Enterprise version activated).

The batch file created by SA for generating graphs works well when launched
from the explorer. When launched from Servers Alive, the change directory
(CD) command at the top of the sa_graph_rrd.bat file doesn't have any
effects and rrdtools is executed in the current user directory (my
directory when I make tests and c:\$windir\system32 when it is a service).

To solve this, I try to perform an additional external check to force graph
generation : no results.

Does anybody have an idea ? Thank you.


I wrote a fake batch file to show you the problem :

--------- BATCH FILE fake.bat ----------

REM
****************************************************************************
*****************
REM Script generated by Servers Alive on 07-Jun-2004 at 10:33:11
REM
****************************************************************************
*****************
cd D:\Apps\ServersAlive\Manchester\Web\RRDTools\
D:\Apps\RRDTools\rrdtool.exe graph  fake.gif -s -3600
--title="CZ-2-AESMCHSTA Backup Failure" DEF:sa_601=fake:roundtrip:MAX
LINE1:sa_601#0000FF:"Response Time"
pause


---------- ON THE CONSOLE ---------

C:\Documents and Settings\charolr\Start Menu>REM
*******************************
**************************************************************

C:\Documents and Settings\charolr\Start Menu>REM Script generated by
Servers Ali
ve on 07-Jun-2004 at 10:33:11

C:\Documents and Settings\charolr\Start Menu>REM
*******************************
**************************************************************

C:\Documents and Settings\charolr\Start Menu>cd
D:\Apps\ServersAlive\Manchester\
Web\RRDTools\

C:\Documents and Settings\charolr\Start Menu>D:\Apps\RRDTools\rrdtool.exe
graph
 fake.gif -s -3600  --title="CZ-2-AESMCHSTA Backup Failure"
DEF:sa_601=fake:roun
dtrip:MAX LINE1:sa_601#0000FF:"Response Time"
ERROR: opening 'fake': No such file or directory

C:\Documents and Settings\charolr\Start Menu>pause
Press any key to continue . . .

____________________________________________________________________________
__________________________________

The affairs, business and property of T&N Ltd are being managed by the
Joint Administrators, S Freakley, J Gleave, and G Squires.
T&N Ltd is a debtor under Chapter 11 of Title 11 of the United States Code.



--------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive



--------------

[This E-mail scanned for viruses by Declude Virus]

To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive

Reply via email to