IM notification
Wojciech Kocjan
wojciech at kocjan.org
Thu Mar 20 10:51:22 CET 2008
Assuming you'll use pager field in contact:
define command{
command_name notify-host-by-jabber
command_line $USER1$/notify_via_jabber $CONTACTPAGER$ "Host
notification: $NOTIFICATIONTYPE$ Host: $HOSTNAME$ State: $HOSTSTATE$
Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$"
}
define command{
command_name notify-service-by-jabber
command_line $USER1$/notify_via_jabber $CONTACTPAGER$ "Service
notification: $NOTIFICATIONTYPE$ Service: $SERVICEDESC$ Host: $HOSTALIAS$
State: $SERVICESTATE$"
}
On Thu, 20 Mar 2008 09:43:26 +0100, Alex Dehaini <alexdehaini at gmail.com>
wrote:
> Please furnish me with your settings in command.cfg for this script.
> Regards,
> Alex
>
>
> On Wed, Mar 19, 2008 at 10:18 PM, Wojciech Kocjan <wojciech at kocjan.org>
> wrote:
>
>> On Wed, 19 Mar 2008 17:57:36 +0100, Alex Dehaini <alexdehaini at gmail.com>
>> wrote:
>>
>> > This is what I got
>> > [root at dev bin]# /usr/local/bin/notify_via_jabber2 email
>> > address at gmail.com"Host is Down"
>> > You requested that XML::Stream turn the socket into an SSL socket, but
>> > you
>> > don't have the correct version of IO::Socket::SSL v0.81. at
>> > /usr/lib/perl5/site_perl/5.8.8/XML/Stream/Node.pm line 547
>> >
>> > How can I fix this
>> >
>> > Alex
>>
>> Hi,
>>
>> I guess this requires a Perl expert, which I'm not.
>>
>> I simply installed a few packages on my machine and things worked fine.
>> I'm not sure what's the exact problem here.
>>
>> --
>> Wojciech Kocjan
>>
>
>
>
--
Wojciech Kocjan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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