Ad Widget

Collapse

Zabbix and Popups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exkg
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Mar 2007
    • 718

    #16
    Hmmm ... we will check.


    It will work


    []s,
    Luciano
    --
    Luciano Alves
    www.zabbix.com
    Brazil | México | Argentina | Colômbia | Chile
    Zabbix Performance Tuning

    Comment

    • necaro
      Junior Member
      • Feb 2010
      • 1

      #17
      i tried your nice tray application... but it didn't work..

      i got the green "z" in tray and it beeps when triggers are on but it doesn't change colour or brings up a pop up..

      i use it with win7 x64 and zabbix 1.8..

      i really like the idea and i hope you will get it to work, if you need someone for testing, here i am

      keep the good work going.

      cheers,
      necaro

      Comment

      • Treitor
        Junior Member
        • Feb 2006
        • 14

        #18
        Popup Notification to Windows machine

        PopUp on Zabbix:
        ----------------


        PART 1:




        On client Windows:
        -----------------


        Install WinSent Innocenti:
        winnosent-2.0.5.350-setup.zip
        URL: http://www.winsentmessenger.com/download/




        On Zabbix Server:
        ------------------


        http://search.cpan.org/~greb/Net-NetSend-0.12/NetSend.pm
        tar -xvzf Net-NetSend-0.12.tar.gz
        cd Net-NetSend-0.12
        perl Makefile.PL
        make
        make install
        perl teste.pl
        Ok

        Create above scripts in /home/zabbix/scripts:



        envia_popup.sh
        ------ Cut -----------------
        #!/bin/bash
        #
        # Envia POPUP atraves do Zabbix
        #
        # Autor: Marco Pontes
        # Data: 08/02/2010


        ###########
        # VAR
        ###########
        BASE_DIR=/home/zabbix/scripts
        LIST_NOTIFICATION_FILE=ip_notification.dat
        #
        # Inclui aspas simples nos parametros passados
        # exigencia do script em perl
        #
        MESSAGE="$*"




        #############
        # MAIN AREA
        #############


        cd $BASE_DIR


        cat $LIST_NOTIFICATION_FILE | while read IP_DEST
        do
        #
        # Para cada IP no arquivo LIST_NOTIFICATION_FILE
        # envia um popup com o conteudo dos parametros passados
        #
        perl ./popup.pl $IP_DEST "$MESSAGE" >/dev/null 2>&1
        done
        exit 0
        ------ Cut -----------------


        popup.pl
        ------ Cut -----------------
        #
        # Envia Mensagem Popup para maquinas Windows.
        # Obs: O servico "Messenger" no windows tem de estar ativo ou
        # o winsent deve estar instalado.
        # Por: Marco Pontes
        # Data: 16/06/2008
        #


        #############
        # USE
        #############
        use Net::NetSend qw(:all);


        #############
        # MAIN AREA
        #############


        #
        # Verifica os argumentos passados
        #
        $numArgs = $#ARGV + 1;
        if ($numArgs ne 2)
        {
        print "\n\tUsage: popup.pl <TARGET_IP> '<MESSAGE>' \n\n";
        exit;
        }


        foreach $argnum (0 .. $#ARGV) {
        print "Argumento - $argnum : $ARGV[$argnum]\n";
        }


        #
        # Variaveis
        #
        my $target_netbios_name ;
        my $source_netbios_name = "Matera Monitor";
        my $target_ip = "$ARGV[0]";
        my $message = "$ARGV[1]";
        my $debug = 0;


        #
        # Envia Popup
        #
        $target_netbios_name = getNbName($target_ip, $debug);
        if(!$target_netbios_name){
        die "No netbios name found: $@\n";
        }


        my $success = sendMsg($target_netbios_name, $source_netbios_name, $target_ip, $message, $debug);
        print ($success ? "\n\tDelivery successfulln\n\n" : "\n\tError in delivery! \n\n$@\n");
        ------ Cut -----------------




        ip_notification.dat (target machines - with winsent installed)
        ------ Cut -----------------
        10.140.193.241
        10.140.192.77
        ------ Cut -----------------




        Test script:
        -----------


        ./envia_popup.sh Hello ugly people !




        -------------------------


        PART 2:


        1) In /etc/zabbix/zabbix_server.conf alter:


        AlertScriptsPath=/home/zabbix/scripts


        stop and start zabbix_server


        2) On zabbix:


        2.1) Create midia type:


        fig1.png


        2.2) Create a user with default midia:

        fig2.png


        3) Create a action on a trigger:


        fig3.png


        Finish !

        Attached Files

        Comment

        • RafaelMoreno
          Member
          • Jul 2009
          • 58

          #19
          Superb Luciano,

          Can you post the linux version of zabbix tray?

          I was thinking on install a Jabber server only to receive the messages of zabbix for my Network Operations Center...

          I will try the zabbix tray on monday

          Comment

          • Treitor
            Junior Member
            • Feb 2006
            • 14

            #20
            Popup

            See my How-to to use system tray notification with winsent . I create this how-to and this work for me 100 %. This send me a message, and flashing the icon in system tray if y don´t read the message.

            Comment

            • RafaelMoreno
              Member
              • Jul 2009
              • 58

              #21
              Originally posted by Treitor
              See my How-to to use system tray notification with winsent . I create this how-to and this work for me 100 %. This send me a message, and flashing the icon in system tray if y don´t read the message.
              Treitor,

              I saw it. and it's a really nice job but I want to put jabber as our internal communication.

              Comment

              • Schaul
                Junior Member
                • Aug 2018
                • 1

                #22
                ZabbixTray, which was discussed in begin of topic, in my infrastructure connected to zabbix 3.0. But cannot connect to two zabbixes 3.2. Which issue can be here? How I can fix it?

                Comment

                Working...