Re: [Nagios-users] SMS issue Nagios 3.0

2008-04-21 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Henrik Schou wrote:

| I have installed Nagios 3.0 and I have some issues with Nagios sending
| sms-messages. I have installed smstools, and sendsms works fine from the
| command line. But when I want Nagios to send a notification, it fails.
| Could this be because of wrong user rights? I have changed the owner of
| sendsms to Nagios, but that didn’t help.

Have you tested it by becoming the nagios user and using the exact
commandline from your definition?

Tests run as root or another user are not relevant. You need to know
what happens as the nagios user.

So `su - nagios` and test again.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIDXvxBvzDRVjxmYERAjaAAJ0VS8NTQB74nA7sKYHBsA2tTfiB+gCeO3Rv
EhPAE/Zkfkri6hVuRnni4xg=
=2hqm
-END PGP SIGNATURE-

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] SMS issue Nagios 3.0

2008-04-21 Thread Henrik Schou
Hi

 

I have installed Nagios 3.0 and I have some issues with Nagios sending
sms-messages. I have installed smstools, and sendsms works fine from the
command line. But when I want Nagios to send a notification, it fails.
Could this be because of wrong user rights? I have changed the owner of
sendsms to Nagios, but that didn't help.

 

Entry in my command.cfg:

 

# 'notify-by-sms' command definition

define command{

command_namenotify-by-sms

command_line   /usr/local/bin/sendsms $PAGER$ "Nagios:
Service $SERVICEDESC$ on $HOSTALIAS$ is in state: $SERVICESTATE$"

}

 

# 'host-notify-by-sms' command definition

define command{

command_namehost-notify-by-sms

command_line   /usr/local/bin/sendsms $PAGER$ "Nagios: Host
$HOSTNAME$ ($HOSTADDRESS$) is in state: $HOSTSTATE$"

}

 

Entry in my contacts.cfg:

 

define contact{

contact_nameschou-sms

alias  Henrik Schou

service_notification_period smshours

host_notification_periodsmshours

service_notification_optionsc,r

host_notification_options   d,r

service_notification_commands   notify-by-sms

host_notification_commands  host-notify-by-sms

pagerxx

 can_submit_commands 1

}

 

Any ideas?

 

/Henrik



**
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.mimesweeper.com
**

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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