notification command

Tal Cohen nagios at cohen123.com
Fri Dec 7 20:35:06 CET 2007


Hmmm, without looking at your script, I would say your best bet is to add
logging capabilities to your script. When your script runs, it should log to
a file what it is doing and with what parameters/arguments it is running.
That will at least give you an idea of where the script is dying,

 

Tal

 

  _____  

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Keles, Cem
Sent: Friday, December 07, 2007 2:27 PM
To: Nagios Users mailinglist
Subject: [Nagios-users] notification command

 

Hi,

I've written a shell script which is calling a php code and I'm using this
shell script as a notification command.

It runs fine when tested on command line executed by both root and nagios
user. But if used as nagios notification command, I cant receive any mail.

Nagios logs show command is executed but in mail log I cant see any mail
sent.

Owner of script is the nagios user. It is being called by /bin/sh, all
arguments in it is being exported. In nagios documentation it tells any
command which can be run on command line can be used as a nagios misc
command but I couldn't succeed sending mails.

What do you think the problem is or in which log I can see why it doesn't
send mails?

 

Any help will be appreciated.

 

Thanks

Cem


************************************************************************
The information contained in this message or any of its attachments may be
confidential and is intended for the exclusive use of the addressee(s). Any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited without the express permission of the
sender. The views expressed in this email are those of the individual and
not necessarily those of Sony or Sony affiliated companies. Sony email is
for business use only.

This email and any response may be monitored by Sony to be in compliance
with Sonys global policies and standards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071207/ff61e830/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-------------- next part --------------
_______________________________________________
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