Winpopup

Frederik Vanhee frederik.vanhee at perso.be
Wed Mar 29 21:36:55 CEST 2006


Hello,

presumed smbclient is on your Nagios server, you can send messages to a 
windows-pc
Check the smbclient options, it needs -M and -I, one is the hostname of 
the pc, the other is the ip-address. I defined those values together 
with the contact definition, using the macros $CONTACTADDRESS1$ and 
$CONTACTADDRESS2$

# 'notify-by-smbclient' command definition
define command{
    command_name    notify-by-smbclient
    command_line    /usr/bin/printf "%b" "***** NAGIOS  ***** 
automatically generated POP-UP \n\n Notification Type: 
$NOTIFICATIONTYPE$\n\nHost: $HOSTNAME$ ($HOSTALIAS$) \nAddress: 
$HOSTADDRESS$\nService: $SERVICEDESC$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional 
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/smbclient -M $CONTACTADDRESS1$ -I 
$CONTACTADDRESS2$
    }

Good luck,

Frederik



Hugo Rebello wrote:

> Hello Guys.
>
> Anybody knows how can I use the winpopup ?
> I´d like to receive popups from Nagios server when some problem 
> happen, but I don´t know what the option I must set up in contacts.cfg 
> file.
> I am using the email option.
>
> Thank you.
>
> Cheers,
> Hugo
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> language
> that extends applications into web and mobile media. Attend the live 
> webcast
> and join the prime developer group breaking into this new coding 
> territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when 
> reporting any issue. ::: Messages without supporting info will risk 
> being sent to /dev/null
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list