Askar Ali wrote:


My problem is that my gnokii is running on another machine then nagios, can someone guide me how to pipe message from nagios machine to machine running sms gateway (gnokii) ?
so that " echo $mess | gnokii --sendsms $number" do the sending of sms.

You can use a remote shell like SSH and issue the command
ssh [EMAIL PROTECTED] 'echo $mess | gnokii --sendsms $number'
from your Nagios host.
However, automating this process requires the use of an authentication agent like ssh-agent. You might also try to use NSCA or NRPE, or any custom remote check execution service, especially if one is already deployed on your Gnokii machine. This avoids the setup of ssh-agent at the cost of being less secure.

Regards

--
Thibault GENESSAY
ALIADIS
www.aliadis.fr
Tel.  0870 723 724
Fax 04 72 13 90 40


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to