Re: [Nagios-users] Using Nagios to restart a Power Strip, Switch, Router, etc. via SNMP

2007-02-21 Thread Trevor Warren

Ofcourse it iswhile the consequence sound a little scary too. Think
about it.ur intention is to have nagios trigger an request if a
condition is met.


The intention can be satisfied over SNMP
With the trigger being called when a plugin check is performed


Nagios per say may not be equipped with the capability to perform a whole
lot of business process checks towards concluding whether the applications
really down. It will be able to ping for resources using standard/custom
plugins and verify the availability/lack of it using its existing framework.

 Hence...while you due to lack of accessibility to a switch for some reason
your plugin may decide based on your coded business rules that its
unreachable and send an snmp request to reset the device. In turn what you
have actually done is...during a moment of large n/w traffic not been able
to reach the switch and as a result sent a request to reset the switch which
i would recieve and probable reset it once the instantaenous peak is done
with.

 Am unsure if i have been able to relate to you in the right manner. But
since nagios doesnt have a rule engine it might be best to let nagios do
what it does best and have it integrate with a rule engine which takes care
of all of your other misc requests over snmp.

Hope this helped.

Thanks and Regards
Trevor

On 2/22/07, patrickm <[EMAIL PROTECTED]> wrote:


Hello,

I've been scouring Google all day long and I can't seem to find anything
regarding Nagios being able to reboot switches, routers, or power strips via
SNMP.  We have some HP Procurve Switches, Some Cisco 7200 Routers, and some
APC Power strips, all being monitored via SNMP already and via Nagios, but
it would be great if we could reboot these devices (or sections of the power
strip by outlet) using SNMP write permissions.

Is this possible?


-
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





