Jump to content

Monitoring Services / Processes Ubuntu 12.04


AMillar
 Share

Recommended Posts

Good Afternoon,

We have been using your pulse way product on windows machines for a few years now and are very impressed with it, as it’s been a life saver many of times.

This week I have tried implementing the monitoring agent on one of our Ubuntu 12.04 LTS boxes which are running a big data platform powered by HPCC Systems.

I have pretty much configured it so it will tell me if drive space is low, CPU usage is high, free memory is low, whether the machine is off or on etc.,

but I am having problems getting it to tell me of these services HPCC components are running :

mydafilesrv    

mydali         

mydfuserver    

myeclagent     

myeclccserver  

myeclscheduler 

myesp          

myroxie        

mysasha        

mythor         

I have been trying to establish initially if these are actually services rather than processes, and have found some commands online to help :

List System D Services :

ls /lib/systemd/system/*.service /etc/systemd/system/*.service

List System V Init Services :

service --status-all

# for init scripts:

ls /etc/init.d/

# for runlevel symlinks:

ls /etc/rc*.d/

UP Start

initctl list

initctl list | awk '{ print $1 }' | xargs -n1 initctl show-config

 

however the list above does not seem to show up, so I have been doing some trial and error, using each combination in a bid to see the services running on my iPhone, as they currently show as stopped, and cannot be started within the app even though they are running :

 Here are some things I have tried :

<Service Name="myesp" DisplayName="myesp" IsDaemon="true" DaemonType="UPSTART" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />

<Service Name="myroxie" DisplayName="myroxie" IsDaemon="true" DaemonType="NONE" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />

<Service Name="mysasha" DisplayName="mysasha" IsDaemon="true" DaemonType="SYSVINIT" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />

<Service Name="mythor" DisplayName="mythor" IsDaemon="true" DaemonType="SYSTEMD" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />

 

I have done the same with processes e.g.

 

<Service Name="mythor" DisplayName="mythor" IsDaemon="false" DaemonType="NONE" Path="" StartParameters="" CanBeStopped="true" Enabled="true" />

The only catch here is I am not passing any start-up parameters like your example showed for NTP, are parameters required do you know?

  <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" />

I was wondering if you had any advice or pointers that may help, as my Ubuntu / Linux skills are limited.

If I get this all working then I will be increasing out license count by at least 50 servers.

Thanks in advance

Antony

Link to comment
Share on other sites

  • Staff

Hi Antony,

Unfortunately this configuration is not supported (yet) by Pulseway linux agent. HPCC is using hpcc_init service to start/stop/restart all "my*" custom services.

However, we will consider this feature in a future release.

Best regards,

Mark

 

 

 

 

 

Link to comment
Share on other sites

Hi Mark,

Thanks for getting back to me, that's great.

I have managed to get the HPCC_INIT service monitored for now, and I can run the bash start-hpcc.sh start / stop /status in terminal via the app which is great for now.

Do keep me posted on any future releases etc,

Best Regards

Antony

 

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
 Share

×
×
  • Create New...