Winpopup

Masopust, Christian christian.masopust at siemens.com
Wed Mar 29 22:07:05 CEST 2006


Hello Hugo,

have a look at your command-definition... you'll send messages
to "CONTACTPAGER" but don't have any "pager" defind in your contact-
definition...

chris


--
"I sense much NT in you, NT leads to Blue Screen. 
Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." 

- Unknown Unix Jedi  

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net 
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
> Of Hugo Rebello
> Sent: Wednesday, March 29, 2006 10:00 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Winpopup
> 
> 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
>         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$
> 
> 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
> 


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