New xymon Feature
list Jef Jagers
Hi, I have a request for a change for future xymon releases. First a little more info about our situation and the reason for the request. We currently still are using xymon version 4.2.3. This because we successfully made some adjustments to the source code of that version to allow two new columns to show for linux based servers (For windows machines this is already implemented). It concerns the Timediff and uptime columns, that we split from the cpu column. The reason we made these adjustments (uptime) is because our virtual machines boot really fast and the conn test often doesn't detect any downtime. We then can capture this with the uptime column. (if uptime < 30min => alert) The reason we wanted the timediff column separately is because some machines require correct times and seen that it is combined with the cpu column this could create confusion and doesn't provide an easy overview that we are used from xymon. (Each individual peace of info = separate column) We are eager to upgrade to the latest xymon release but are unable to make the same adjustments because some functions changed within the source code. (We did try though) We currently also don't have anybody employed who has the necessary indebt knowledge to make these kind of adjustments within the code. I can provide some more info on the changes that we performed on version 4.2.3 if required. Please let me know your thoughts. Regards, Jef Jagers
list Thomas Kähn
Hi Jef,
▸
On Thu, Oct 11, 2012 at 09:52:26AM +0000, user-a78daed26301@xymon.invalid wrote:This because we successfully made some adjustments to the source code of that version to allow two new columns to show for linux based servers (For windows machines this is already implemented). It concerns the Timediff and uptime columns, that we split from the cpu column.
Please let me know your thoughts.
please take a look at UP and CLOCK configuration: http://xymon.sourceforge.net/xymon/help/manpages/man5/analysis.cfg.5.html However, it's not shown in separate columns. This could be achieved by querying the cpu status similar to this... xymon localhost "xymondboard test=cpu color=red fields=hostname,msg" ... and adding the desired columns for each host: xymon localhost "status HOSTNAME.clock red" http://xymon.sourceforge.net/xymon/help/manpages/man1/xymon.1.html That's not a very nice solution but at least there is no need to modify the source. Best regards Thomas Kähn -- Thomas Kähn Technik, Network Engineering & Design; Content Delivery Platform & IP NETCOLOGNE Gesellschaft für Telekommunikation mbH Am Coloneum 9 | 50829 Köln www.netcologne.de Geschäftsführer: Dr. Hans Konle (Sprecher) Dipl.-Ing. Karl-Heinz Zankel Vorsitzender des Aufsichtsrates: Dr. Andreas Cerbe HRB 25580, AG Köln Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen. Die E-Mail darf in diesem Fall weder vervielfältigt noch in anderer Weise verwendet werden.
list Jeremy Laidman
▸
On 11 October 2012 20:52, <user-a78daed26301@xymon.invalid> wrote:
This because we successfully made some adjustments to the source code of that version to allow two new columns to show for linux based servers (For windows machines this is already implemented). It concerns the Timediff and uptime columns, that we split from the cpu column.
What you could do is implement this in a script, perhaps launched from
tasks.cfg as a channel worker. Something like this:
tasks.cfg:
[timediff]
ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD xymond_channel --channel=status --filter='\|cpu\|'
--log=$XYMONSERVERLOGS/timediff.log timediff.sh
Then in timediff.sh, you just split out the two parameters from what you
find, and then create two new status messages for timediff and uptime.
J
list Jef Jagers
Hi Thomas, Thanks for the suggestion. Going to take a look at it, this would allow us to move forward. But I think adjusting the source code would be, in my opinion, the most logical solution. Then it is maintained in newer version also. Met vriendelijke groeten, Jef Jagers Systems Engineer Thomson CompuMark Thomson Reuters
▸
-----Original Message-----
From: Thomas Kähn [mailto:user-816bb5e0272c@xymon.invalid]
Sent: vrijdag, oktober 12, 2012 8:00
To: Jagers, Jef (TR Technology)
Cc: xymon at xymon.com
Subject: Re: [Xymon] New xymon Feature
Hi Jef,
On Thu, Oct 11, 2012 at 09:52:26AM +0000, user-a78daed26301@xymon.invalid wrote:This because we successfully made some adjustments to the source code of that version to allow two new columns to show for linux based servers (For windows machines this is already implemented). It concerns the Timediff and uptime columns, that we split from the cpu column.
Please let me know your thoughts.
please take a look at UP and CLOCK configuration: http://xymon.sourceforge.net/xymon/help/manpages/man5/analysis.cfg.5.html However, it's not shown in separate columns. This could be achieved by querying the cpu status similar to this... xymon localhost "xymondboard test=cpu color=red fields=hostname,msg" ... and adding the desired columns for each host: xymon localhost "status HOSTNAME.clock red" http://xymon.sourceforge.net/xymon/help/manpages/man1/xymon.1.html That's not a very nice solution but at least there is no need to modify the source. Best regards Thomas Kähn -- Thomas Kähn Technik, Network Engineering & Design; Content Delivery Platform & IP NETCOLOGNE Gesellschaft für Telekommunikation mbH Am Coloneum 9 | 50829 Köln www.netcologne.de Geschäftsführer: Dr. Hans Konle (Sprecher) Dipl.-Ing. Karl-Heinz Zankel Vorsitzender des Aufsichtsrates: Dr. Andreas Cerbe HRB 25580, AG Köln Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sollten Sie diese Nachricht versehentlich erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu informieren und die Nachricht zu löschen. Die E-Mail darf in diesem Fall weder vervielfältigt noch in anderer Weise verwendet werden.
list Jef Jagers
Hi Jeremy, Thanks for the suggestion. Looks good as well. Let me try this one. Regards, Jef Jagers
▸
From: Jeremy Laidman [mailto:user-71895fb2e44c@xymon.invalid]
Sent: vrijdag, oktober 12, 2012 8:35
To: Jagers, Jef (TR Technology)
Cc: xymon at xymon.com
Subject: Re: [Xymon] New xymon Feature
On 11 October 2012 20:52, <user-a78daed26301@xymon.invalid<mailto:user-a78daed26301@xymon.invalid>> wrote:
This because we successfully made some adjustments to the source code of that version to allow two new columns to show for linux based servers (For windows machines this is already implemented). It concerns the Timediff and uptime columns, that we split from the cpu column.
What you could do is implement this in a script, perhaps launched from tasks.cfg as a channel worker. Something like this:
tasks.cfg:
[timediff]
ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD xymond_channel --channel=status --filter='\|cpu\|' --log=$XYMONSERVERLOGS/timediff.log timediff.sh
Then in timediff.sh, you just split out the two parameters from what you find, and then create two new status messages for timediff and uptime.
J