[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: SMS Alerts
- To: "hobbit (at) hswn.dk" <hobbit (at) hswn.dk>
- Subject: RE: SMS Alerts
- From: Galen Johnson <Galen.Johnson (at) sas.com>
- Date: Thu, 19 Mar 2009 02:52:33 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <339D555B07BAFC4A9A6C99FAFBD5BF06311354 (at) para-serve.para.local>
- Thread-index: AcmoSbNCbJASF7UJQsyrL2rBYaGP7wAFXl0Q
- Thread-topic: SMS Alerts
try:
echo "${BBHOSTNAME}:0:160 cpu is red" | gnokii --sendsms 1234567890
From: Jarrod Hodder [mailto:Jarrod.Hodder (at) pmg.net.au]
Sent: Thursday, March 19, 2009 12:18 AM
To: hobbit (at) hswn.dk
Subject: [hobbit] SMS Alerts
Hello,
I am trying to get a custom message sent from Hobbit via sms.
All I want is the hostname with a short message sent after it.
So far I have
#!/bin/bash
echo "${BBHOSTNAME:0:160} cpu is red" | gnokii --sendsms 1234567890
I am using gnokii as the gate way.
I think my variable is what is causing the problem, can someone see where I have gorn wrong?
Jarrod Hodder
Paradigm Management Group
110 Livingston Avenue
Kambah, ACT 2902
1300 735 370
Jarrod (at) pmg.net.au