Notification command, send string to serial port

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gust102
Posts: 4
Joined: Mon Mar 02, 2015 8:42 am

Notification command, send string to serial port

Post by gust102 »

We have a device, who can be triggered via serial communication, to call or send text message in GSM mobile network.
To trigger this, I just send string 'ALARM$' to serial port:

Code: Select all

/bin/echo 'ALARM$' > /dev/ttyS1
If I do this from the Linux promt (logged in as user nagios), it works fine.

But, if I add this as a notification commad, the notification triggers, but nothing happens.

Does anyone know what could be the problem here?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification command, send string to serial port

Post by tmcdonald »

Please do not post the same thread twice. We will be closing this thread and continuing in your other thread here: http://support.nagios.com/forum/viewtop ... 639#128363
Former Nagios employee
Locked