--
___
( >-   /  Scaling FreeSoftware & OpenSource\   -< )
/~\   /   In the Enterprise   \   /~\
|  \) \  | www.fsf.org | www.opensource.org | /  (/ |
|_|_   \/  _|_|

An eye for an eye will soon turn the world blind - MKG

"You cannot see me, yet I am the light you see by. You cannot hear me, yet I
speak through your voice. You cannot feel me, yet I am the power at work in
your hands. I am at work, though you do not understand my ways. I am not
strange visions. I am not mysteries.
Only in absolute stillness, beyond self, can you know me as I am, and then
but as a feeling and a faith. Yet I am here. Yet I hear. Yet I answer. -anon
"
-
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

[Nagios-users] Using Nagios to restart a Power Strip, Switch, Router, etc. via SNMP

2007-02-21 Thread patrickm
Hello,

I've been scouring Google all day long and I can't seem to find anything 
regarding Nagios being able to reboot switches, routers, or power strips via 
SNMP.  We have some HP Procurve Switches, Some Cisco 7200 Routers, and some APC 
Power strips, all being monitored via SNMP already and via Nagios, but it would 
be great if we could reboot these devices (or sections of the power strip by 
outlet) using SNMP write permissions. 

Is this possible?


-
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


Re: [Nagios-users] Contact definitions and multiple email addresses?

2007-02-21 Thread Andy Moran

Oh yech.   I'll pass on that.

how about this one:

Is it possible to have a contact receive critical messages for all  
services but warning messages ONLY for a particular service?


For example:

All services are set to notify on warning, critical, unknown, and  
recovery..Admins want to be only notified when any service goes  
critical.. but they are also interested when a certain volume  
check_disk goes into warning.


The only way I can figure out how to do that is to create a separate  
contact definition for each admin (like jdoe2), put them in a group,  
and say that group also wants warnings, and put that group in the  
check_disk service definition instead of the normal admin group.


I'm hoping I'm missing something obvious.

--Andy


On Feb 21, 2007, at 3:49 PM, Marc Powell wrote:





-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios- 
users-

[EMAIL PROTECTED] On Behalf Of Andy Moran
Sent: Wednesday, February 21, 2007 4:49 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Contact definitions and multiple email

addresses?



Can a contact definition contain a list of email addresses, and if  
so,

will Nagios email them all?



Nagios doesn't care. As far as it's concerned, it's just a string of
text. It'll happily pass them on to your notification program as one
string. The real question is, can your notification program handle  
them
appropriately? The default notification program, /bin/mail will  
not, at
least not as a comma separated list. To use /bin/mail you'd either  
need

to set your notification command to a script that parsed the multiple
recipients and added the appropriate number of -c arguments to
/bin/mail, or possibly, untested, use something like the following for
your contact definition --

define contact{
...
email   -c [EMAIL PROTECTED] -c [EMAIL PROTECTED]
[EMAIL PROTECTED]
}


--
Marc

-- 
---

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




smime.p7s
Description: S/MIME cryptographic signature
-
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

Re: [Nagios-users] Contact definitions and multiple email addresses?

2007-02-21 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Andy Moran
> Sent: Wednesday, February 21, 2007 4:49 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Contact definitions and multiple email
addresses?
> 
> 
> Can a contact definition contain a list of email addresses, and if so,
> will Nagios email them all?
> 

Nagios doesn't care. As far as it's concerned, it's just a string of
text. It'll happily pass them on to your notification program as one
string. The real question is, can your notification program handle them
appropriately? The default notification program, /bin/mail will not, at
least not as a comma separated list. To use /bin/mail you'd either need
to set your notification command to a script that parsed the multiple
recipients and added the appropriate number of -c arguments to
/bin/mail, or possibly, untested, use something like the following for
your contact definition --

define contact{
...
email   -c [EMAIL PROTECTED] -c [EMAIL PROTECTED]
[EMAIL PROTECTED]
}


--
Marc

-
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


Re: [Nagios-users] Problems with passing on service check information

2007-02-21 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Steven Schwartz
> Sent: Wednesday, February 21, 2007 4:19 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Problems with passing on service check
information
> 


> Does anyone know what happens if you try and use send_nsca to
communicate
> to a machine running two separate nagios instances?

Works great. Just have two different NSCA instances running on different
ports. Each will point to it's respective nagios.cmd file --

$ tail -10 libexec/submit_check_result 
;;
esac

# pipe the service check info into the send_nsca program, which
# in turn transmits the data to the nsca daemon on the central
# monitoring server

/bin/echo -e "$1\t$2\t$return_code\t$4\n" |
/usr/local/nagios/bin/send_nsca 172.27.0.100 -p 5668 -c
/usr/local/nagios/etc/send_nsca.cfg
/bin/echo -e "$1\t$2\t$return_code\t$4\n" |
/usr/local/nagios/bin/send_nsca 172.27.0.100 -p 5669 -c
/usr/local/nagios/etc/send_nsca.cfg

-
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


[Nagios-users] Contact definitions and multiple email addresses?

2007-02-21 Thread Andy Moran


Can a contact definition contain a list of email addresses, and if  
so, will Nagios email them all?


e.g.

define contact{
contact_namejdoe
alias   John Doe
service_notification_period 24x7
host_notification_period24x7
service_notification_optionsw,u,c,r
host_notification_options   d,u,r
service_notification_commands   notify-by-email
host_notification_commands  host-notify-by-email
email   [EMAIL PROTECTED], [EMAIL PROTECTED]
}


The documentation isn't clear whether the email line can contain more  
than on address for a contact.





smime.p7s
Description: S/MIME cryptographic signature
-
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

[Nagios-users] Problems with passing on service check information

2007-02-21 Thread Steven Schwartz
I am trying to follow the instructions to use a centralized server in
the Nagios documentation, with one major change - instead of reporting
all errors to a central server and having it do the notifications, I
want the individual servers to do their own notification, and also send
copies of service check results to a central, read-only server, at the
moment called bigboard.

 



 

Does anyone know what happens if you try and use send_nsca to
communicate to a machine running two separate nagios instances?

 

Steven Schwartz

 

 

CONFIDENTIALITY NOTICE: Proprietary/Confidential Information belonging
to Gracenote, Inc. may be contained in this message. If you are not a
recipient indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for any reason
that this message may have been addressed to you in error, you may not
use or copy or deliver this message (and all attachments) to anyone
else. In such case, you should destroy this message (and all attached
documents) and are asked to notify the sender by reply email.

 

-
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

Re: [Nagios-users] Sending a txt message as acknowledgement for event

2007-02-21 Thread Nagios Mail

Patrick ~

I just set this up myself, so I'll share some of the details on how I got it
working.

First off you'll need a way for the email's to reach the nagios inbox. In
our example I setup fetchmail on our CentOS box to check Exchange every 15
seconds for mail using POP3.

once you have that configured and mail is going into the inbox on your linux
machine for the nagios account, you'll need to configure procmail.
Now if your on a redhat system (or flavor) procmail is setup by default.
(Otherwise you may need to install/configure)
So you'll need to setup a .procmailrc file in the nagios users home
directory (or place a procmailrc file in /etc).

Procmail should be setup to kick off a script (that you'll need to write) to
process the incoming mail and if a problem is acknowledged, place an
acknowledgment in the nagios.cmd file.

Like I said, the first process in fixing this puzzle is getting mail to the
nagios server from an SMS device. Once there it should be pretty straight
forward.

Let me know if this makes sense.

Josh




On 2/21/07, patrickm <[EMAIL PROTECTED]> wrote:


Thanks for the response.  To send txt messages, we have Verizon, so we
send to [EMAIL PROTECTED]  I hit reply on my phone and a few seconds
later I received a bounceback from the mail server where Nagios is..so I
think we might be in business.

What would I have to do from here?  From the looks of your e-mail, it
sounds like I need to code something very detailed...

Thanks for the help!

Patrick



On Wed, 21 Feb 2007 20:11:47 +1000, Az <[EMAIL PROTECTED]> wrote:
> patrickm wrote:
>> Is it possible to reply to a txt message that is sent from the nagios
> server as acknowledgement when an event occurs, like an unreachable
server
> or other events?
> The short answer is, yes.
>
> The long answer is, it depends on how you sent the SMS in the first
> place. If you are using some cheapy internet-based solution, then I
> doubt they have any return path feature. If you are sending via GSM
> modems, then yes. We do this now and have been for 2 years. If you have
> a direct link into a carriers' SMSC, then it will depend on their
> solution. We are looking to move this way in the near future, and our
> carrier has a return path solution.
>
> The guts of the solution is just code that parses the SMS back and hands
> it off to Nagios using the external command features. In our case, we
> reply/forward the entire SMS as-is back to sending device, which can
> easily parse the SMS given we know the exact format it left in anyhow.
> Plus, the same system handles other inbound and outbound SMSs with ease.


-
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

-
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

Re: [Nagios-users] Sending a txt message as acknowledgement for event

2007-02-21 Thread patrickm
Thanks for the response.  To send txt messages, we have Verizon, so we send to 
[EMAIL PROTECTED]  I hit reply on my phone and a few seconds later I received a 
bounceback from the mail server where Nagios is..so I think we might be in 
business.

What would I have to do from here?  From the looks of your e-mail, it sounds 
like I need to code something very detailed...

Thanks for the help!  

Patrick



On Wed, 21 Feb 2007 20:11:47 +1000, Az <[EMAIL PROTECTED]> wrote:
> patrickm wrote:
>> Is it possible to reply to a txt message that is sent from the nagios
> server as acknowledgement when an event occurs, like an unreachable server
> or other events?
> The short answer is, yes.
> 
> The long answer is, it depends on how you sent the SMS in the first
> place. If you are using some cheapy internet-based solution, then I
> doubt they have any return path feature. If you are sending via GSM
> modems, then yes. We do this now and have been for 2 years. If you have
> a direct link into a carriers' SMSC, then it will depend on their
> solution. We are looking to move this way in the near future, and our
> carrier has a return path solution.
> 
> The guts of the solution is just code that parses the SMS back and hands
> it off to Nagios using the external command features. In our case, we
> reply/forward the entire SMS as-is back to sending device, which can
> easily parse the SMS given we know the exact format it left in anyhow.
> Plus, the same system handles other inbound and outbound SMSs with ease.


-
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


Re: [Nagios-users] two sets of host groups

2007-02-21 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of dave stern - e-
> mail.pluribus.unum
> Sent: Wednesday, February 21, 2007 11:08 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] two sets of host groups
> 
> Is it possible to have hosts in two sets of groups?  Currently I've
> divided hosts by hostgroup names associated

That's a pretty straightforward TAFO or RTFM question but yes, a host
can be in any number of hostgroups.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host -
"hostgroups:This directive is used to identify the short name(s) of
the hostgroup(s) that the host belongs to. Multiple hostgroups should
are seperated by commas. This directive may be used as an alternative to
(or in addition to) using the members directive in hostgroup
definitions."

You can also specify the host in each hostgroup{}'s members directive.

--
Marc


-
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


[Nagios-users] two sets of host groups

2007-02-21 Thread dave stern - e-mail.pluribus.unum

Is it possible to have hosts in two sets of groups?  Currently I've divided
hosts by hostgroup names associated
with their physical location. But it would be quite useful to have
hostgroups based on operating systems. Anyone
have a way to accomplish this allow "multiple views"?

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

Re: [Nagios-users] HostGroup not visible to notification recipients

2007-02-21 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of David G Schlecht
> Sent: Tuesday, February 20, 2007 5:32 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] HostGroup not visible to notification
recipients
> 
> All,
> 
> I've encountered a strange issue and hope that someone can tell me if
this
> is a
> bug or a configuration issue.
> 
> I have multiple hosts (h1, h2, h3) in a hostGroup. Two of the hosts
(h1,
> h2) are
> configured with notifications to two different contactGroups (c1, c2).
The
> third
> host, h3, only notifies one group, c2.
> 
> All members of c2 can see all the hosts in the host group when viewing
the
> HostGroup Summary. Group c1 cannot see the hostGroup, but can see the
> individual
> hosts they get notifications from(h1 and h2). Clicking on the
hostGroup
> link in
> the host's cgi-bin/extinfo.cgi page produces a page with the message:
> *  It appears as though you do not have permission to view information
for
> any
> of the hosts you requested...
> *  If you believe this is an error, check the HTTP server
authentication
> requirements for accessing this CGI
> *  and check the authorization options in your CGI configuration file.
> 
> 
> Any ideas?

