Changing the default xymon port
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100125/b834c9c0/attachment.html>
You probably want the SERVER to listen to port 1985 too...
[bb at iris etc]$ pwd /usr/local/xymon/server/etc [bb at iris etc]$ grep 198 hobbitserver.cfg BBPORT="1985" # Portnumber where hobbitd/bbd listens
Dominique
Roland Soderstrom wrote:
Hi,
I'm running Hobbit server version 4.3.0-0.beta2 on Solaris 10 X86. I'm running Hobbit client version 4.3.0-0.beta2 on Solaris 9 SPARC. Currently we have a BB server running on port 1984 To test and migrate to Xymon I tried to run Xymon on port 1985 But it doesn't seem to work.
It uses default 1984 even though I specify port 1985.
bash-2.05$ bin/bb --debug 192.168.34.72 test 2010-01-25 11:42:55 Transport setup is: 2010-01-25 11:42:55 bbdportnumber = 1984 2010-01-25 11:42:55 bbdispproxyhost = NONE 2010-01-25 11:42:55 bbdispproxyport = 0 2010-01-25 11:42:55 Recipient listed as '192.168.34.72' 2010-01-25 11:42:55 Standard BB protocol on port 1984 2010-01-25 11:42:55 Will connect to address 192.168.34.72 port 1984 2010-01-25 11:42:55 Connect status is 0 2010-01-25 11:42:55 Sent 4 bytes 2010-01-25 11:42:55 Closing connection bash-2.05$ pwd /usr/local/xymon/client bash-2.05$ ls etc clientlaunch.cfg hobbitclient.cfg localclient.cfg bash-2.05$ grep 198 etc/hobbitclient.cfg etc/hobbitclient.cfg:BBPORT="1985" # Portnumber where hobbitd listens
Any ideas why this isn't working.
--
Best Regards, *Roland Soderstrom*
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I'm running Hobbit server version 4.3.0-0.beta2 on Solaris 10 X86. I'm running Hobbit client version 4.3.0-0.beta2 on Solaris 9 SPARC. Currently we have a BB server running on port 1984 To test and migrate to Xymon I tried to run Xymon on port 1985 But it doesn't seem to work.
It uses default 1984 even though I specify port 1985.
bash-2.05$ bin/bb --debug 192.168.34.72 test 2010-01-25 11:42:55 Transport setup is: 2010-01-25 11:42:55 bbdportnumber = 1984 2010-01-25 11:42:55 bbdispproxyhost = NONE 2010-01-25 11:42:55 bbdispproxyport = 0 2010-01-25 11:42:55 Recipient listed as '192.168.34.72' 2010-01-25 11:42:55 Standard BB protocol on port 1984 2010-01-25 11:42:55 Will connect to address 192.168.34.72 port 1984 2010-01-25 11:42:55 Connect status is 0 2010-01-25 11:42:55 Sent 4 bytes 2010-01-25 11:42:55 Closing connection bash-2.05$ pwd /usr/local/xymon/client bash-2.05$ ls etc clientlaunch.cfg hobbitclient.cfg localclient.cfg bash-2.05$ grep 198 etc/hobbitclient.cfg etc/hobbitclient.cfg:BBPORT="1985" # Portnumber wherehobbitd listens
Any ideas why this isn't working.
Try:
bin/bb --debug 192.168.34.72:1985 test
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190. Von 5 Euro je SMS (zzgl. SMS-Gebühr) gehen 4,83 Euro an UNICEF.
Hello all,
Did anyone build an initscript for Suse 11.x for the Xymon Server? Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
Thanks
Ralf
applied international informatics GmbH Sitz der Gesellschaft: Berlin; Registergericht: Berlin-Charlottenburg HRB 77891B Geschaeftsfuehrung: Josef Duermoser, Michael Bihn
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und loeschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important Note: This e-mail and any attachment are confidential and may contain trade secrets or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you!
Did anyone build an initscript for Suse 11.x for the Xymon Server? Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
I use CentOS and just made the init script call hobbit.sh as the xymon user. Seems to work perfectly. Apart from the chkconfig commented section it's a one-liner.
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
He Ralf,
Hereby my version for opensuse 11.x. See attachment.
please mind my not standard installation of xymon in /opt/monitor/xymon. This requires some editing.
You can install it using insserv or chkconfig:
callisto:/opt/monitor/xymon/server/etc # cp xymon.opensuse11 /etc/init.d/xymon callisto:/opt/monitor/xymon/server/etc # cd /etc/init.d/ callisto:/etc/init.d # chmod a+x xymon callisto:/etc/init.d # chkconfig --add xymon xymon 0:off 1:off 2:off 3:on 4:off 5:on 6:off callisto:/etc/init.d # chkconfig --list xymon xymon 0:off 1:off 2:off 3:on 4:off 5:on 6:off
callisto:/etc/init.d # service xymon start Starting xymon: Hobbit started Hobbit client for linux started on callisto callisto:/etc/init.d #
Regards,
Gé
Reinartz Ralf AII.Pforzheim wrote:
Hello all,
Did anyone build an initscript for Suse 11.x for the Xymon Server? Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
Thanks
Ralf
Hereby my version for opensuse 11.x. See attachment.
From your script:
start() { # Check if xymon is already running echo -n $"Starting $prog: " su - xymon -c "/opt/monitor/xymon/server/hobbit.sh start" su - xymon -c "/opt/monitor/xymon/client/runclient.sh start" }
Isn't the Xymon client configured to start from your hobbitlaunch.cfg then?
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
Nur noch bis 31.01.2010: DSL-Komplettpaket für 16,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
Hi Ge and all the others,
Thank you very much. Was exactly what I needed :)
Have a nice Day
Ralf
-----Ursprüngliche Nachricht----- Von: Gé Janssen [mailto:ge.janssen at gmail.com] Gesendet: Montag, 25. Jänner 2010 22:40 An: hobbit at hswn.dk Betreff: Re: [hobbit] Initscript for Suse?
He Ralf,
Hereby my version for opensuse 11.x. See attachment.
please mind my not standard installation of xymon in /opt/monitor/xymon. This requires some editing.
You can install it using insserv or chkconfig:
callisto:/opt/monitor/xymon/server/etc # cp xymon.opensuse11 /etc/init.d/xymon callisto:/opt/monitor/xymon/server/etc # cd /etc/init.d/ callisto:/etc/init.d # chmod a+x xymon callisto:/etc/init.d # chkconfig --add xymon xymon 0:off 1:off 2:off 3:on 4:off 5:on 6:off callisto:/etc/init.d # chkconfig --list xymon xymon 0:off 1:off 2:off 3:on 4:off 5:on 6:off
callisto:/etc/init.d # service xymon start Starting xymon: Hobbit started Hobbit client for linux started on callisto callisto:/etc/init.d #
Regards,
Gé
Reinartz Ralf AII.Pforzheim wrote:
Hello all,
Did anyone build an initscript for Suse 11.x for the Xymon Server? Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
Thanks
Ralf
applied international informatics GmbH Sitz der Gesellschaft: Berlin; Registergericht: Berlin-Charlottenburg HRB 77891B Geschaeftsfuehrung: Josef Duermoser, Michael Bihn
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und loeschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important Note: This e-mail and any attachment are confidential and may contain trade secrets or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you!
Although not specifically for SLES 11, I've used a variation of this on SLES 9, 10 and 11. It should live in /etc/rc.d and works with chkconfig.
#! /bin/sh
BEGIN INIT INFO
Provides: xymon
Required-Start: network
Required-Stop: network
Default-Start: 3 5
Default-Stop: 3
Description: Start the Xymon network monitor
END INIT INFO
case "$1" in start) echo "Starting Xymon" su - xymon -c "cd /home/xymon/server; ./hobbit.sh start" ;; stop) echo "Stopping Xymon" su - xymon -c "cd /home/xymon/server; ./hobbit.sh stop" ;; restart) $0 stop $0 start rc_status ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac
On 01/25/2010 10:04 AM, Reinartz Ralf AII.Pforzheim wrote:
Hello all,
Did anyone build an initscript for Suse 11.x for the Xymon Server? Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
Thanks
Ralf
applied international informatics GmbH Sitz der Gesellschaft: Berlin; Registergericht: Berlin-Charlottenburg HRB 77891B Geschaeftsfuehrung: Josef Duermoser, Michael Bihn
Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen der Status dieser E-Mail bekannt. Bitte benachrichtigen Sie uns in diesem Fall sofort durch Antwort-Mail und loeschen Sie diese E-Mail nebst etwaigen Anlagen von Ihrem System. Ebenso duerfen Sie diese E-Mail oder ihre Anlagen nicht kopieren oder an Dritte weitergeben. Vielen Dank!
Important Note: This e-mail and any attachment are confidential and may contain trade secrets or otherwise protected from disclosure. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this e-mail and any attachment from your system. If you are not the intended recipient please understand that you must not copy this e-mail or any attachment or disclose the contents to any other person. Thank you!
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Rich Smrcina Phone: 414-491-6001 http://www.linkedin.com/in/richsmrcina
Catch the WAVV! http://www.wavv.org WAVV 2010 - Apr 9-13, 2010 Covington, KY
Although not specifically for SLES 11, I've used a variation of this on SLES 9, 10 and 11. It should live in /etc/rc.d and works with chkconfig.
#! /bin/sh
BEGIN INIT INFO
Provides: xymon
Required-Start: network
Required-Stop: network
Default-Start: 3 5
Default-Stop: 3
Description: Start the Xymon network monitor
END INIT INFO
case "$1" in start) echo "Starting Xymon" su - xymon -c "cd /home/xymon/server; ./hobbit.sh start" ;; stop) echo "Stopping Xymon" su - xymon -c "cd /home/xymon/server; ./hobbit.sh stop" ;; restart) $0 stop $0 start rc_status ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac
Ah, slightly different to CentOS/Redhat - with those you don't need the "Starting Xymon" / "Stopping Xymon" as these are displayed anyway.
What's the reason for changing directory? What's rc_status in this context? Is there a reason for not using "./hobbit.sh restart" instead of "stop / start"?
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
On 01/25/2010 05:47 PM, Malcolm Hunter wrote:
Ah, slightly different to CentOS/Redhat - with those you don't need the "Starting Xymon" / "Stopping Xymon" as these are displayed anyway.
I just 'borrowed' another script and tailored it to work the way I needed. As to the display of messages at boot time, I don't recall checking if they come out without the echo statements. I've been using this script for several years.
What's the reason for changing directory? What's rc_status in this context? Is there a reason for not using "./hobbit.sh restart" instead of "stop / start"?
- cd? hobbit.sh lives in $HOME/server
- rc_status? I don't know.
- hobbit.sh restart? Because at boot time I want Xymon to start (./hobbit.sh start) and at shutdown I want xymon to stop (./xymon.sh stop).
-- Rich Smrcina Phone: 414-491-6001 http://www.linkedin.com/in/richsmrcina
Catch the WAVV! http://www.wavv.org WAVV 2010 - Apr 9-13, 2010 Covington, KY
Am 26.01.2010 03:52, schrieb Rich Smrcina:
On 01/25/2010 05:47 PM, Malcolm Hunter wrote: <<<<>> 2. rc_status? I don't know.
rc_status just writes a formated (colored) message on the screen, whether teh start succeded or failed.
Andreas
--
Institut für Textil- und Verfahrenstechnik der Deutschen Institute für Textil- und Faserforschung Denkendorf
On 01/26/2010 02:03 AM, Andreas Kunberger wrote:
rc_status just writes a formated (colored) message on the screen, whether teh start succeded or failed.
Andreas
Thank you, Andreas.
-- Rich Smrcina Phone: 414-491-6001 http://www.linkedin.com/in/richsmrcina
Catch the WAVV! http://www.wavv.org WAVV 2010 - Apr 9-13, 2010 Covington, KY
Hi all, I have a ext script that runs on the central hobbit server and reports NTP offsets for all clients.
It outputs to a column called ntp and looks like:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK Clock Offset: (-0.000296)
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
So I added ntp=ncv to TEST2RRD and ntp to GRAPHS and added the line NCV_ntp="Offset:GAUGE,*:NONE" in the hobbitserver.cfg
I also created a graph entry in hobbitgraph.cfg, see definition below: [ntp] TITLE NTP accuracy YAXIS Offset (us) DEF:offset=ntp.rrd:Offset:AVERAGE LINE2:Offset#FF0000:Offset (us) COMMENT:\n GPRINT:Offset:LAST: \: %7.6lf us (cur)\n GPRINT:Offset:MAX: \: %7.6lf us (max)\n GPRINT:Offset:MIN: \: %7.6lf us (min)\n GPRINT:Offset:AVERAGE: \: %7.6lf us (avg)\n
and then I restarted hobbit.
The problem is, I'm not getting any RRDs. I see the graph link on the page, but with a white box and red x, meaning no graph to display. Can anyone point me in the right direction as to what I'm doing wrong regarding getting this data to dump to an rrd file?
Thanks, Taylor
Hi all, I have a ext script that runs on the central hobbit server and reports NTP offsets for all clients.
It outputs to a column called ntp and looks like:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK Clock Offset: (-0.000296)
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
So I added ntp=ncv to TEST2RRD and ntp to GRAPHS and added the line NCV_ntp="Offset:GAUGE,*:NONE" in the hobbitserver.cfg
I also created a graph entry in hobbitgraph.cfg, see definition below: [ntp] TITLE NTP accuracy YAXIS Offset (us) DEF:offset=ntp.rrd:Offset:AVERAGE LINE2:Offset#FF0000:Offset (us) COMMENT:\n GPRINT:Offset:LAST: \: %7.6lf us (cur)\n GPRINT:Offset:MAX: \: %7.6lf us (max)\n GPRINT:Offset:MIN: \: %7.6lf us (min)\n GPRINT:Offset:AVERAGE: \: %7.6lf us (avg)\n
and then I restarted hobbit.
The problem is, I'm not getting any RRDs. I see the graph link on the page, but with a white box and red x, meaning no graph to display. Can anyone point me in the right direction as to what I'm doing wrong regarding getting this data to dump to an rrd file? In the RRD you refer to Offset, while there is no such name in the status message. Moreover, the value is written between parenthesis. In the manpage it says:
The "ncv" module will automatically detect all occurrences of a "NAME : value" or "NAME = value" string in a status message, and generate an RRD file holding all of the name/value data found in the message. The colon- or equal-sign must be present - if there is only whitespace, this module will fail.
In case of NCV, I replace all occurrances of ":" and "=" by ":" respectively "=". It wil give you more freedom in formatting the status message, without NCV misinterpreting it as a value to be recorded. You could place the actual value in HTML comment, causing it not to be shown. Rewriting the message above results in:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
<!-- Offset : -0.000296 -->
Regards, Wim Nelis
The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages.
Thanks for the suggestion, I will test that. I got the graphs and rrd files to show up, but what is odd is that the graphs have exactly one entry, and one data point on them, and they haven't updated the graph lines or graph values, but a strings of the rrd file shows that the data is up to date.
Don't know where to go on this, rrd file being updated, graphs exist, but graph lines themselves are no longer being updated...
-----Original Message----- From: W.J.M. Nelis [mailto:nelis at nlr.nl] Sent: Wednesday, January 27, 2010 1:40 AM To: hobbit at hswn.dk Subject: Re: [hobbit] Help with NCV graph
Hi all, I have a ext script that runs on the central hobbit server and reports NTP offsets for all clients.
It outputs to a column called ntp and looks like:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK Clock Offset: (-0.000296)
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
So I added ntp=ncv to TEST2RRD and ntp to GRAPHS and added the line NCV_ntp="Offset:GAUGE,*:NONE" in the hobbitserver.cfg
I also created a graph entry in hobbitgraph.cfg, see definition below: [ntp] TITLE NTP accuracy YAXIS Offset (us) DEF:offset=ntp.rrd:Offset:AVERAGE LINE2:Offset#FF0000:Offset (us) COMMENT:\n GPRINT:Offset:LAST: \: %7.6lf us (cur)\n GPRINT:Offset:MAX: \: %7.6lf us (max)\n GPRINT:Offset:MIN: \: %7.6lf us (min)\n GPRINT:Offset:AVERAGE: \: %7.6lf us (avg)\n
and then I restarted hobbit.
The problem is, I'm not getting any RRDs. I see the graph link on the page, but with a white box and red x, meaning no graph to display. Can anyone point me in the right direction as to what I'm doing wrong regarding getting this data to dump to an rrd file? In the RRD you refer to Offset, while there is no such name in the status message. Moreover, the value is written between parenthesis. In the manpage it says:
The "ncv" module will automatically detect all occurrences of a "NAME : value" or "NAME = value" string in a status message, and generate an RRD
file holding all of the name/value data found in the message. The colon-
or equal-sign must be present - if there is only whitespace, this module
will fail.
In case of NCV, I replace all occurrances of ":" and "=" by ":" respectively "=". It wil give you more freedom in formatting the status message, without NCV misinterpreting it as a value to be recorded. You could place the actual value in HTML comment, causing it not to be shown. Rewriting the message above results in:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
<!-- Offset : -0.000296 -->
Regards, Wim Nelis
The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I think the problem has to do with the minimal heartbeat specified within my RRD files, which is set to 600 seconds/5 minutes, but I'm only calling my ntpscript every half hour...
-----Original Message----- From: Taylor Lewick [mailto:tlewick at tradebotsystems.com] Sent: Thursday, January 28, 2010 10:38 AM To: hobbit at hswn.dk Subject: RE: [hobbit] Help with NCV graph
Thanks for the suggestion, I will test that. I got the graphs and rrd files to show up, but what is odd is that the graphs have exactly one entry, and one data point on them, and they haven't updated the graph lines or graph values, but a strings of the rrd file shows that the data is up to date.
Don't know where to go on this, rrd file being updated, graphs exist, but graph lines themselves are no longer being updated...
-----Original Message----- From: W.J.M. Nelis [mailto:nelis at nlr.nl] Sent: Wednesday, January 27, 2010 1:40 AM To: hobbit at hswn.dk Subject: Re: [hobbit] Help with NCV graph
Hi all, I have a ext script that runs on the central hobbit server and reports NTP offsets for all clients.
It outputs to a column called ntp and looks like:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK Clock Offset: (-0.000296)
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
So I added ntp=ncv to TEST2RRD and ntp to GRAPHS and added the line NCV_ntp="Offset:GAUGE,*:NONE" in the hobbitserver.cfg
I also created a graph entry in hobbitgraph.cfg, see definition below: [ntp] TITLE NTP accuracy YAXIS Offset (us) DEF:offset=ntp.rrd:Offset:AVERAGE LINE2:Offset#FF0000:Offset (us) COMMENT:\n GPRINT:Offset:LAST: \: %7.6lf us (cur)\n GPRINT:Offset:MAX: \: %7.6lf us (max)\n GPRINT:Offset:MIN: \: %7.6lf us (min)\n GPRINT:Offset:AVERAGE: \: %7.6lf us (avg)\n
and then I restarted hobbit.
The problem is, I'm not getting any RRDs. I see the graph link on the page, but with a white box and red x, meaning no graph to display. Can anyone point me in the right direction as to what I'm doing wrong regarding getting this data to dump to an rrd file? In the RRD you refer to Offset, while there is no such name in the status message. Moreover, the value is written between parenthesis. In the manpage it says:
The "ncv" module will automatically detect all occurrences of a "NAME : value" or "NAME = value" string in a status message, and generate an RRD
file holding all of the name/value data found in the message. The colon-
or equal-sign must be present - if there is only whitespace, this module
will fail.
In case of NCV, I replace all occurrances of ":" and "=" by ":" respectively "=". It wil give you more freedom in formatting the status message, without NCV misinterpreting it as a value to be recorded. You could place the actual value in HTML comment, causing it not to be shown. Rewriting the message above results in:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
<!-- Offset : -0.000296 -->
Regards, Wim Nelis
The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages.
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
Yep, that was it, resolved by running rrdtool tune file.rrd -h ds-name:newheartbeat (in seconds)
-----Original Message----- From: Taylor Lewick [mailto:tlewick at tradebotsystems.com] Sent: Thursday, January 28, 2010 10:52 AM To: hobbit at hswn.dk Subject: RE: [hobbit] Help with NCV graph
I think the problem has to do with the minimal heartbeat specified within my RRD files, which is set to 600 seconds/5 minutes, but I'm only calling my ntpscript every half hour...
-----Original Message----- From: Taylor Lewick [mailto:tlewick at tradebotsystems.com] Sent: Thursday, January 28, 2010 10:38 AM To: hobbit at hswn.dk Subject: RE: [hobbit] Help with NCV graph
Thanks for the suggestion, I will test that. I got the graphs and rrd files to show up, but what is odd is that the graphs have exactly one entry, and one data point on them, and they haven't updated the graph lines or graph values, but a strings of the rrd file shows that the data is up to date.
Don't know where to go on this, rrd file being updated, graphs exist, but graph lines themselves are no longer being updated...
-----Original Message----- From: W.J.M. Nelis [mailto:nelis at nlr.nl] Sent: Wednesday, January 27, 2010 1:40 AM To: hobbit at hswn.dk Subject: Re: [hobbit] Help with NCV graph
Hi all, I have a ext script that runs on the central hobbit server and reports NTP offsets for all clients.
It outputs to a column called ntp and looks like:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK Clock Offset: (-0.000296)
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
So I added ntp=ncv to TEST2RRD and ntp to GRAPHS and added the line NCV_ntp="Offset:GAUGE,*:NONE" in the hobbitserver.cfg
I also created a graph entry in hobbitgraph.cfg, see definition below: [ntp] TITLE NTP accuracy YAXIS Offset (us) DEF:offset=ntp.rrd:Offset:AVERAGE LINE2:Offset#FF0000:Offset (us) COMMENT:\n GPRINT:Offset:LAST: \: %7.6lf us (cur)\n GPRINT:Offset:MAX: \: %7.6lf us (max)\n GPRINT:Offset:MIN: \: %7.6lf us (min)\n GPRINT:Offset:AVERAGE: \: %7.6lf us (avg)\n
and then I restarted hobbit.
The problem is, I'm not getting any RRDs. I see the graph link on the page, but with a white box and red x, meaning no graph to display. Can anyone point me in the right direction as to what I'm doing wrong regarding getting this data to dump to an rrd file? In the RRD you refer to Offset, while there is no such name in the status message. Moreover, the value is written between parenthesis. In the manpage it says:
The "ncv" module will automatically detect all occurrences of a "NAME : value" or "NAME = value" string in a status message, and generate an RRD
file holding all of the name/value data found in the message. The colon-
or equal-sign must be present - if there is only whitespace, this module
will fail.
In case of NCV, I replace all occurrances of ":" and "=" by ":" respectively "=". It wil give you more freedom in formatting the status message, without NCV misinterpreting it as a value to be recorded. You could place the actual value in HTML comment, causing it not to be shown. Rewriting the message above results in:
Tue Jan 26 10:01:12 CST 2010
NTP Info (/usr/sbin/ntptrace -n ip_addr) NTP server is up OK
Ip_addr: stratum 2, offset -0.000296, synch distance 0.035976
<!-- Offset : -0.000296 -->
Regards, Wim Nelis
The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages.
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Am 25.01.2010 17:04, schrieb Reinartz Ralf AII.Pforzheim:
Hello all,
Did anyone build an initscript for Suse 11.x for the Xymon Server? Unfortunally the Debian Scripts are a little bit different from the Suses Way.
If not, we'll try to make one.
Thanks
Ralf
Hello,
I use the following script:
#! /bin/sh
xymon This shell script takes care of starting and stopping
xymon(the former Hobbit network monitor)
chkconfig: 2345 80 20
description: xymon is a network monitoring tool that allows \
you to monitor hosts and services. The monitor status is available \
via a webpage.
BEGIN INIT INFO
Provides: yxmon
Required-Start: $remote_fs
Should-Start: $named
Required-Stop:
Default-Start: 3 5
Default-Stop:
Description: Start xymon monitoring
END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/lib/xymon/server/hobbit.sh NAME=xymon DESC=xymon USER=xymon
test -x $DAEMON || exit 0
Include xymon defaults if available
if [ -f /etc/sysconfig/xymon ] ; then . /etc/sysconfig/xymon fi
set -e
case "$1" in start) echo -n "Starting $DESC: " su -c "$DAEMON start" - $USER echo "$NAME." ;; stop) echo -n "Stopping $DESC: " su -c "$DAEMON stop" - $USER echo "$NAME." ;; status) echo -n "Status of $DESC: " su -c "$DAEMON status" - $USER echo "$NAME." ;; reload|force-reload) echo "Reloading $DESC configuration files." su -c "$DAEMON reload" - $USER echo "$NAME." ;; restart) echo -n "Restarting $DESC: " su -c "$DAEMON restart" - $USER echo "$NAME." ;; rotate) echo -n "Rotating logs for $DESC: " su -c "$DAEMON rotate" - $USER echo "$NAME." ;; *) N=/etc/init.d/$NAME # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $N {start|stop|status|restart|(force-)reload|rotate}" >&2 exit 1 ;; esac
exit 0
mfg Andreas
--
Institut für Textil- und Verfahrenstechnik der Deutschen Institute für Textil- und Faserforschung Denkendorf
An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100127/b48e8ea8/attachment.html>
My manual test still didn't work. The manual test fault was because the hobbitclient.cfg don't exportvariables and so didn't get the BBPORT setting. Just a simple "export BBPORT=1985" made the trick.
Or like I said, specify the port as well as the IP address on the command line:
bin/bb --debug 192.168.34.72:1985 test
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
Nur noch bis 31.01.2010: DSL-Komplettpaket für 16,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
participants (9)
-
andreas.kunberger@itv-denkendorf.de
-
dominique.frise@unil.ch
-
ge.janssen@gmail.com
-
malcolm.hunter@gmx.co.uk
-
nelis@nlr.nl
-
Ralf.Reinartz@aiinformatics.com
-
rolands@logicaltech.com.au
-
rsmrcina@wi.rr.com
-
tlewick@tradebotsystems.com