Jump to content
gpedro

Agent Daemon won't start on Linux Ubuntu 18.04 64-bit

Recommended Posts

Hi there,

I have been using Pulseway for some months now and everything was good until yesterday when I rebooted the machine the agent is running on.

This machine went throught Linux updates some days before so I think this is related.

What I experience is that when the service starts, reads the configuration, but after a second the daemon exits with code 11 as you can see below.

 pulseway.service - Remotely Monitor and Control IT Systems
   Loaded: loaded (/etc/systemd/system/pulseway.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Sat 2019-08-03 23:42:38 WEST; 1s ago
  Process: 23493 ExecStart=/usr/sbin/pulsewayd --no-daemonize (code=killed, signal=SEGV)
 Main PID: 23493 (code=killed, signal=SEGV)

ago 03 23:42:35 BLUEMONSTER systemd[1]: Started Remotely Monitor and Control IT Systems.
ago 03 23:42:35 BLUEMONSTER pulseway[23493]: Starting Pulseway Daemon version 6.1 (2019022801)
ago 03 23:42:35 BLUEMONSTER pulseway[23493]: Configuration read successfully!
ago 03 23:42:37 BLUEMONSTER pulseway[23493]: Got exception signal: 11
ago 03 23:42:38 BLUEMONSTER systemd[1]: pulseway.service: Main process exited, code=killed, status=11/SEGV
ago 03 23:42:38 BLUEMONSTER systemd[1]: pulseway.service: Failed with result 'signal'.

I actually think it starts the daemon, as I get the notification in the app telling me that the machine went offline, which means the status had to change to online somewhere along the way, right?

Does anyone have an idea of what may be wrong with my setup?

Below is a copy of my config.xml

<?xml version="1.0" encoding="utf-8"?>
<config xmlns="http://www.pulseway.com/linuxconfig">
	<!--Pulseway Linux Monitoring Agent - pulseway.com -->
	<!--Account Information
    - Username: your Pulseway username
    - Password: your Pulseway password (the plain password will be automatically encrypted the next time the Pulseway service starts)
    - UseCustomServer: enable this option only if you have a dedicated Enterprise Server assigned to your account
    - CustomServerAddress: your Enterprise Server address
    - Token: Pulseway Agent Group token-->
	<Account Username="" Password="" UseCustomServer="false" CustomServerAddress="" Token="*************************************"/>
	<!--Computer Information
    - Name: computer name used for display and listing (by default the Linux computer name will be used)
    - Group: commputer group name-->
	<ComputerInformation Name="BLUEMONSTER" Group="BLUEMONSTER"/>
	<!--System Commands-->
	<AllowedCommands>
		<Restart Allowed="true"/>
		<ShutDown Allowed="true"/>
		<PowerOff Allowed="true"/>
		<Suspend Allowed="false"/>
		<Hibernate Allowed="false"/>
	</AllowedCommands>
	<!--Monitored Services-->
	<MonitoredServices>
		<!--Service
      - Name: service name
      - DisplayName: friendly name used for display
      - IsDaemon: 'true' if the monitored service is a daemon and 'false' if the monitored service is a process
      - DaemonType: system management daemon type: NONE, SYSVINIT, UPSTART or SYSTEMD
      - Path: path of the monitored service (this is used when the monitored service is a process)
      - StartParameters: parameters used to start the monitored service (this is used when the monitored service is a process)
      - CanBeStopped: 'true' or 'false'-->
		<Service Name="cups" DisplayName="CUPS Service" IsDaemon="true" DaemonType="SYSVINIT" Path="" StartParameters="" CanBeStopped="true" Enabled="false"/>
		<Service Name="ntpd" DisplayName="NTPD Process" IsDaemon="false" DaemonType="NONE" Path="/usr/sbin/ntpd" StartParameters="-p /var/run/ntp/ntpd.pid -g -u ntp:ntp -i /var/lib/ntp -c /etc/ntp.conf" CanBeStopped="true" Enabled="false"/>
		<Service Name="ssh" DisplayName="SSH Daemon" IsDaemon="true" DaemonType="UPSTART" Path="" StartParameters="" CanBeStopped="true" Enabled="false"/>
		<Service Name="SuSEfirewall2.service" DisplayName="SuSE Firewall Service" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="false"/>
	</MonitoredServices>
	<!--SSL Certificates and Web Sites-->
	<Web>
		<!--SSL Certificates-->
		<Certificates>
			<!--Certificate
        - Server: server name or IP address
        - Port: server port-->
			<Certificate Server="netmaster.pt" Port="443" Enabled="true"/>
		</Certificates>
		<!--Web Sites-->
		<WebSites>
			<!--WebSite
        - Url: web site Url
        - Type: method used for testing the web site - HEAD or GET
        - Name: name used for display-->
			<WebSite Url="https://netmaster.pt" Type="GET" Name="NetMaster Site" Enabled="true"/>
		</WebSites>
	</Web>
	<!--Network-->
	<Network>
		<!--Ping
      - Server: server IP address or hostname-->
		<Ping Server="8.8.8.8" Enabled="false"/>
		<Ping Server="8.8.4.4" Enabled="false"/>
		<Ping Server="9.9.9.9" Enabled="false"/>
		<Ping Server="127.0.0.53" Enabled="false"/>
		<!--Network Interfaces-->
		<NetworkInterfaces>
			<!--Interface
        - Name: interface name-->
			<Interface Name="enp3s0" Enabled="false"/>
			<Interface Name="docker0" Enabled="false"/>
		</NetworkInterfaces>
		<!--Wake on WAN
      - Port: port number on which the wake packet will be sent-->
		<WoWAN Port="9" Enabled="false"/>
	</Network>
	<!--File Browsing-->
	<FileBrowsing Enabled="true"/>
	<!--Notifications (supported notification priorities: 0-Critical, 1-Elevated, 2-Normal, 3-Low)-->
	<Notifications>
		<!--Send a notification when the computer is offline-->
		<WhenOffline 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"/>
		<!--Send a notification when a user logs in-->
		<UserLogsIn Priority="2" Enabled="true"/>
		<!--Send a notification when a user logs out-->
		<UserLogsOut Priority="3" Enabled="true"/>
		<!--Send a notification when the available memory is below a certain percentage (between 10 and 90) for a number of minutes (between 1 and 120)-->
		<MemoryLow Priority="1" Percentage="10" Minutes="2" 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="80" Minutes="2" Enabled="true"/>
		<!--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="5" Minutes="5" Enabled="true"/>
		<!--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="false"/>
		<!--HDD Free Space - send a notification when a HDD free space is low
      - Percentage: the free space percentage (between 10 and 90)
      - Path: the mount path-->
		<LowHDDSpace>
			<Hdd Percentage="25" Path="/" Priority="0" Enabled="true"/>
			<Hdd Percentage="20" Path="/home" Priority="1" Enabled="false"/>
		</LowHDDSpace>
		<!--Send a notification when the public IP address has changed-->
		<IpChange Enabled="true"/>
		<!--Ping Responses-->
		<PingResponses>
			<!--PingResponse
        - Address: IP address or hostname	
        - Milliseconds: a response value that defines a slow ping response
        - Minutes: for how many minutes should the condition stay activated before a notification is sent
        - PriorityOnSlowResponse: notification priority for the slow response notification
        - PriorityOnNoResponse: notification priority for the no response notification
        - Alias: display name -->
			<PingResponse Address="192.168.1.1" Milliseconds="50" Minutes="15" PriorityOnSlowResponse="1" PriorityOnNoResponse="1" Alias="Router" Enabled="false"/>
			<PingResponse Address="192.168.1.2" Milliseconds="50" Minutes="10" PriorityOnSlowResponse="0" PriorityOnNoResponse="0" Alias="Repeter" Enabled="false"/>
		</PingResponses>
		<!--Send a notification when a SSL certificate is about to expire or has expired
      - Days: Number of days before the certification expiry date-->
		<SSLCertificateExpiration Days="7" Priority="0" Enabled="false"/>
		<!--Send a notification when a web site is not available
      - Minutes: Number of minutes the web site has not been available-->
		<WebSiteNotAvailable Minutes="5" Priority="0" Enabled="false"/>
	</Notifications>
	<!--Send a copy of every notification to a syslog server 
  	- Server: Hostname or IP of the syslog server
  	- Port: Port of the syslog server-->
	<SyslogServer Server="127.0.0.1" Port="514" Enabled="false">
		<!--Send a status report to the syslog server
  	  - ReportInterval: Status report send interval (in minutes)-->
		<SendStatusReport ReportInterval="5" Enabled="false">
			<!--Should the report include the processor usage-->
			<IncludeProcessorUsage Enabled="false"/>
			<!--Should the report include the memory usage-->
			<IncludeMemoryUsage Enabled="false"/>
			<!--Should the report include the disk space usage-->
			<IncludeDiskSpaceUsage Enabled="false"/>
			<!--Should the report include the logged in user count-->
			<IncludeLoggedInUsersCount Enabled="false"/>
			<!--Should the report include the network usage-->
			<IncludeNetworkSpeed Enabled="false"/>
			<!--Should the report include the ping round trip times-->
			<IncludePingRoundtripTime Enabled="false"/>
			<!--Should the report include the ping response times-->
			<IncludePingResponses Enabled="false"/>
			<!--Use a different Syslog Server for status report
    	      - Server: Hostname or IP of the status report custom server
    	      - Port: Port of the status report custom server-->
			<StatusReportUseCustomServer Server="127.0.0.1" Port="514" Enabled="false"/>
		</SendStatusReport>
	</SyslogServer>
	<!--Maintenance Mode (when the computer is in maintenance mode no notifications will be sent)-->
	<MaintenanceMode Enabled="false"/>
	<!--Set Pulseway to install new updates automatically-->
	<AutoUpdate Enabled="true"/>
</config>

Any help is appreciated,

Thanks

Share this post


Link to post
Share on other sites

@gpedro,

Please send an email to support@pulseway.com and include the information regarding your system, syslog entries related to Pulseway and config.xml file. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...