[Xymon] Solaris 10 xymon SMF

Roland Soderstrom Rolands at logicaltech.com.au
Tue Aug 28 23:47:35 CEST 2012


Hi,

There is a minor issue with the Solaris 10 SMF for xymon by Galen Johnson that I improved a bit.
Thanks Galen for the nice work :D
At least it works fine for us.
When you disable the xymon service it could wait for up to 5 min before disabling it because the iostat and vmstat are running. (300 min)

I been trying some different approaches in the manifest but it doesn't really work properly.
I had to change the default timeout (30) to 300 to cater for the 300min possible run time of iostat, vmstat.
Otherwise it will go into maintenance mode.
Today I had a different approach and changed the xymon.sh script instead, that worked really nice.
In server/bin/xymon.sh I added these simple lines to the stop function. (works in Solaris 10)

"stop")
        if test -s /usr/local/xymon/logs/xymonlaunch.pid
        then
                kill -TERM `cat /usr/local/xymon/logs/xymonlaunch.pid`
                echo "Xymon stopped"
        else
                echo "Xymon is not running"
        fi
        rm -f /usr/local/xymon/logs/xymonlaunch.pid
        # kill off the remaining xymon processes, ie vmstat iostat etc.
        sleep 2
        pkill 'iostat|vmstat' -U xymon
        ;;

Maybe it could help someone else out there.
I'm running 4.3.10


-          Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120828/0f84ec9f/attachment.html>


More information about the Xymon mailing list