SMS notifications

Andreas Ericsson ae at op5.se
Wed May 19 14:52:20 CEST 2004


Onsite DeTeWe wrote:
> When I su to nagios I get an error but the sms still sends....  The error 
> is fopen : Pemission denied, sending logs to stderr.  thats all.
> 
> Had the initial problem of the nagios user not having access to the comm 
> ports, but fixed that at least in the test.
> 
> I have not got a clue about the fopen thing and I don't have an fopen 
> command on the box.
> 
Run strace 2>&1 on it and pipe it through your favorite pager. That way 
you'll see all system calls and their return values.


> J
> 
> 
> 
> 
> 
> "Marc Powell" <marc at ena.com>
> 19/05/2004 13:21
>  
>         To:     "Onsite DeTeWe" <Onsite.DeTeWe at firstgroup.com>, 
> <nagios-users at lists.sourceforge.net>
>         cc: 
>         Subject:        RE: [Nagios-users] SMS notifications
> 
> 
> 
> 
> ________________________________
> 
> From: Onsite DeTeWe [mailto:Onsite.DeTeWe at firstgroup.com]
> Sent: Wednesday, May 19, 2004 4:34 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] SMS notifications
> 
> 
> 
> Hi All,
> 
> I have just setup a mobile gateway on our nagios box (6310i with serial
> lead ;-).  Got all the SMS stuff working using gnokii which works a
> treat.  Recommend it to anyone.  However, when I try and get nagios to
> use a new notify routine it fails to send the text.
> 
> Debug so far.
> 
> Got gnokii to send SMS direct.
> Added notify-by-sms to misccommands.cfg.
> I know the above works as I then cut the command from the .cfg
> and run it from the command line direct and it works.
> 
> Could this be a permissions thing associated with the nagios user???
> 
> <marc> -- Yes certainly (and most likely the problem). Did you run your
> test as root or the nagios user? You must be su'd to nagios to truly
> test it in the way that nagios would send the notification.
> 
> --
> Marc
> 
> 
> 
> 
> **********************************************************************
> This message is confidential. It may not be disclosed to, or used by, 
> anyone other than the addressee. If you receive this message in 
> error, please advise us immediately.
> 
> Internet email is not necessarily secure. First does not accept
> responsibility for changes to any email which occur after the email
> has been sent. Attachments to this email could contain software
> viruses which could damage your system. First have checked the
> attachments for viruses before sending, but you should virus-check
> them before opening.
> 
> http://www.firstgroup.com
> **********************************************************************
> 
> 

-- 
Mvh
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
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