BrianAz Posted November 23, 2013 Posted November 23, 2013 I am testing PC Monitor out on my home network. Everything is going well, except I cannot seem to get stats for eth0 on my Linux machines. All other data (CPU, Disk, etc) is showing just fine for the two Ubuntu 12.04 systems, only network data is absent. I followed the install guide from this forum and edited the config file appropriately (I think). What am I doing wrong? Can anyone confirm they get network data on Ubuntu 12.04? My config and ifconfig output are below. Thanks, Brian My config.xml: <config xmlns="http://www.pulseway.com/linuxconfig"> <!--Account Information--> <!--Username: Your Mobile PC Monitor username--> <!--Password: Your Mobile PC Monitor password--> <!--UseCustomServer: Enable this option only if you have a dedicated Enterprise Server assigned to your account--> <!--CustomServerAddress: If you have used UseCustomServer="true" you must specify the server address of the Enterprise Server--> <Account Username="MyUserNameHere" Password="MyPasswordHere" UseCustomServer="false" CustomServerAddress=""/> <!--Computer Information--> <!--Name: the name you want this computer to be listed as (Default: Linux computer name)--> <!--Group: the name of the group you want this computer to be listed in (Default: "Default")--> <ComputerInformation Name="DownloadDesktop" Group="Ubuntu"/> <!--Allowed Commands--> <!--What commands are allowed on this computer--> <!--Possible nodes are Restart ,ShutDown, PowerOff, Suspend, Hibernate--> <!--For each node the following argument must be present: Allowed (Values: true or false)--> <AllowedCommands> <Restart Allowed="true"/> <ShutDown Allowed="true"/> <PowerOff Allowed="true"/> <Suspend Allowed="true"/> <Hibernate Allowed="true"/> </AllowedCommands> <!--Notifications--> <Notifications> <!--Send a notification when the computer is offline--> <!--Enabled: true or false--> <WhenOffline Enabled="false"/> <!--Send a notification when the computer comes online--> <!--Enabled: true or false--> <OnOnline Enabled="false"/> <!--Send a notification when the computer shuts down--> <!--Enabled: true or false--> <OnShutdown Enabled="false"/> <!--Send a notification when the computer's available memory is bellow a certain percentage--> <!--Percentage: the percentage (between 10 and 90)--> <!--Enabled: true or false--> <MemoryLow Percentage="10" Enabled="false"/> <!--Send a notification when the computer's cpu usage is greater than a percentage for n minutes--> <!--Percentage: the percentage (between 10 and 90)--> <!--Minutes: n -the number of minutes (between 1 and 120)--> <!--Enabled: true or false--> <HighCpuUsage Percentage="90" Minutes="1" Enabled="false"/> <!--Send a notification when the computer's cpu usage is less than a percentage for n minutes--> <!--Percentage: the percentage (between 10 and 90)--> <!--Minutes: n -the number of minutes (between 1 and 120)--> <!--Enabled: true or false--> <LowCpuUsage Percentage="10" Minutes="1" Enabled="false"/> <!--Send a notification when a port is closed for n minutes--> <!--Minutes: n -the number of minutes (between 1 and 120)--> <!--Enabled: true or false--> <PortClosed Minutes="1" Enabled="false"/> <!--Send a notification when the space is low on a hdd. You can add multiple hdds by adding multiple <Hdd .../> nodes--> <!--Percentage: the percentage (between 10 and 90)--> <!--Path: the mount path--> <!--Enabled: true or false--> <LowHDDSpace Enabled="true"> <Hdd Percentage="20" Path="/" Enabled="true"/> </LowHDDSpace> <!--Send a notification when the public IP has changed--> <!--Enabled: true or false--> <IpChange Enabled="true"/> <!--Send a notification when a user logs in--> <!--Enabled: true or false--> <UserLogsIn Enabled="false"/> <!--Send a notification when a user logs out--> <!--Enabled: true or false--> <UserLogsOut Enabled="false"/> <!--Send a notification when a SSL Certificate is about to expire or has expired--> <!--Enabled: true or false--> <!--Days: how many days before the expiration date should the notification be sent--> <SSLCertificateExpiration Days="2" Enabled="false"/> <!--Send a notification when a web site is not available--> <!--Enabled: true or false--> <!--Minutes: for how many minutes should the web site be not available before the notification is sent--> <WebSiteNotAvailable Minutes="1" Enabled="false"/> <!--Ping Responses - allows the monitoring of network speed to various addresses--> <!--You can add multiple PingResponse nodes--> <!--Enabled: true or false. You can disable all ping response notifications notifications--> <PingResponses Enabled="false"> <!--Address: the ip or hostname you want pinged--> <!--Position: the order in which these rules are evaluated--> <!--Miliseconds: the value that defines a slow ping response--> <!--Minutes: for how many minutes should the condition stay activated before a notification is sent--> <!--PriorityOnSlowResponse: the priority for the slow response notification--> <!--PriorityOnNoResponse: the priority for the no response notification--> <!--Possible values for PriorityOnSlowResponse and PriorityOnNoResponse: 0=Critical, 1=Elevated, 2=Normal, 3=Low --> <PingResponse PriorityOnSlowResponse="1" PriorityOnNoResponse="0" Minutes="5" Miliseconds="50" Alias="Printer" Address="10.10.10.2" Position="1"/> </PingResponses> <MonitoredServiceStopped Minutes="1" Enabled="false"/> </Notifications> <!--Service Monitoring Config--> <!--Add one or more MonitoredService --> <Services> <!--Monitors Upstartd, Systemd or System V services--> <!--For System V init there is a requirement for the script. It has to support start, stop and status arguments and when requesting status it has to report "running"--> <!--Name: the name of the service--> <!--Instance: for Upstartd, if the service has multiple instances here you can specify it--> <!--ExcludeFromNotification: if you enable service stopped notifications you can choose to exclude this service (if it doesn't start at boot for example) (true or false)--> <MonitoredService ExcludeFromNotification="false" Name="cups" Instance=""/> </Services> <!--Web related config--> <Web> <!--SSL Certificates monitoring--> <!--You can add one or more SSL Certificates by adding Certificate nodes--> <Certificates> <!--Monitor SSL Certificate--> <!--ServerName: the server address or IP--> <!--Port: the server port (default is 443)--> <!-- <Certificate Port="443" ServerName="example.com"/> --> </Certificates> <!--Web Sites monitoring--> <!--You can add one or more web sites by adding WebSite nodes--> <WebSites> <!--Web Site--> <!--Type: Method used to test the web site. One of HEAD or GET--> <!--Url: Url of the web site--> <!--Name: A name for the type/url combination--> <!-- <WebSite Type="HEAD" Url="http://www.example.com" Name="Example HEAD"/>--> <!--<WebSite Type="GET" Url="http://www.example.com" Name="Example GET"/>--> </WebSites> </Web> <!--Network--> <!--Network related configs--> <Network> <!--Ping--> <!--Monitor ping response time to a specific server--> <!--Server: the IP or hostname of the server--> <!--Enabled: true or false--> <Ping Server="" Enabled="false"/> <!--Monitored Ports--> <!--You can monitor if a port is closed or opened--> <!--You can monitor multiple ports by adding multiple <Port.../> tags--> <MonitoredPorts> <!--Type - port's type (TCP or UDP)--> <!--Number- port's number--> <!--Name- port's name --> <!--Name- port's address (only applicable if port type is TCP)--> <!--<Port Type="TCP" Number="80" Name="80" Address="www.google.com"/>--> </MonitoredPorts> <!--Network Interfaces--> <!--The network interfaces you want to monitor--> <!--You can specify multiple interfaces , by adding multiple <Interface../> tags--> <NetworkInterfaces> <!--Name - the name of the interface--> <Interface Name="eth0"/> </NetworkInterfaces> <!--Wake on WAN settings--> <!--Port- the port on which the packet will be send--> <!--Enabled: true or false--> <WoWAN Port="9" Enabled="false"/> </Network> <!--Plugins to be included. You can add multiple plugins by adding multiple <plugin .../> nodes--> <!--Class: the full class name--> <!--Description: a description of the plugin--> <!--Location: the path to the jar containing the plugin--> <!--Name: the name of the plugin--> <Plugins> <!--<plugin Class="com.mobilepcmonitor.plugins.ComputerDetails" Description="Shows additional computer details and commands" Location="/opt/pcmonitor/plugin/plugins.jar" Name="Computer Details"/>--> </Plugins> <!--Specify if this computer is in maintenance mode or not--> <!--Possible values: true or false--> <MaintenanceMode>false</MaintenanceMode> <!--Other settings--> <Settings> <!--Configuration for syslog server notification and reporting.--> <SyslogServer> <!--Send a copy of every notification to a syslog server (true or false)--> <Enabled>true</Enabled> <!--Hostname or ip of the syslog server--> <Server>127.0.0.1</Server> <!--Port of the syslog server--> <Port>514</Port> <!--Send a status report to the syslog server--> <SendStatusReport>true</SendStatusReport> <!--Interval in minutes at which to send the status report--> <StatusReportInterval>5</StatusReportInterval> <!--Should the report include the processor usage? (true or false)--> <IncludeProcessorUsage>true</IncludeProcessorUsage> <!--Should the report include the memory usage? (true or false)--> <IncludeMemoryUsage>true</IncludeMemoryUsage> <!--Should the report include the disk space usage? (true or false)--> <IncludeDiskSpaceUsage>true</IncludeDiskSpaceUsage> <!--Should the report include the logged in user count? (true or false)--> <IncludeLoggedInUsersCount>true</IncludeLoggedInUsersCount> <!--Should the report include the network usage? (true or false)--> <IncludeNetworkSpeed>true</IncludeNetworkSpeed> <!--Should the report include the ping round trip times? (true or false)--> <IncludePingRoundtripTime>true</IncludePingRoundtripTime> <!--Should the report include the ping response times? (true or false)--> <IncludePingResponses>true</IncludePingResponses> </SyslogServer> </Settings> <DisableAutoUpdate>false</DisableAutoUpdate> </config> ifconfig: user@System:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:0c:29:b9:70:51 inet addr:192.168.30.95 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:feb9:7051/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:366100833 errors:0 dropped:0 overruns:0 frame:0 TX packets:496444143 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:468366474507 (468.3 GB) TX bytes:505095338635 (505.0 GB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:105604 errors:0 dropped:0 overruns:0 frame:0 TX packets:105604 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10127275 (10.1 MB) TX bytes:10127275 (10.1 MB)
Calin Posted November 25, 2013 Posted November 25, 2013 This features will be added in the next releases for the native agent. You can use the old (java based) one to monitor network interfaces for now.
BrianAz Posted November 25, 2013 Author Posted November 25, 2013 This features will be added in the next releases for the native agent. You can use the old (java based) one to monitor network interfaces for now. Thanks for the reply Calin. Is there an anticipated release date for the native agent?
gpbackups Posted January 5, 2015 Posted January 5, 2015 I provide a backup service to clients and am using Pulseway to monitor a linux Server on a Client Site. Attempting to monitor Internet latency to specific sites does not seem to work. See screen capture of confix.xml file In the config.xml file I used the following option <PingResponse> <PingResponse Address="www.dyn.com" Milliseconds="1" Minutes="15" PriorityOnSlowResponse="1" PriorityOnNoResponse="1" Alias="Printer" Enabled="false"/> <PingResponse Address="www.opendns.com" Milliseconds="1" Minutes="10" PriorityOnSlowResponse="0" PriorityOnNoResponse="0" Alias="Router" Enabled="false"/> I set the timeout to 1 millisecond to try to force the notification In a Windows Machine I used the following option Notifications > Ping with following info Computer/Device Condition ww.dyn.com > 100ms for 1 minute www.opendns.org > 100ms for 1 minute The Windows Config works but the Linux one not. Am i using the correct option in the Linux Config.xml file. By the way an awesome product which I have been using for the last year, having purchased the required licenses from South Africa Reseller
Staff Chris Posted January 10, 2015 Staff Posted January 10, 2015 Hi, It seems that you forgot to set the Enabled switch to true. Try with the following lines: <PingResponse Address="www.dyn.com" Milliseconds="1" Minutes="15" PriorityOnSlowResponse="1" PriorityOnNoResponse="1" Alias="Printer" Enabled="true"/> <PingResponse Address="www.opendns.com" Milliseconds="1" Minutes="10" PriorityOnSlowResponse="0" PriorityOnNoResponse="0" Alias="Router" Enabled="true"/> Regards, Chris Pulseway Support
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