SMB Pop-up
Steve Freegard
steve.freegard at lbsltd.co.uk
Wed Mar 5 18:10:51 CET 2003
Hagen,
I've never written the script - it was only a suggestion that was made on
the list a while back by someone else.
That said - it's pretty easy to do (and this definitely isn't the best way
to achieve this):
#!/bin/bash
USER_ONE=`echo $1 | cut -d! -f1`
USER_TWO=`echo $1 | cut -d! -f2`
# Do something for user one...
echo $USER_ONE
# Do something for user two...
echo $USER_TWO
Contact pager would then be something like: test1!test2
Notification command would be: $USER1$/script.sh
'$CONTACTPAGER'
Hope this helps.
Regards,
Steve.
-----Original Message-----
From: Hagen Deike [mailto:Hagen_Deike at icon-scm.com]
Sent: 05 March 2003 15:30
To: 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] SMB Pop-up
Hi Steve,
Could you post the script to the list? I'm interested... :-D
Thanks & Regards,
Hagen Deike
> -----Original Message-----
> From: Steve Freegard [mailto:steve.freegard at lbsltd.co.uk]
> Sent: Mittwoch, 5. März 2003 15:52
> To: 'nagios-users at lists.sourceforge.net'
> Subject: RE: [Nagios-users] SMB Pop-up
>
> -
> the general consensus was that you could put multiple entries entries into
> the e-mail or pager variables as no checking is done on the Nagios end,
> and
> that you could delimit them and use a notification script that strips the
> values out and does the different notifications to both.
>
> I do something similar to what you are proposing and use two contacts -
> one
> for working hours, and one for out-of-hours support with the working hours
> receiving the winpopup's, and the out-of-hours getting a SMS using
> sendpage
> and this works pretty well for me.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
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 email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.lbsltd.co.uk
**********************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
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