If using V8, then check out the new script "flow control keywords"
(use the quoted text or the command word to find in manual), IfState
and Exit are the ones I'm thinking will help you.
>From the manual:
IfState - This checks for the current state (ok or error) and jumps to
a label if true.
Valid syntax: IfState {ERR|OK} label
Example: IfState ERR End
IfState OK Bye
Exit - This immediately ends the script with an optional state (ok or
error). The optional state overrides the current state.
Valid syntax: Exit {ERR|OK}
Example: Exit ERR
Exit OK
Use the first to check the state and jump to a label that uses the
second to set the state opposite....
Note: Testing and not finding the service means the timeout will
expire (the failed test will take lots longer than for a device that
is good and responds).
I think you want it to notify you if VNC is on for more than some
defined period of time. If you are using it, how long would it be on
for? Only after that time elapses, would you want a notification.
Daniel Donnelly
----- Original Message -----
From: "Jeff Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 12:50 PM
Subject: [WhatsUp Forum] Custom Service
Has anyone created a custom service and check for the non existence of
something? For example I want WUG to report an alert if a service is
running on a PC. We are using VNC to remote control our desktops as
needed for support. VNC should never be running on the computers
unless we are actively using it. So I want WUG to show a system as
down if VNC is running. So to test I could open a TCP port and check
for the "RFB" string. However I can't figure out how to get WUG to
report down if the expect statement works.
Any Ideas?
Jeff Cook
Network Administrator
Whatcom Educational Credit Union
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/