C1 isn't authorized to see all hosts in the hostgroup object so none are
displayed. I've hit up against this a couple times in the past. It's
understandable, but not necessarily desirable. I haven't delved too
deeply into it but my thoughts are that the view permission logic is
object based. Either you have permission to view all elements of that
object or you don't. For most objects that's just fine but for
hostgroups and servicegroups it would be more desirable for those
sub-elements that you do have permission for to be displayed and ignore
those elements that you don't. Probably a feature request.

--
Marc 

-
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


Re: [Nagios-users] htaccess authorization error..

2007-02-21 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of abid dar
> Sent: Tuesday, February 20, 2007 8:32 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] htaccess authorization error..
> 
> So I am getting the infamous cgi access error:
> 
> "It appears as though you do not have permission to view information
for
> any of the services you requested..
> 


> 
> Options ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/htpasswd.users
> Require valid-user
> 

> --my .htaccess file that is the sbin folder
> 
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/htpasswd.users
> require valid-user

This would be redundant. You've enabled it as part of your 
config above. Not harmful though as you've told Apache to completely
ignore .htaccess in that directory with the 'AllowOverride None'
directive above.

> When I first go to nagios page
> 
> http://localhost/nagios/
> 
> I get prompted for a username and password and then it lets me in the
site
> but when I click on any links it get the authorization error.

