Winpopup

Arno Lehmann al at its-lehmann.de
Wed Mar 29 22:21:27 CEST 2006


Hello,

On 3/29/2006 10:00 PM, Hugo Rebello wrote:
> Frederik,
> 
> I can send message by Nagios Server to my desktop manually using smbclient.
> The problem is when I try to do this  by Nagios Services.
> I have included the "winpopup" option below "email" option into 
> contacts.cfg file, however it is doesn´t working.
> 
> Look the contacts.cfg and misccommands.cfg files below.
> 
> # 'hugo' contact definition
> define contact{
>        contact_name                                hugo
>        alias                                                 Hugo Rebello
>        service_notification_period         work
>        host_notification_period              work
>        service_notification_options        w,c,r

I guess your service might be in state unknown. Add a u here and that 
part should work...

>        host_notification_options             d,u,r
>        service_notification_commands  notify-by-email
>        host_notification_commands       host-notify-by-email
>        email                                                test at teste.com
>        winpopup                                         myhostname
>        }
> 
> # 'host notify-by-winpopup' command definition
> define command{
>        command_name    host-notify-by-winpopup
>        command_line    /usr/bin/printf "%b" "Notification Type: 
> $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
> $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: 
> $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | smbclient -M $CONTACTPAGER$

And, does your service notification command use the smbclient call?

Arno

> Thank you.
> 
> Cheers,
> Hugo
> 
> 
> 
> Frederik Vanhee wrote:
> 
>> 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=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
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de



-------------------------------------------------------
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