apt handling in Hobbit for Debian/Ubuntu Linux
Hi all
I have Xymon/hobbit monitoring a Debian box, which has a nice SERVICE=apt monitor on it. I often see that an update is needed - typically it comes 5 minutes AFTER I leave my server :) Thus I often have my server showing yellow service flag for the apt-service until I get home in the evening. I can obviously acknowledge this warning from the Xymon web-interface, but has anyone of you been extending Xymon for handling apt-updating via the webinterface?
(During daytime I do not have ssh access to the server - and I know that I could install webmin to solve this)
Best
Peter
Peter Toft, Ph.D. [pto at linuxbog.dk] http://petertoft.dk I blog at http://www.version2.dk/blogs/petertoft
Unless having apt "clean" at all times is a required function in your server, you might want to set your server so it doesn't propagate the yellow apt state upwards. This will keep the apt state from changing your overall "color".
Xymon is not designed to take any action on its own, but you can probably add your own link to the host page -- trying searching the archive for this.
But Webmin is a good alternative, if you can get to it from your "working hours" location.
GLH
On Tue, May 4, 2010 at 1:07 PM, Peter Toft <pto at linuxbog.dk> wrote:
Hi all
I have Xymon/hobbit monitoring a Debian box, which has a nice SERVICE=apt monitor on it. I often see that an update is needed - typically it comes 5 minutes AFTER I leave my server :) Thus I often have my server showing yellow service flag for the apt-service until I get home in the evening. I can obviously acknowledge this warning from the Xymon web-interface, but has anyone of you been extending Xymon for handling apt-updating via the webinterface?
(During daytime I do not have ssh access to the server - and I know that I could install webmin to solve this)
Best
Peter
Peter Toft, Ph.D. [pto at linuxbog.dk] http://petertoft.dk I blog at http://www.version2.dk/blogs/petertoft
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my advice is worth at least as much as what you are paying for it, or your money cheerfully refunded.
I have not, but I believe you can call a script based on a condition with xymon. Check the hobbit-alerts file for more info. Big Brother was a monitor and notify system only, but I think Henrik wrote the functionality where you can call a script that will do an apt-get update/upgrade/dist-upgrade on your server. In terms of having anything tied to the web gui, I can't say. HTH
Tony
On 05/04/2010 02:07 PM, Peter Toft wrote:
Hi all
I have Xymon/hobbit monitoring a Debian box, which has a nice SERVICE=apt monitor on it. I often see that an update is needed - typically it comes 5 minutes AFTER I leave my server :) Thus I often have my server showing yellow service flag for the apt-service until I get home in the evening. I can obviously acknowledge this warning from the Xymon web-interface, but has anyone of you been extending Xymon for handling apt-updating via the webinterface?
(During daytime I do not have ssh access to the server - and I know that I could install webmin to solve this)
Best
Peter
Peter Toft, Ph.D. [pto at linuxbog.dk] http://petertoft.dk I blog at http://www.version2.dk/blogs/petertoft
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
You can also write script which uses the bb command with the query option (see the bb man page. It will return the current color for a host:test and based on that result your script can respond to the situation which needs to be addressed.
......Bruce
Bruce White Senior Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | bewhite at fellowes.com | http://www.fellowes.com/ Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Fellowes, Inc. -----Original Message----- From: Tony Larco [mailto:tlarco at polr.com] Sent: Tuesday, May 04, 2010 2:24 PM To: hobbit at hswn.dk Subject: Re: [hobbit] apt handling in Hobbit for Debian/Ubuntu Linux
I have not, but I believe you can call a script based on a condition with xymon. Check the hobbit-alerts file for more info. Big Brother was a monitor and notify system only, but I think Henrik wrote the functionality where you can call a script that will do an apt-get update/upgrade/dist-upgrade on your server. In terms of having anything tied to the web gui, I can't say. HTH
Tony
On 05/04/2010 02:07 PM, Peter Toft wrote:
Hi all
I have Xymon/hobbit monitoring a Debian box, which has a nice SERVICE=apt monitor on it. I often see that an update is needed - typically it comes 5 minutes AFTER I leave my server :) Thus I often have my server showing yellow service flag for the apt-service until I get home in the evening. I can obviously acknowledge this warning from the Xymon web-interface, but has anyone of you been extending Xymon for handling apt-updating via the webinterface?
(During daytime I do not have ssh access to the server - and I know that I could install webmin to solve this)
Best
Peter
Peter Toft, Ph.D. [pto at linuxbog.dk] http://petertoft.dk I blog at http://www.version2.dk/blogs/petertoft
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tuesday, 4 May 2010 19:07:06 Peter Toft wrote:
Hi all
I have Xymon/hobbit monitoring a Debian box, which has a nice SERVICE=apt monitor on it. I often see that an update is needed - typically it comes 5 minutes AFTER I leave my server :) Thus I often have my server showing yellow service flag for the apt-service until I get home in the evening. I can obviously acknowledge this warning from the Xymon web-interface, but has anyone of you been extending Xymon for handling apt-updating via the webinterface?
Why do you need Xymon's interaction if you're just going to auto-install patches? Why not just put the relevant apt-get command in cron?
(We have an updates check for RHN/yum, but it is so we can know when to log changes to apply updates)
Regards, Buchan
participants (5)
-
bewhite@fellowes.com
-
bgmilne@staff.telkomsa.net
-
glh.forums@gmail.com
-
pto@linuxbog.dk
-
tlarco@polr.com