That's good that you get prompted and then allowed in. Who does nagios
show you Logged in as? Is it what you expect?
 
> this has got to be a simple problem with .htpasswd or .htaccess right?

So far, it sounds like the answer is no.
 
> when I created the files I followed the documentation and the fact it
lets
> me initially but not into the sub links I get that error..
> 
> any thoughts?

Is the username you are logged in as listed as a contact for any hosts
or services? It must be or you must grant global permissions via the
authorized_for_* directives in cgi.cfg. Nagios simply looks at the
REMOTE_USER environment variable set by Apache after you log in and
matches that against defined contacts{} to determine what to show. If
there is no match then the behavior you're seeing is the result.

--
Marc

-
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


Re: [Nagios-users] NRPE unable to read output

2007-02-21 Thread Andy Shellam (Mailing Lists)
Another stab in the dark... the NRPE agent isn't inside a BSD jail is 
it?  My Nagios host refuses to read NRPE's output in a machine that's 
jailed :(


Andy.


Hari Sekhon wrote:
Thanks for the reply, I just tried that but unfortunately it still 
gave the same result.


I have another sudo /etc/nagios/plugin and that works. Also, su-ing to 
nagios and then running the command by hand works.


so I'm still stuck

Hari Sekhon
  


-
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

Re: [Nagios-users] NRPE unable to read output

2007-02-21 Thread Hari Sekhon
Thanks for the reply, I just tried that but unfortunately it still gave 
the same result.


I have another sudo /etc/nagios/plugin and that works. Also, su-ing to 
nagios and then running the command by hand works.


so I'm still stuck

Hari Sekhon



Andy Shellam (Mailing Lists) wrote:
I had this problem, and had to put the full path to sudo 
(/usr/bin/sudo) in nrpe's config.


HTH

Andy.

Hari Sekhon wrote:
I know that nrpe works, I run over 100 checks via nrpe, and on this host 
all other nrpe checks work.


I don't know if it's really the sudo in the line because I have another 
line which says


command[check_another_plugin]=sudo /etc/nagios/another_plugin

and this works fine when called via nrpe as such

check_nrpe -H hostname -c check_another_plugin
OK: test ok

If sudo was the problem, I would expect both checks to fail, but the 
other one works fine.


Also, I need to run the check with sudo because this check will not work 
without root privs and my

nrpe runs under the nagios user.

-h

Hari Sekhon



Lane, Jim wrote:
  
Hari: I think your problem is with the sudo in the line 


command[check_plugin]=sudo /etc/nagios/check_plugin

Try it as 


command[check_plugin]=/etc/nagios/check_plugin

and see how you get on. I run NRPE plugins as above on my systems and
they work fine.

HTH

Jim Lane 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hari
Sekhon
Sent: February 21, 2007 8:04 AM
To: Nagios Users mailinglist
Subject: [Nagios-users] NRPE unable to read output

Hi,
   I'm using NRPE to execute checks on remote hosts and am have problems

with one plugin on just one machine. I have the plugin in the 
configuration of nrpe and execute


/usr/nagios/libexec/check_nrpe -H hostname -c check_plugin
NRPE: Unable to read output

The definition of the command call in nrpe.cfg is as follows:

command[check_plugin]=sudo /etc/nagios/check_plugin

and I have the following line in /etc/sudoers:

nagios  ALL=(ALL)  NOPASSWD: /etc/nagios/check_plugin

NRPE is running as the nagios user. When logged in as root I can do

su - nagios
sudo /etc/nagios/check_plugin
OK: test passed

so I don't understand why it is saying no output.

I tried changing the nrpe.cfg to have > /tmp/output.log 2>&1 at the end 
of it but the file /tmp/output.log was not created so I assume that 
there really was no output when run from the check_nrpe command.
This works on all my other servers (most of which are Gentoo) and this 
one is RHEL4. SELinux is disabled. I can execute all other nrpe checks 
correctly on this server including another one which also uses sudo.
The difference in Distro is the only thing I can think of but it even 
works from the command line. I am using nrpe 2.6.


I have racked my brains but can't think of anything else.

Any ideas on this?

-h

  



-
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


!DSPAM:37,45dc4dfa18514730279235!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


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

Re: [Nagios-users] NRPE unable to read output

2007-02-21 Thread Andy Shellam (Mailing Lists)
I had this problem, and had to put the full path to sudo (/usr/bin/sudo) 
in nrpe's config.


HTH

Andy.

Hari Sekhon wrote:
I know that nrpe works, I run over 100 checks via nrpe, and on this host 
all other nrpe checks work.


I don't know if it's really the sudo in the line because I have another 
line which says


command[check_another_plugin]=sudo /etc/nagios/another_plugin

and this works fine when called via nrpe as such

check_nrpe -H hostname -c check_another_plugin
OK: test ok

If sudo was the problem, I would expect both checks to fail, but the 
other one works fine.


Also, I need to run the check with sudo because this check will not work 
without root privs and my

nrpe runs under the nagios user.

-h

Hari Sekhon



Lane, Jim wrote:
  
Hari: I think your problem is with the sudo in the line 


command[check_plugin]=sudo /etc/nagios/check_plugin

Try it as 


command[check_plugin]=/etc/nagios/check_plugin

and see how you get on. I run NRPE plugins as above on my systems and
they work fine.

HTH

Jim Lane 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hari
Sekhon
Sent: February 21, 2007 8:04 AM
To: Nagios Users mailinglist
Subject: [Nagios-users] NRPE unable to read output

Hi,
   I'm using NRPE to execute checks on remote hosts and am have problems

with one plugin on just one machine. I have the plugin in the 
configuration of nrpe and execute


/usr/nagios/libexec/check_nrpe -H hostname -c check_plugin
NRPE: Unable to read output

The definition of the command call in nrpe.cfg is as follows:

command[check_plugin]=sudo /etc/nagios/check_plugin

and I have the following line in /etc/sudoers:

nagios  ALL=(ALL)  NOPASSWD: /etc/nagios/check_plugin

NRPE is running as the nagios user. When logged in as root I can do

su - nagios
sudo /etc/nagios/check_plugin
OK: test passed

so I don't understand why it is saying no output.

I tried changing the nrpe.cfg to have > /tmp/output.log 2>&1 at the end 
of it but the file /tmp/output.log was not created so I assume that 
there really was no output when run from the check_nrpe command.
This works on all my other servers (most of which are Gentoo) and this 
one is RHEL4. SELinux is disabled. I can execute all other nrpe checks 
correctly on this server including another one which also uses sudo.
The difference in Distro is the only thing I can think of but it even 
works from the command line. I am using nrpe 2.6.


I have racked my brains but can't think of anything else.

Any ideas on this?

-h

  



-
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


!DSPAM:37,45dc4dfa18514730279235!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
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

Re: [Nagios-users] Getting a no response error when checking via snmpplugin check_hd

2007-02-21 Thread Kaplan, Andrew H.
Hi there --

I ran the snmpwalk command from the nagios machine, and it did timeout. My
next step will be to check the HP-UX box, and see if it does allow the polling
to occur. 



-Original Message-
From: Morris, Patrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 7:49 PM
To: Kaplan, Andrew H.; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Getting a no response error when checking
via snmpplugin check_hd


> I am trying to monitor the disk space usage on several HP-UX 
> 10.20 systems using the check_hd plugin. The command syntax I 
> am using is the following:
> 
> ./check_hd  -C public 80% 90% /dev/vg00/lvol8
> 
> The output I am getting is:
> 
> Critcal: no response

I'm not familiar with that plugin, but have you verified that the HP-UX
box is allowing the Nagios machine to poll it over SNMP?

Does an snmpwalk from the Nagios machine work, for example?





The information transmitted in this electronic communication is intended only 
for the person or entity to whom it is addressed and may contain confidential 
and/or privileged material. Any review, retransmission, dissemination or other 
use of or taking of any action in reliance upon this information by persons or 
entities other than the intended recipient is prohibited. If you received this 
information in error, please contact the Compliance HelpLine at 800-856-1983 
and properly dispose of this information.


-
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


Re: [Nagios-users] NRPE unable to read output

2007-02-21 Thread Hari Sekhon
I know that nrpe works, I run over 100 checks via nrpe, and on this host 
all other nrpe checks work.

I don't know if it's really the sudo in the line because I have another 
line which says

command[check_another_plugin]=sudo /etc/nagios/another_plugin

and this works fine when called via nrpe as such

check_nrpe -H hostname -c check_another_plugin
OK: test ok

If sudo was the problem, I would expect both checks to fail, but the 
other one works fine.

Also, I need to run the check with sudo because this check will not work 
without root privs and my
nrpe runs under the nagios user.

-h

Hari Sekhon



Lane, Jim wrote:
> Hari: I think your problem is with the sudo in the line 
>
> command[check_plugin]=sudo /etc/nagios/check_plugin
>
> Try it as 
>
> command[check_plugin]=/etc/nagios/check_plugin
>
> and see how you get on. I run NRPE plugins as above on my systems and
> they work fine.
>
> HTH
>
> Jim Lane 
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Hari
> Sekhon
> Sent: February 21, 2007 8:04 AM
> To: Nagios Users mailinglist
> Subject: [Nagios-users] NRPE unable to read output
>
> Hi,
>I'm using NRPE to execute checks on remote hosts and am have problems
>
> with one plugin on just one machine. I have the plugin in the 
> configuration of nrpe and execute
>
> /usr/nagios/libexec/check_nrpe -H hostname -c check_plugin
> NRPE: Unable to read output
>
> The definition of the command call in nrpe.cfg is as follows:
>
> command[check_plugin]=sudo /etc/nagios/check_plugin
>
> and I have the following line in /etc/sudoers:
>
> nagios  ALL=(ALL)  NOPASSWD: /etc/nagios/check_plugin
>
> NRPE is running as the nagios user. When logged in as root I can do
>
> su - nagios
> sudo /etc/nagios/check_plugin
> OK: test passed
>
> so I don't understand why it is saying no output.
>
> I tried changing the nrpe.cfg to have > /tmp/output.log 2>&1 at the end 
> of it but the file /tmp/output.log was not created so I assume that 
> there really was no output when run from the check_nrpe command.
> This works on all my other servers (most of which are Gentoo) and this 
> one is RHEL4. SELinux is disabled. I can execute all other nrpe checks 
> correctly on this server including another one which also uses sudo.
> The difference in Distro is the only thing I can think of but it even 
> works from the command line. I am using nrpe 2.6.
>
> I have racked my brains but can't think of anything else.
>
> Any ideas on this?
>
> -h
>
>   

-
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


Re: [Nagios-users] NRPE unable to read output

2007-02-21 Thread Lane, Jim
Hari: I think your problem is with the sudo in the line 

command[check_plugin]=sudo /etc/nagios/check_plugin

Try it as 

command[check_plugin]=/etc/nagios/check_plugin

and see how you get on. I run NRPE plugins as above on my systems and
they work fine.

HTH

Jim Lane 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hari
Sekhon
Sent: February 21, 2007 8:04 AM
To: Nagios Users mailinglist
Subject: [Nagios-users] NRPE unable to read output

Hi,
   I'm using NRPE to execute checks on remote hosts and am have problems

with one plugin on just one machine. I have the plugin in the 
configuration of nrpe and execute

/usr/nagios/libexec/check_nrpe -H hostname -c check_plugin
NRPE: Unable to read output

The definition of the command call in nrpe.cfg is as follows:

command[check_plugin]=sudo /etc/nagios/check_plugin

and I have the following line in /etc/sudoers:

nagios  ALL=(ALL)  NOPASSWD: /etc/nagios/check_plugin

NRPE is running as the nagios user. When logged in as root I can do

su - nagios
sudo /etc/nagios/check_plugin
OK: test passed

so I don't understand why it is saying no output.

I tried changing the nrpe.cfg to have > /tmp/output.log 2>&1 at the end 
of it but the file /tmp/output.log was not created so I assume that 
there really was no output when run from the check_nrpe command.
This works on all my other servers (most of which are Gentoo) and this 
one is RHEL4. SELinux is disabled. I can execute all other nrpe checks 
correctly on this server including another one which also uses sudo.
The difference in Distro is the only thing I can think of but it even 
works from the command line. I am using nrpe 2.6.

I have racked my brains but can't think of anything else.

Any ideas on this?

-h

-- 
Hari Sekhon



-
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=DEVDE
V
___
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

-
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


[Nagios-users] NRPE unable to read output

2007-02-21 Thread Hari Sekhon
Hi,
   I'm using NRPE to execute checks on remote hosts and am have problems 
with one plugin on just one machine. I have the plugin in the 
configuration of nrpe and execute

/usr/nagios/libexec/check_nrpe -H hostname -c check_plugin
NRPE: Unable to read output

The definition of the command call in nrpe.cfg is as follows:

command[check_plugin]=sudo /etc/nagios/check_plugin

and I have the following line in /etc/sudoers:

nagios  ALL=(ALL)  NOPASSWD: /etc/nagios/check_plugin

NRPE is running as the nagios user. When logged in as root I can do

su - nagios
sudo /etc/nagios/check_plugin
OK: test passed

so I don't understand why it is saying no output.

I tried changing the nrpe.cfg to have > /tmp/output.log 2>&1 at the end 
of it but the file /tmp/output.log was not created so I assume that 
there really was no output when run from the check_nrpe command.
This works on all my other servers (most of which are Gentoo) and this 
one is RHEL4. SELinux is disabled. I can execute all other nrpe checks 
correctly on this server including another one which also uses sudo.
The difference in Distro is the only thing I can think of but it even 
works from the command line. I am using nrpe 2.6.

I have racked my brains but can't think of anything else.

Any ideas on this?

-h

-- 
Hari Sekhon


-
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


Re: [Nagios-users] Check_nt & Microsoft Exchange 6.5

2007-02-21 Thread Mark Duffy
Firstly, thanks for the reply:

> Based on that document, I've set up the following commands. I'm not
> really sure how well they're working (they always return 0 on the
quiet
> Exchange box I'm using them on so far) so I'd be interested to hear
how
> you get on.

It seems no matter what queue you enter to check you always get a value
of 0 returned, check a queue that doesn't exist and you still get a 0,
you can also pause the queues in system manager and still get values of
0 returned for the queues

Regards,

Mark
This email may contain confidential information and may be read, 
copied and used only by the intended recipient.

The information in this email transmission may not be legally revealed 
and is intended only for the use of the individual(s) named above. If 
you are not the intended recipient you are hereby notified that any use,
dissemination, distribution or copying of this email message or its 
information is strictly prohibited.


If you have received this email in error please notify the sender by reply. 
Delete this message from your email system(s) and do not disclose its 
contents to any person.

-
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


Re: [Nagios-users] FW: Reports using NDOutils?

2007-02-21 Thread Wheeler, JF (Jonathan)
> -Original Message-
> From: nagios-users On Behalf Of Marcel Mitsuto Fucatu Sugano
> Sent: 15 February 2007 14:58
> 
> On Thu, 2007-02-15 at 10:17 +, Wheeler, JF (Jonathan) wrote:
> > -Original Message-
> > From: nagios-users On Behalf Of Marcel Mitsuto Fucatu Sugano
> > Sent: 14 February 2007 19:27
(big snip)
> > >> 2) Is it crazy to think I can keep *all* the NDO data 
> forever?  (~500 hosts / 6000+ srvcs)
> > >
> > > Well, considering that only state changes matters, it isn't that
crazy.
> > 
> > The only place where I have had to do anything is with the
logentries
> > table which (in our case) has written more records than is allowed
by
> > MySQL and sometimes generates MySQL errors.  Deleting old entries
solves
> > the problem (I have a script that deletes entries more than 6 weeks
> > old).
> 
> Deleting old entries didn't wacks historical state change data?

