wchivers Posted December 23, 2015 Posted December 23, 2015 I am using my personal Raspberry Pi B+ to test Pulseway Linux before we try on live Ubuntu 12 servers. I have been able to get everything working except the online/offline/shutdown alerts. Here is a copy of my current config section. I added Priority="0" to WhenOffline hoping I would get a notification, but the icon still only changes to grey on the Android app. There is also no notifications for OnShutdown or when it comes back OnLine. <!--Send a notification when the computer is offline--> <WhenOffLine Priority="0" Enabled="true"/> <!--Send a notification when the computer is online--> <OnOnline Priority="2" Enabled="true"/> <!--Send a notification when the computer is shutting down--> <OnShutdown Priority="0" Enabled="true"/> Thanks, Walt
Staff Chris Posted December 24, 2015 Staff Posted December 24, 2015 Hi Walt, Welcome to the Pulseway community! The offline notification is sent by the server after approximately 10 minutes of agent inactivity and the online notification is sent when the service starts. If you enable the offline notification and you get the offline notification sent to you (so the server acknowledges that the system was indeed offline and it wasn't a minor outage) then the system gets back online you will receive a "system is back online" notification. In regards to the shutdown notification, some operating systems send the shutdown signal to the processes after the network driver is stopped which prevents Pulseway from being able to notify you of this event. Chris
wchivers Posted December 28, 2015 Author Posted December 28, 2015 Just to test, I unplugged the ethernet cable so your Pulseway system would see it as officially offline. Kept it that way for the last 95 hours without any notifications. The app did show as offline though. Looks like an issue with the notification. I am going to play with the notification settings and see if I can get it to work. Might have to try an Ubuntu image next.
Staff Chris Posted December 28, 2015 Staff Posted December 28, 2015 Hi, Did you enable the offline notification and restarted the service to apply the changes? The offline notification is sent by the server after approximately 10-15 minutes of agent inactivity.
wchivers Posted December 30, 2015 Author Posted December 30, 2015 We are getting notifications when I kill NTPD, and notifications when it comes back online. But nothing when it is offline. Seems to be the final stumbling block. I keep adding and deleting the Priority setting for WhenOffLine but that doesn´t seem to change anything. By default, Priority is not present for WhenOffLine. Here is a copy of the notifications again. <Notifications> <!--Send a notification when the computer is offline--> <WhenOffLine Priority="0" Enabled="true"/> <!--Send a notification when the computer is online--> <OnOnline Priority="2" Enabled="true"/> <!--Send a notification when the computer is shutting down--> <OnShutdown Priority="1" Enabled="true"/> <!--Send a notification when a user logs in--> <UserLogsIn Priority="2" Enabled="false"/> <!--Send a notification when a user logs out--> <UserLogsOut Priority="3" Enabled="false"/> <!--Send a notification when the available memory is below a certain percentage (between 10 and 90)--> <MemoryLow Priority="1" Percentage="10" Enabled="true"/> <!--Send a notification when the CPU usage is above a certain percentage (between 10 and 90) for a number of minutes (between 1 and 120)--> <HighCpuUsage Priority="1" Percentage="90" Minutes="5" Enabled="false"/> <!--Send a notification when the CPU usage is below a certain percentage (between 10 and 90) for a number of minutes (between 1 and 120)--> <LowCpuUsage Priority="2" Percentage="10" Minutes="5" Enabled="false"/> <!--Send a notification when a port is closed for a number of minutes (between 1 and 120)--> <PortClosed Priority="1" Minutes="1" Enabled="false"/> <!--Send a notification when a service has stopped for a number of minutes (between 1 and 120)--> <ServiceStopped Priority="1" Minutes="1" Enabled="true"/>
Staff Chris Posted December 30, 2015 Staff Posted December 30, 2015 Hi, Start the Pulseway service, leave it on for a minute and then stop the Pulseway service. Wait 10-15 minutes and you should be getting an offline notification if the system is not in the maintenance mode. Chris
wchivers Posted January 14, 2016 Author Posted January 14, 2016 Our company was "acquired" at the start of the year. This project isn't even on any list of priorities. Looks like we are moving moving too. Thanks for your help Chris.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now