LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-17-2010, 08:09 AM   #1
yesyes
LQ Newbie
 
Registered: Apr 2010
Location: Berkshire, UK
Posts: 6

Rep: Reputation: 0
Question Voyage Linux 0.6.5 on Alix 2d3 board - a few questions


Hi all,

I've recently installed Voyage Linux on an Alix 2d3 board. Its main purpose is to run Cacti to monitor my home network.

I have some Linux experience but would still call myself a beginner. I'd appreciate some beginner friendly answers .. ;-)

Here's the questions I have for now:

- The Alix 2d3 does not have a battery for the real time clock. I'd like to sync the time via NTP. I have installed ntpd and set my time zone and changed the NTP servers in my /etc/ntp.conf to 0.uk.pool.ntp.org though 3.uk.pool.ntp.org. But the clock is still off. At the moment it's running about 40 minutes fast. How do I configure it so that it syncs time on start-up and periodically thereafter?

- How do I stop and start services? I'm looking for something similar to /etc/services <service_name> stop|start|status on Red Hat. I've googled my heart out for what seems like decades to no avail.

- I've installed net-snmp and lm-sensors. I can read the mainboard and CPU temperatures with the sensors command. I would like to graph the temperatures in Cacti. Is there a way to include the sensors as an SNMP source so that I can add the graph in Cacti? Alternatively, does anyone know about a RRDtool script do get the sensor data into Cacti? Again. I've googled that to no avail...

I'm sure I'll have more questions soon but that should be enough for now.. ;-)

Thanks in advance for any help you can provide.

Chris
 
Old 07-17-2010, 09:25 AM   #2
rdgreenlaw
Member
 
Registered: May 2007
Location: Newport, Maine, USA
Distribution: Debian 8.7
Posts: 73

Rep: Reputation: 18
I can help with time synchronization if you are using ntpd to synchronize the time.

Check to be sure that you have your selected time servers in /etc/ntp.conf

Next run

ntpupdate 0.uk.pool.ntp.org

to synchronize your clock with a time servers. If this server happens to be down, change to one of the others.

The ntpupdate program will return a line similar to this one

24 Mar 18:16:43 ntpdate[10255]: adjust time server 200.100.20.10 offset -0.000267 sec

If the offset is > 1 second (The digit(s) before the decimal point in the offset is > 0) then run ntpupdate again using the same time server.

Count the number of times you need to run ntpupdate to get an offset less than 1.

In your startup routines add a script that runs ntpupdate as follows

Code:
#!/bin/bash
# Initial time sync of Linux without an on-board clock

# Repeat ntpupdate and sleep commands as necessary to match the number of updates you needed to do to get accurate time
# by changing counter= to the number of times you ran ntpupdate

counter=4

sync1=$counter
sync2=$counter

while [ $sync1 -gt 0 ]; do
   ntpupdate 0.uk.pool.ntp.org
   sleep 1
done
# backup sync in case primary time server is down
# repeat these the same number of times as the ones above

while [ $sync1 -gt 0 ]; do
   ntpupdate 1.uk.pool.ntp.org
   sleep 1
done

# a few seconds later we now have an accurate software clock running
Be sure this runs after your network initializes and before ntpd (the time sync deamon) starts.

I'm not sure about Voyage Linux, but you can use killall to shutdown services.

Code:
killall ntpd # safely kills all instances of ntpd running on the server
killall -9 ntpd # kills all instances of ntpd by sending signal 9 (this usually stops ones that automatically restart)

Looking on the Voyager site, it appears that there are no commands for service start/restart/stop yet, but they will be included in a future release. Meanwhile I hope this helps. I understand that Voyager was intended as an embedded Linux for devices, and starting/stopping services was probably not a priority for an embedded linux.

Sorry, I can't help with SNMP or Cacti. Both are outside my experience.

Last edited by rdgreenlaw; 07-17-2010 at 09:27 AM. Reason: changed smnp to SNMP (mistyped protocol)
 
Old 07-18-2010, 07:29 AM   #3
yesyes
LQ Newbie
 
Registered: Apr 2010
Location: Berkshire, UK
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for that Roger.
I did come across ntpupdate while googling. It turned out that this doesn't seem to exist on my installation.

alix:~# ntpupdate
-bash: ntpupdate: command not found
alix:~#

However, the time/date issue seems to have fixed itself. Looks like I should just have been more patient waiting for the time to be updated. I'll keep an eye on it and will get back to your suggestion if the time goes wrong again. Any idea about the missing ntpupdate?


Regarding starting/stopping services, you suggest to just kill the service and then start it again with its specific command in /etc/init.d? Isn't there some sort of package that I could install?


Anyone any ideas about SNMP and Cacti?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to install FFMPEG on voyage linux voyage-linux-noob Linux - Software 1 10-30-2010 07:34 AM
irtouch touchscreen on voyage linux problem PFerreira Linux - Hardware 0 01-29-2010 10:24 AM
My Maiden Voyage With Linux/Ubuntu turbogrub LinuxQuestions.org Member Intro 1 08-23-2009 09:09 AM
LXer: Do More With Less: 802.1Q VLANs with Voyage Linux LXer Syndicated Linux News 0 02-13-2008 10:30 AM
ALiX - Business Software Environment omgkthxbye General 2 10-24-2002 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration