I'm trying to set up an alert so that it goes to a specific user after 10 minutes. If not acknowledged in 10 minutes, I want it to go to a second user. If he/she doesn't acknowledge it in another 10 minutes, I want to alert the first user again, and repeat in this fashion until it's acknowledged (or fixed). So, "user 1" would get the alert after 10 minutes, 30 minutes, 50 minutes, etc. and "user 2" after 20 minutes, 40 minutes, 60 minutes, etc. For testing, I have the alert defined like:
HOST=testhost.syr.edu RECOVERED MAIL user1 at syr.edu FORMAT=TEXT DURATION>10 REPEAT=20 MAIL user2 at syr.edu FORMAT=SMS DURATION>20 REPEAT=20
What happens is the first alert (FORMAT=TEXT) goes out at 10 minutes, nothing at 20 minutes, both at 30 miuntes, nothing at 40 minutes, both at 50 minutes, and so on. I obviously don't understand how REPEAT works.
What's the proper way to accomplish this?
Thanks,
Peter Murray Computing and Media Services Syracuse University Syracuse NY 13244 <pbmurray at syr.edu>
Hi,
I am trying to get larrd to graph external data from a script and I think I have everything setup but there doesn't appear to be any data going into the rrd files. The logs seem fine and there are no error messages etc that seem to help. The graphs are on the page but just not getting data into them.
Can someone give me a pointer of how to check the data source etc or what I should Check and look at ?
I haven't added the scripts to the larrddata as my BB messages use status.
Any help would be greatly appreciated. Ger.
hobbitlaunch.cfg entries
[larrdstatus] ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/larrd-status.lo g hobbitd_larrd --rrddir=$BBVAR/rrd --extra-script=/usr/lib/hobbit/server/ext/la rrd-ext.sh --extra-tests=clients
[clients] ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/clients.sh LOGFILE $BBSERVERLOGS/clients.log INTERVAL 5m
RRD script larrd-ext.sh The script is generating data as when I uncomment the echo commands I get the following data into the tmp file.
/usr/lib/hobbit/server/tmp/rrd_msg_13208 clients kbwan3 19
19 is the output that the rrd files should be receiving and graphing.
#!/bin/sh
Input parameters: Hostname, testname (column), and messagefile
HOSTNAME="$1" TESTNAME="$2" FNAME="$3"
#echo "$FNAME" > /tmp/hobbit.$HOSTNAME #echo "$TESTNAME" >> /tmp/hobbit.$HOSTNAME #echo "$HOSTNAME" >> /tmp/hobbit.$HOSTNAME
if [ "$TESTNAME" = "clients" ]
then
# Analyze the message we got
CLIENTS=grep "connected" $FNAME | awk '{print $14}'
# The RRD dataset definitions
echo "DS:clients:GAUGE:300:0:U"
# The filename
echo "clients.rrd"
# The data
echo "$CLIENTS"
echo "$CLIENTS" >> /tmp/hobbit.$HOSTNAME
fi
exit 0
participants (2)
-
ger@fwi.ie
-
PBMURRAY@syr.edu