i'm trying to save input from a custom html form in Solarwinds NetPerformanceMonitor into a .txt file. I wrote the code in 2 .asp files and it worked.
I added the code in a custom html template in the NetPerfMon and it is shown correctly. This is the code:
<form method="post" action="serial.asp">
Seriennummer des Zertifikats: <input type="text" size="50" name="serial" />
<br><br><input type="submit" value="Zertifikat sperren"><br><br>
<!-- Green HR --><Table Border=0 CellSpacing=0 CellPadding=0 Width=100%><TR><TD BgColor=#008080><Img Src="certspc.gif" Alt="" Height=2 Width=1></TD></TR></Table>
<br><B>Gründe für die Sperrung:</B><br><br>
<td>Kompromittierung der Zertifizierungsstelle</th>
<td>Ende des Vorgangs</th>
The code for the "serial.asp" that should save the input into a txt file looks like this:
Dim serial, reason
serial = Request.form("serial")
reason = Request.form("reason")
f.WriteLine(serial & ";" & reason)
The question is, is it possible to do this in Solarwinds and if so, what am i doing wrong, because there is no txt file created.
Thanks for help!
P.S. I added a pic from the NetPerfMon Panel.
This isn't so much of an NPM question as an ASP question. When I ran into this in the past (and it's been a long time since I wrote something like this), my issue was always with permissions. Whatever user the website is using to run (I think it's normally "NETWORK SERVICE") needs to have full permissions to that physical location on the server. It's hard to troubleshoot this without actually writing this in my own environment.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.