Recurring Notifications - Up/Down count - Workaround

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Recurring Notifications - Up/Down count - WorkaroundExpand / Collapse
Author
Message
Posted 3/30/2005 5:25:50 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/21/2006 11:24:00 AM
Posts: 72, Visits: 1
Hi Board

Unfortanately, recurring notifications as used in WUG is not yet supported in WUP; feature request already sent to Ipswitch. Anyway, I'm thinking of a workaround:

We could do an active or passive monitor on local WUP host, which triggers an action including following message string:
%System.NumberofUpDevices %System.NumberofDownDevices %System.Time

Drawbacks:
If an active monitor is used to fire this trigger, there will always be at least one down count.

Has anyone an idea of a suitable monitor or a solution to fire the trigger? Did anyone already come up with a diffrent approach?

Regards,

Daniel
Post #6090
Posted 3/30/2005 2:44:34 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/30/2005 12:39:00 PM
Posts: 15, Visits: 1

I'll take a shot at this...

Create a program action for your down state that willcreate a windows scheduled task.  The command-line for a task that runs every 20 minutes might look something like:

schtasks /create /sc minute /mo 20 /tn "My Sched Task" /tr 'c:\scripts\sendemail.vbs someone@nowhere.com "%Device.Type %Device.HostName is %Device.State."'

Create a program action for your up state to delete the scheduled task.  command-line looks something like:

schtasks /delete /tn "My Sched Task"

Now, the hard part....write the sendemail.vbs to perform the actual sending of the email...

another possible script could send a syslog message back to WUP.  In which case WUP would have a syslog action to send an email.  In this second case though you could not use %variables as they will have to do with the source of the Syslog not the original device active monitor that started the scheduled task.

Rodgers

Post #6114
Posted 4/1/2005 12:06:17 AM


Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: WhatsUp Gold Expert
Last Login: Today @ 6:50:15 AM
Posts: 1,490, Visits: 4,686
Hi,

It's true you don't have recurring notifications like in WUG - But there is something way cooler (imho).

You can create in WUP new states, like "down at least 10mn", then "down at least 30mn", then "down at least 1hour", and so on.

Although it *seems* tedious at first, what you could do is create a number of new states and trigger actions when your device is down 10mn, 30mn, 1h,....

I find it way better than recurring notifications becaused, based on a service-level agreement, you can "escalate" you alerts. Alert for 10mn can be different from alert for 1h... ie sent to different people, or to a pager instead of an email...

HTH


Reading, writing and arithmetic - If you need to choose, please take option 1.
Post #6164
Posted 4/28/2005 9:35:59 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/21/2006 11:24:00 AM
Posts: 72, Visits: 1
Quite some time passed since anyone posted to this topic. So I like to pick it up once more ...

@rmoore
This would be a lot of work for such a simple task. But anyway, thx for your input. At that time I either had no other solution to offer.

@Sergio
> You can create in WUP new states, like "down at least 10mn",
> then "down at least 30mn", then "down at least 1hour", and so on.
This is not quite, what I was looking for. The reason for this sheduled task (reccurring notification) is, believe it or not, that we rarely get pager notifications for down services or snmp traps.

So what I'm looking for is the following:
I would like to receive a pager notifications, every morning at 8:00 am, showing me the network status and ALSO (@Sergio ) prooving me, that pager notifications works smoothly.

Workaround:
In the meanwhile I've come up with a new workaround, needing your assistance to complete it. I did the following:

- configured a new device (loopback) called "pager check" on 127.0.0.1
- set up a "snmp any" passive monitor with pager action applied
- pager action has following message string:
%System.NumberofUpDevices up and %System.NumberofDownDevices down & at %System.Time

Now I need a way to send a snmp trap "from WUP to WUP"! Any ideas/solutions?

I tried TrapGen.exe but it simply doesn't work. There's no error while testing on commandline (trapgen.exe -d 127.0.0.1), but also no trap received by WUP, neither in device log nor in system log). I addtionally tried several diffrent IP's. A .dll comes with this tool. Trying to register the included .dll, fails with error (please see the attached file).
This tool is not only mentioned in most forums and websites (was googling quite a time) but was also mentioned on WUP/WUG maillist a while ago by an IPSWITCH representative. The tool can be found at www.ncomtech.com/download.htm. Can anyone help me getting this tool to work?

