Hi Michael,
Put + sign instead of spaces in the query string like:

/usr/bin/curl -d
"PNumber=$CONTACTPAGER$&PLine1=**+$NOTIFICATIONTYPE$+alert+-+Host+$HOSTALIAS$+is+$HOSTSTATE$+**"
http://intranet.ccf.org/webftd/sendpage.asp


Try this one. What does it look like? :)

Best Wishes,
Dinçer


2007/3/16, Weiner, Michael <[EMAIL PROTECTED]>:

Dincer -

Actually this seems to work:

/usr/bin/curl -d "PNumber=$CONTACTPAGER$&PLine1=** $NOTIFICATIONTYPE$
alert - Host $HOSTALIAS$ is $HOSTSTATE$ **"
http://intranet.ccf.org/webftd/sendpage.asp

Only problem is just the way it looks:

**RECOVERYalert-HosthazenliisUP**

Seems to remove/truncate all the spacing. Any ideas?

Michael
________________________________________
From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Dinçer Kavraal
Sent: Friday, March 16, 2007 9:06 AM
To: Michael Weiner
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios pager alerts

Hi Michael,
I'd be glad to help you. That was not simply and exactly I've done. But I
got the idea. So, send me further information, for instance, your escalation
configuration (mostly located in <nagiosDir>/etc/escalation.cfg). Your asp
page; send me a sample call for asp page.

I can lead you achieve that.

Dinçer
2007/3/16, Michael Weiner <[EMAIL PROTECTED]>:
I have been googling for a bit trying to figure out the best way to
accomplish paging in an escalation situation. What i have is a webpage
written in asp that accepts a pager number and message, and what i would
like is for nagios to send the page through that web gateway. I was
originally thinking something simple, maybe curl (i.e. curl -d
"PNumber=27175&PLine1=I am down, please fix me" <url of the webpage>) but
i
have been having some difficulty getting this to work properly. Has anyone
done anything like this? And would anyone have any suggestions?

Thank you in advance
Michael Weiner



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@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


===================================




Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to