Xymon Mailing List Archive search

Custom script shows purple

list David Morgan
Wed, 28 Apr 2010 07:39:29 -0400
Message-Id: <user-e8860df17115@xymon.invalid>

*face palm*  Duh!  It's in our custom script.  I am a doofus....

Iain M Conochie wrote:
<snip>
   # Tell Hobbit about it
   $BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`
  
You really need to put in status+5h instead of status for a 4 hour 
script. This tells the hobbit server not to expire the message for 5 
hours.

regards
Iain
   ${MSG}
   "

   exit 0


And the following is our clientlocal.sh portion for this script:

# LDAP Check - This command makes sure that this box is connected to
the MGS LDAP Server
[ldap-con]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/getent.sh
        LOGFILE $HOBBITCLIENTHOME/logs/ldap.log
        INTERVAL 4h

As can be seen, we have it running every 4 hours.  The status check
should be green, however, it goes to purple.  Is there a way (and
where/how) to change the default timeout for this, as I think the 4
hour time is making it puke.

Both these scripts are on the client side.