I do not see a need to keep the log data for more than six weeks in the
SQL tables; these are separate from the log files on the Nagios server.
Note that there is no cleanup of the Nagios logs (as far as I am aware),
so these need to be cleared out every so often as well.  I have a
separate script which compresses all log files except the last six and
only keeps 190 files (about 6 months of data) in the log archives
directory.

Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory

-
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


Re: [Nagios-users] Sending a txt message as acknowledgement for event

2007-02-21 Thread Az
patrickm wrote:
> Is it possible to reply to a txt message that is sent from the nagios server 
> as acknowledgement when an event occurs, like an unreachable server or other 
> events?
The short answer is, yes.

The long answer is, it depends on how you sent the SMS in the first 
place. If you are using some cheapy internet-based solution, then I 
doubt they have any return path feature. If you are sending via GSM 
modems, then yes. We do this now and have been for 2 years. If you have 
a direct link into a carriers' SMSC, then it will depend on their 
solution. We are looking to move this way in the near future, and our 
carrier has a return path solution.

The guts of the solution is just code that parses the SMS back and hands 
it off to Nagios using the external command features. In our case, we 
reply/forward the entire SMS as-is back to sending device, which can 
easily parse the SMS given we know the exact format it left in anyhow. 
Plus, the same system handles other inbound and outbound SMSs with ease.


-
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