What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Is there a way to send notifications to skype or google talk (jabber)?

Votes:

0

Your Vote:

Up

Down

None of our staffers use ICQ or MSN, instead they are into Gtalk and Skype - can we notify them anyway from within PRTG?

custom-notification notification notifications

Created on Sep 18, 2010 9:40:11 PM by  perler (50) 1 1



7 Replies

Votes:

0

Your Vote:

Up

Down

We are also using Skype!! Would be great to enable Skype.

Created on Sep 21, 2010 10:23:25 AM by  quintonnel (0)



Votes:

0

Your Vote:

Up

Down

We have no immediate solution for you right now.

You could try a command line client for Jabber and trigger it with a "custom EXE notification". For example this one should do: http://thekonst.net/centericq/

I am not aware of a command line tool for Skype

Created on Sep 21, 2010 1:27:58 PM by  Dirk Paessler [Founder Paessler AG] (10,983) 3 5

Last change on Sep 21, 2010 1:28:51 PM by  Dirk Paessler [Founder Paessler AG] (10,983) 3 5



Votes:

1

Your Vote:

Up

Down

Hello,

another option would be to build a small C# command-line executable with the jabber.net-Library (LGPL - http://code.google.com/p/jabber-net/).
The following example-code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

using jabber.client;

namespace jabjab
{
    class Program
    {

        // we will wait on this event until we're done sending
        static ManualResetEvent done = new ManualResetEvent(false);
        // if true, output protocol trace to stdout
        const bool VERBOSE = false;
        const string TARGET = "";
                
        static void Main(string[] args)
        {
            JabberClient j = new JabberClient();
            // what user/pass to log in as
            j.User = args[0];
            j.Server = args[1];  // use gmail.com for GoogleTalk
            j.Password = args[2];
            string TG = args[3];
            string message = args[4];
                        
            // don't do extra stuff, please.
            j.AutoPresence = false;
            j.AutoRoster = false;
            j.AutoReconnect = -1;

            // listen for errors.  Always do this!
            j.OnError += new bedrock.ExceptionHandler(j_OnError);

            // what to do when login completes
            j.OnAuthenticate += new bedrock.ObjectHandler(j_OnAuthenticate);
            
            // listen for XMPP wire protocol
            if (VERBOSE)
            {
                j.OnReadText += new bedrock.TextHandler(j_OnReadText);
                j.OnWriteText += new bedrock.TextHandler(j_OnWriteText);
            }

            // Set everything in motion
            j.Connect();

            // wait until authentication? (sending a message) is complete
            done.WaitOne();
            j.Message(TG, message);
            
            // logout cleanly
            j.Close();

        }

        static void j_OnWriteText(object sender, string txt)
        {
            if (txt == " ") return;  // ignore keep-alive spaces
            Console.WriteLine("SEND: " + txt);
        }

        static void j_OnReadText(object sender, string txt)
        {
            if (txt == " ") return;  // ignore keep-alive spaces
            Console.WriteLine("RECV: " + txt);
        }

        static void j_OnAuthenticate(object sender)
        {
            // Sender is always the JabberClient.
            JabberClient j = (JabberClient)sender;
            //j.Message(TARGET, "test");
           
            // Finished sending.  Shut down.
            done.Set();
        }

        static void j_OnError(object sender, Exception ex)
        {
            // There was an error!
            Console.WriteLine("Error: " + ex.ToString());

            // Shut down.
            done.Set();
        }
    }
}

Will result in an executable that you could use with 5 parameters (as clear text) from PRTG in the following order:

"jaber_cmd.exe SENDING_USER SERVER PASSWORD RECEIVING_USER MESSAGE"

Following these parameters you can enter the notification message in "", so that in the end the parameters all together for the Exe-Notification in PRTG might look like:

s_user jabber.org password r_user "[%sitename] %device %name %status %down (%message)"

A download of an executable file compiled from the source-code above can be found here. Please be aware that this file is absolutely not officially supported by Paessler as it is not an official part of the PRTG Network Monitor.

Created on Oct 18, 2010 5:00:49 PM by  Torsten Lindner [Paessler Support]

Last change on Oct 19, 2010 9:40:11 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

could you provide this executable for those of us without a c# compiler? :)

Created on Oct 18, 2010 5:04:02 PM by  perler (50) 1 1



Votes:

0

Your Vote:

Up

Down

A download of an executable file compiled from the source-code above can be found here. Please be aware that this file is absolutely not officially supported by Paessler as it is not an official part of the PRTG Network Monitor.

Created on Oct 19, 2010 9:40:45 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Is there any way to send to multiple google talk recipients using this method? I can only seem to get it to work with one.

Created on Nov 22, 2010 7:05:29 PM by  Christopher Ruozzo (0)



Votes:

0

Your Vote:

Up

Down

no messages to Skype or Google Talk at the moment, sorry.

Created on Nov 23, 2010 9:03:27 AM by  Aurelio Lombardi [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.