- Posts: 107
- Thank you received: 0
Performance and logs alerts
19 years 7 months ago #7748
by aminos
sorry
in want just to explain that:
i configured an alert that triggers myscript.bat if FTP coonections are over the limit of 0.
myscript.bat contains :
[code:1] wscript.exe yourscript.vbs[/code:1]
well that works i mean at least it creates the counter.txt file
but if i specified "Measured value" as argument nothing happend
even the creation of the file did not work.
that's why i want to hard coded FTP connexions on your script without specifying the argument.
i don't know if you have an idea :
anyway thanks a lot for the response :lol:
in want just to explain that:
i configured an alert that triggers myscript.bat if FTP coonections are over the limit of 0.
myscript.bat contains :
[code:1] wscript.exe yourscript.vbs[/code:1]
well that works i mean at least it creates the counter.txt file
but if i specified "Measured value" as argument nothing happend
even the creation of the file did not work.
that's why i want to hard coded FTP connexions on your script without specifying the argument.
i don't know if you have an idea :
anyway thanks a lot for the response :lol:
19 years 7 months ago #7752
by DaLight
Replied by DaLight on topic Re: Performance and logs alerts
Sorry aminos, I'm not fully up to date with the full WMI data structure. This is why I took advantage of the shortcut provided by the command line arguments option in the Alerts setup.
However, hope is not lost, you can use the good old DOS command line argument.
You said your alert called up a Batch file called myscript.bat which contains:
wscript.exe yourscript.vbs
All you need to do is add "%1" to your batch file like so:
wscript.exe yourscript.vbs %1
This will then pass measured value to "yourscript.vbs". Also make sure that "Measured Value" is specified in the Alerts command line argument window.
Hope this helps. Let me know and if not, I'll take a look at accessing the WMI structure directly.
However, hope is not lost, you can use the good old DOS command line argument.
You said your alert called up a Batch file called myscript.bat which contains:
wscript.exe yourscript.vbs
All you need to do is add "%1" to your batch file like so:
wscript.exe yourscript.vbs %1
This will then pass measured value to "yourscript.vbs". Also make sure that "Measured Value" is specified in the Alerts command line argument window.
Hope this helps. Let me know and if not, I'll take a look at accessing the WMI structure directly.
19 years 7 months ago #7762
by aminos
HI
well i'm sorry to say that it did not work, i do not know why :
actually i searched the Microsoft web site for the translation of the counter name to vbscript but i've got nothing.
well i'll search again.
Thanks a lot Dalight for your help, i'll inform you if i found something.
do the fact i found Gene6 ftp server good enough to do that with all this scripts, but it's good to know things how it work
:lol:
well i'm sorry to say that it did not work, i do not know why :
actually i searched the Microsoft web site for the translation of the counter name to vbscript but i've got nothing.
well i'll search again.
Thanks a lot Dalight for your help, i'll inform you if i found something.
do the fact i found Gene6 ftp server good enough to do that with all this scripts, but it's good to know things how it work
:lol:
19 years 7 months ago #7772
by Chris
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
Replied by Chris on topic Re: Performance and logs alerts
While this might be a bit off-topic, I think it will serve well for this particular case.
Around 6 years ago, I was reading a great book on how to become a true professional in your working environment and one of the few things I still remember is this excellent quote somewhere in the middle of the book:
'What you get when you fail to successfully complete a job, is experience'
Cheers and well done guys - it's great to see people from our community putting in the effort to help each other - it always pays back someday.
Around 6 years ago, I was reading a great book on how to become a true professional in your working environment and one of the few things I still remember is this excellent quote somewhere in the middle of the book:
'What you get when you fail to successfully complete a job, is experience'
Cheers and well done guys - it's great to see people from our community putting in the effort to help each other - it always pays back someday.
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
19 years 7 months ago #7781
by aminos
Replied by aminos on topic Thanks Chris
Thanks Chris,
well i want just to say thank you Chris for offering us this space where we can share our knowledge and experinces and experiments too
Thanks for all, you did a great Job for the community
well i want just to say thank you Chris for offering us this space where we can share our knowledge and experinces and experiments too
Thanks for all, you did a great Job for the community
19 years 7 months ago #7783
by DaLight
Replied by DaLight on topic Re: Performance and logs alerts
Thanks for the encouragement Chris, and thanks as well for the site.
Aminos, you said a couple of posts ago that you were using the Gene6 ftp server. Are saying that it provides a builtin connection alerting mechanism. Let me know. I'm interested. Also, if you manage to find the VBScript references for accessing WMI, let me know.
Aminos, you said a couple of posts ago that you were using the Gene6 ftp server. Are saying that it provides a builtin connection alerting mechanism. Let me know. I'm interested. Also, if you manage to find the VBScript references for accessing WMI, let me know.
Time to create page: 0.134 seconds