If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
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; }
# # 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"; }
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.
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.
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