LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2008, 05:16 AM   #1
arik36
LQ Newbie
 
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Nagios


Hi there.
I'm new to linux so i hope i can get help here.
I've installed Nagios on SLES 10.1 and it works great.
Now I need to send sms messages.
I use an sms gateway and my url looks like this:
http://servername:8080/pa/mirs?user=...essage=message
I need to write a script that sends sms messages to 3 different phone number and to create the Nagios command that will automatically do it when a host is down.
I've searched the web but I haven't found any thing that can work for me.
I'll appreciate any ideas or a direction on how to go on cause at this point I'm quiet frustrated.
Thank You.
 
Old 01-21-2008, 06:20 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by arik36 View Post
I need to write a script that
Since it's you writing the script you'll want some Bash scripting guides:
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
http://www.tldp.org/LDP/abs/html/


Quote:
Originally Posted by arik36 View Post
create the Nagios command that will automatically
Three easy steps:
0) Read the Nagios documentation and configuration files. They're littered with examples you can modify.
1) Create an alert for a host and make it send an email to an unprivileged user account on the monitoring host.
2) Make a procmail recipe that triggers your script.

Alternatively you could use Monit instead of Nagios. Monit can poll remote hosts and services, uses one configuration file and can trigger scripts directly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios Daemon, PID not found but rc.nagios runs agentc0re Slackware 1 07-03-2007 02:47 PM
Nagios heinvz Linux - Software 3 10-24-2006 07:42 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
Nagios markus1982 Linux - Software 1 04-01-2003 06:04 AM


All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration