Monitoring Services running | ThingSpeak Projects | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Monitoring Services running
No permission to create posts
March 28, 2015
11:57 pm
Avatar
betomax
New Member
Members
Forum Posts: 2
Member Since:
March 28, 2015
sp_UserOfflineSmall Offline

Hello all

i would like to know if there is some way to monitoring pid existing files [inside linux systems] in order to see over my channel the service status

thanks

March 30, 2015
8:58 am
Avatar
lee

Admin
Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi,

I'm not sure exactly what you're trying to do, but you may be able to modify this script ( http://community.thingspeak.com/2014/05/official-tutorial-monitoring-linux-server-statistics/ ) to do what you need.

lee

April 2, 2015
10:01 pm
Avatar
betomax
New Member
Members
Forum Posts: 2
Member Since:
March 28, 2015
sp_UserOfflineSmall Offline

Thanks, that is the idea, adding some logic to the script, can i got the service status and reflected in my channels

the script check for a specific service running or not and update a $string

if test -e 'my_service.pid';
then
my_service=1
echo $my_service
else
my_service=0
echo $my_server
fi

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

josephrj11, dennis55, jillhp4, tabathawg69, MarinaMa, Susandom

Administrators: Hans: 387, lee: 457