If there is a way to send snmp traps strait away from windows (using Win2K Srv) or by using another freeware tool, then I would be glad to hear this.

Rather long post, if anyone read to the end ... thank you!

Regards, Daniel


  Post Attachments 
trapgen_error.jpg (2 views, 42.85 KB)
Post #6830
Posted 4/29/2005 12:07:33 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/30/2005 12:39:00 PM
Posts: 15, Visits: 1

Daniel,

The task thing wasn't that bad, ok YES it was.  The really bad part was the money I spent buying additional software to do voice alerts...

I now have WUP setup to call my cell when there is a problem.   Basically, WUP starts a task that runs every 15 minutes. The task runs a voice script and text-to-speech engine that calls me via a voice modem...  The script repeats a greeting and waits for 1 to be pressed.  If I don't press 1 to accept the call, it hangs up after 1 minute...the task will run again in 15 minutes...If I do press 1, the task gets killed (so no more calling) and the device, Ip and date and time of the outage is read to me via text to speech...then it hangs up.

I've also set it up to kill the task if the device is up for five minutes.  No reason to call me, I'll see the email...

Walla, a recurring alert with acknowledgement.  I'm tempted to package and market the whole thing... to all the WUP users.     It'll be $400...$385 for the same software I bought, $15 for me...

I'm thinking of doing a WAP compatible alert too...in conjunction with SMS.  i.e. SMS message to my phone with link to a WAP page showing the device state and monitor states.

I'll take a look at trapgen and see what I can come up with.  It has interesting possibilities.

Rodgers Moore

Post #6847
Posted 4/29/2005 5:12:28 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 8/21/2006 11:24:00 AM
Posts: 72, Visits: 1
rmoore,

> Ip and date and time of the outage is read to me via text to speech...
> ...
> I'm tempted to package and market the whole thing...
If there's a sexy female voice speaking, I'd consider buying ...

> I'll take a look at trapgen and see what I can come up with. ...
I'd appreciate any suggestions. At the moment I'm preety stuck - surely it's something simple, it always is ... ahhhh.

Regards, Daniel
Post #6850
Posted 4/29/2005 5:16:48 AM


Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: WhatsUp Gold Expert
Last Login: Today @ 6:50:15 AM
Posts: 1,490, Visits: 4,686
Hi Daniel,

1/ About trapgen : I used it without any problem. Please note that :

a/ The dll you are trying to register is only for NT4. Given that your system is running WUP, it is at least W2K so you don't need it.

b/ By the very nature of snmp traps you can't receive any errors, since it's an UDP packet, trapgen has no way to check that the trap was successfully received.

c/ IMHO trapgen does not work because you either have some personal firewall turned on, which needs to accept these UDP packets, or because there is some misconfiguration in the WUP trap receiver. Check for instance that you accept unsolicited traps -and of course that the trap receiver is activated !

2/ About your recurring notifications : I now understand what you want to do, and indeed creating new states as I suggested is not the solution.

Here is another idea I have however :

* Create an action (I'll call it "ALIVE") that will run your pager notification.

* Create an action policy (I'll call it "Alive_Pol") that runs action "ALIVE" when a device enters maintenance mode.

* Create a dumb icon in WUP -Why not self-monitoring your WUP server ?. Set this icon to enter maintenance mode every morning between 7am and 7.05 am. Assign the "Alive_Pol" action policy to this device.

Did not try it yet, but logical behaviour would be that since your icon will automatically enter maintenance mode for 5 minutes every morning at 7am, the ALIVE action will trigger and send your pager message...

Please let us know if this works for you !


Reading, writing and arithmetic - If you need to choose, please take option 1.
Post #6851
Posted 4/29/2005 5:32:13 AM


Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: WhatsUp Gold Expert
Last Login: Today @ 6:50:15 AM
Posts: 1,490, Visits: 4,686
Update : Just tried what I suggested with recurring maintenance and it works very well ! This might solve your problem !

Reading, writing and arithmetic - If you need to choose, please take option 1.
Post #6852
Posted 4/29/2005 5:44:06 AM