Not work exec bat , exe, vbs, ect
|
Logged in as: Guest
|
|
Users viewing this topic:
none
|
|
Login | |
|
Not work exec bat , exe, vbs, ect - 7.Apr.2006 9:55:05 AM
|
|
|
jgamella
Posts: 6
Joined: 20.Apr.2005
Status: offline
|
Monitor 7.0 last build Hello everyone I've got a problem when I try to run a bat or exec from Network Monitor. I am doing a check snmp which work fine but, when this monitor fails network monitor dosen't take any action. I want to exec a remote shutdown with the next parameters path\shutdown.exe /s /m \\servername - t 400 "message" and it's not working. Both services of NM 7 are running with administrative domain provileges but any happens. Anyone can help me?? Thank very much. Pd: Sorry for my English
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 10.Apr.2006 3:43:35 AM
|
|
|
Patrizia
Posts: 8474
Joined: 18.Aug.2003
From: Malta
Status: offline
|
Hello jgamella, Please check the following article: http://kbase.gfi.com/showarticle.asp?id=KBID002543
_____________________________
Patrizia Caruana GFI Software - www.gfi.com Messaging, Content Security & Network Security Software
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 10.Apr.2006 10:21:28 AM
|
|
|
jgamella
Posts: 6
Joined: 20.Apr.2005
Status: offline
|
Hello Patrizia and thanks for answer the message. I read the article but I follow having the same trouble. There isn't appears any task in task manager such as notepad. Task manager dosen't display nothing. Both network monitor services are being executed by administrative privileges. I think that in NM6.xx was working fine it. I would like to execute a remote shutdown in several windows server when the SAI is on Battery Can you tell me anything to try? Thank very much
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 11.Apr.2006 4:19:37 AM
|
|
|
Patrizia
Posts: 8474
Joined: 18.Aug.2003
From: Malta
Status: offline
|
jgamella, do the scripts require any user input to work?
_____________________________
Patrizia Caruana GFI Software - www.gfi.com Messaging, Content Security & Network Security Software
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 11.Apr.2006 10:29:37 AM
|
|
|
jgamella
Posts: 6
Joined: 20.Apr.2005
Status: offline
|
Hi! Patrizia thank again to answer. NM6 is not executing any scripts. It's only check a SNMP string and returns a value, that's working fine. When the SNMP query is under value I have established that NM6 should execute a remote shutdown.exe in several servers to protect them, until the SAI (SNMP query) return to normal status. I did several test such as execute notepad but I can't see any notepad task in windows taskmanager. I tried also to execute a bat and neither happened anything. Any idea? Pd: Images links http://img238.imageshack.us/my.php?image=monitor12cx.jpg http://img238.imageshack.us/my.php?image=monitor29vd.jpg
< Message edited by jgamella -- 11.Apr.2006 10:31:34 AM >
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 13.Apr.2006 5:12:25 AM
|
|
|
Nicks
Posts: 2741
Joined: 17.Mar.2003
Status: offline
|
Hi, I checked the images. It seems that you are placing the parameters in the executable filename field. The parameters need to be placed in the Parameters field. Check also the Network Server Monitor Status Monitor. This may provide you with more information on the problem Network Server Monitor is encountering when it tries to execute the file. To make your testing simple, you can try to configure a rule which is simple to fail (e.g. ping rule).You can test using such a rule - rather then waiting for your check to fail. Let us know how it goes :)
_____________________________
Nicholas Sciberras GFI Software - www.gfi.com Messaging, Content Security & Network Security Software
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 17.Apr.2006 6:01:02 AM
|
|
|
jgamella
Posts: 6
Joined: 20.Apr.2005
Status: offline
|
Hi Nicks, thank you to answer. Yes, I know, I placed the parameter in the executable filename field. Also I have placed the parameters in the parameters field. I think I have tried lots of possibilities and the results are the same. Futhermore, I tried such as simple ping rule, and I saw in status monitor when the rule fails. All seem work fine until the rule has to execute the shutdown or whatever else, such as notepad, then nothing happens. I didn't see any task in taskmanager. Thank you to the help ;-)
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 17.Apr.2006 6:16:29 AM
|
|
|
Nicks
Posts: 2741
Joined: 17.Mar.2003
Status: offline
|
Do you get any errors in the status monitor about why Network Server Monitor is not executing the command that you specify? Should the problem persists, I would recommend that you send us your troubleshooting files to forums@gfi.com. Thank you.
_____________________________
Nicholas Sciberras GFI Software - www.gfi.com Messaging, Content Security & Network Security Software
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 30.Oct.2007 4:52:15 AM
|
|
|
chrigiboy
Posts: 9
Joined: 28.Oct.2007
Status: offline
|
Okay, now i've tested with a .vbs Script. I got the same Problem. Here my settings: File to execute: C:\myscript.vbs Parameters to pass to the file: 1 2 3 4 The Script should not receive any Parameters. I think this is a softwarebug.
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 30.Oct.2007 7:38:29 AM
|
|
|
chrigiboy
Posts: 9
Joined: 28.Oct.2007
Status: offline
|
Now, i've still found the Problem. When i use Date or Time, the Script faild (URL not allowed). And when i use a HTTP/HTTPS Check with %Check_Target% NSM can't run the Parameters, because HTTP / HTTPS Check have no Check_Target. So i have change to the fellow settings, for all MonitorChecks: File to execute: C:\Programme\Internet Explorer\iexplore.exe Parameters to pass to the file: http://localhost/smsalert/servercheck.asp?Service=%CHECK_NAME%&Check_Result=%CHECK_RESULT% Now, it works smoothly.
|
|
|
|
RE: Not work exec bat , exe, vbs, ect - 1.Nov.2007 4:59:11 AM
|
|
|
Mark Busuttil
Posts: 4836
Joined: 16.Oct.2005
Status: offline
|
Thank you for letting us know!
_____________________________
Regards, Mark Busuttil GFI Software Ltd - www.gfi.com Messaging, Content Security & Network Security Software GFI: MailEssentials - MailSecurity - MailArchiver - FAXmaker - LANguard – WebMonitor
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|