Jump to content

Raspberry Pi Issues/Questions


Smarthomes

Recommended Posts

Hey Guys, I am new to PC Monitor and Raspberry Pi, and I have run into some issues and I have some questions. I will start from the top.

 

First, I am having issues with the RPI going offline. It seems to happen when I try accessing the RPI from the Iphone App (My main method). I have the RPI setup to ping a single device, and it seems that whenever I look at the ping responses on the iphone, the RPI drops offline completely. Usually after a while it comes back online. Today it actually went offline for a few hours. The only way I could get it back on was to restart the process. (It showed Failed When I checked the status of the process. Where do I go from here? Are there specific logs I could look at that will help determine what is going on?

 

Now to a few questions.

 

1) What constitutes on Offline status from a device. It doesn't look like that is adjustable and I am not sure how it is determining online/offline status of the device.

2) On ping monitor rules, how often does the device ping? It almost looks like it is constant. If I am monitoring ping on 12 devices, wouldn't that generate a considerable amount of traffic? Is there any way to adjust that?

 

I know I have more but I will stop there now.

 

Thanks for all the help!

Link to comment
Share on other sites

  • Staff

To start with the questions

 

1. A device is considered Offline if it doesn't contact the server for a period of time.

2. For ping responses we ping the devices approximately every 15 seconds.  You cannot modify this interval.

 

Now for the snags you are encountering ,can you provide more details about your system:

 

What os do you use , result of command uname -a, the config file you are using (remove sensitive information).

 

We log to the daemon facility ,so usually  you can find the output by cat /var/log/daemon.log | grep pcmonitor

Link to comment
Share on other sites

Thanks for the response Calin. For the questions:

 

1) I was hoping for a bit more info about contacting the server. Is that checked similarly to the ping (ie. a heartbeat ping every 15 seconds?). Can I change how long till it reports offline?

2) The result of uname -1 =  Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/L

3) I am running Raspian on a New Raspberry pi. It is booting to a GUI, I believe LXDE.

4) http://pastebin.com/0SYpZVyp# is a link to the log file.

 

It is very strange... the PI shows offline now, whereas it seemed to be online all night. It is almost like when we "mess with it", ie. interact with it via the App, it becomes unstable........now its back online.

 

4) Do you know if the RPI is expect to have a GUI based setup similar to the windows client?

5) Is this a Version 1 of the RPI version and we can expect many new features down the road, or is this maxing what the RPI can do?

 

Thanks for all your help!

Link to comment
Share on other sites

  • Staff

So, regarding the the offline thingy , it's indeed cyclic but it's length is dynamic and you cannot change it.

 

From what I see in the logs you have some network issues. (I see a lot of unknown host and timeout errors).

 

The native linux agent is not expected to have a GUI a.t.m, but we do plan to add more features to it.

Link to comment
Share on other sites

Hey Calin, just an update. I moved the pi to a different network port and switched patch cables... at this point, the only thing in common is the switch and the router.......which is supporting about 40 IP devices properly..... The PI worked fine for a few minutes, then dropped when I tried to view the ping responses.

 

Please let me know if you have any other thoughts.

 

Thank you

Link to comment
Share on other sites

Another update: It doesn't appear that it is experiencing network connectivity issues.....at least locatlly. I am SSH'd into it and pinging my router and google.com from the pi with 0 issues, yet the cloud is reporting it as offline. I am also pinging the RPI from a local PC with no issues..........so it appears the issue is between the pi and the cloud....maybe that helps shed some light.

 

Also, will the RPI version of mobilePCmonitor work on any arm based devices running Linux (ie. a Qnap NAS)?

Link to comment
Share on other sites

  • Staff

Hi,

 

PCmonitor work on ARMv6. QNAP running on ARMv5 processor.

To identify your issues:

Try to stop pcmonitor: /etc/init.d/pcmonitor stop. Double check that the pcmonitord process not running in memory anymore: ps auxw psmonitord.

Then start pcmonitor: /etc/init/d/pcmonitor start and watch the logs. When you will see something like:

 

Error while registering online:SOAP 1.1 fault: SOAP-ENV:Client[no subcode]#012"Connection timed out"#012Detail: connect failed in tcp_connect()

 

Go to raspberry pi console and type: openssl s_client -connect wsn.monilepcmonitor.com:443

Please let us know the output of this command.

 

Mark

Link to comment
Share on other sites

Here is my config

 

http://pastebin.com/TQ3YewCE

 

Here is the logs

 

http://pastebin.com/VKbBpXKE

 

I am not 100% sure when I changed Cables/Ports on the switch, but if I had to guess, it was right around the time I posted my results to the forums above. "Posted 23 January 2014 - 05:53 PM"

 

However it appears that the forum and my Pi are on different timezones.. my pi currently says "Sat Jan 25 18:01:06 UTC 2014" so perhaps that can be used to cross reference its time vs the forums time.

 

Thanks for helping with this guys!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...