FW: FW: SMS issue Nagios 3.0

Henrik Schou schou at acebiosciences.com
Tue Apr 22 12:51:44 CEST 2008


Now I can send SMS' as the nagios user from the command line to my mobile, using sendsms xxxxxxxxxx test.

If I try to send using the command: /usr/local/bin/sendsms $PAGER$ "Nagios: Service $SERVICEDESC$ on $HOSTALIAS$ is in state: $SERVICESTATE$"

Nothing happens, the command doesn't create an error, so I guess it might be my contacts.cfg's $PAGER$ which are causing my problem now??

/Henrik

-----Original Message-----
From: Christian Schneemann [mailto:cschneemann at suse.de] 
Sent: 22. april 2008 09:27
To: nagios-users at lists.sourceforge.net
Cc: Henrik Schou
Subject: Re: [Nagios-users] FW: SMS issue Nagios 3.0

On Tuesday April 22 2008 08:13:29 am Henrik Schou wrote:
> When I try as the nagios user I get the following error:
>
> sendsms xxxxxxxxxx test
> mktemp: cannot create temp file /var/spool/sms/outgoing/send_L23225:
> Permission denied
> /usr/local/bin/sendsms: line 25: $FILE: ambiguous redirect
> /usr/local/bin/sendsms: line 26: $FILE: ambiguous redirect
> /usr/local/bin/sendsms: line 27: $FILE: ambiguous redirect
> [nagios at nagios bin]$
>
> Which user is the right owner for sendsms?
Have a short look at /var/spool/sms, which user owns the directories? Simply 
add the nagios user to the group which owns these directories. (Don't know which Distribution you're using, so it could be differ from distribution to 
distribution)


Christian


>
> /Henrik
>
>
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hugo
> van der Kooij
> Sent: 22. april 2008 07:48
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] SMS issue Nagios 3.0
>
>
>
> **********************************************************************
> 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
> **********************************************************************
>
> 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.



-- 
Christian Schneemann

-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)


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