Linux Job by greenband

AWARDED
Project Budget (USD)
$40 / hr

Project Description:
Customize Nagios to retrieve and chart information obtain using HTTP (REST) to retrieve data. Some data would be charted - other data would be displayed.

Example query is http://10.1.1.164:50105/sys/stats/cpu?force-content-type=text/plain
(prompted for BASIC authentication)

curl -u user:password http://10.1.1.164:50105/database/stats?force-content-type=text/plain

Response:
4%

The discrete values that need to be retrieved are:
cpu (CPU) = 0%
current.time (Current Time) = 2013-Apr-11 15:01:30
hostname (Hostname) = PacketHybridSA10
memory.process (Process Memory) = 15364096
memory.process.max (Max Process Memory) = 8386846720
memory.system (System Memory) = 2776600576
memory.total (Total Memory) = 8386846720
module (Module) = concentrator
revision (Revision) = e47ee71aeb6c
running.since (Running Since) = 2013-Apr-09 03:53:11
service.name (Service Name) = PacketHybridSA10
service.status (Service Status) = UNLICENSED
system.info (System Info) = Linux 2.6.32-220.17.1.el6.x86_64 #1 SMP Wed May 16 00:01:37 BST 2012 x86_64
uptime (Uptime) = 212899,2 days 11 hours 8 minutes 19 seconds
version (Version) = 10.0.5.1

Next set of data (potentially different username/password) is:
Example:
http://10.1.1.164:50105/database/stats/metabytes?force-content-type=text/plain
Response:
615065975286

Complete set of values to be retrieved are:
chain.total (Chain Total) = 0
meta.bytes (Meta Bytes) = 615065975286
meta.first.id (Meta First ID) = 1
meta.last.id (Meta Last ID) = 30637516595
meta.oldest.file.time (Meta Oldest File Time) = 2013-Feb-27 14:16:11
meta.rate (Meta Rate (current)) = 55624
meta.rate.max (Meta Rate (maximum)) = 147564
meta.total (Meta Total) = 30637516515
packet.bytes (Packet Bytes) = 18978368808856
packet.first.id (Packet First ID) = 102662970819
packet.last.id (Packet Last ID) = 127484942189
packet.oldest.file.time (Packet Oldest File Time) = 2013-Apr-03 15:52:42
packet.rate (Packet Rate (current)) = 14654
packet.rate.max (Packet Rate (maximum)) = 230087
packet.total (Packet Total) = 24821971172
session.bytes (Session Bytes) = 40528857152
session.first.id (Session First ID) = 1
session.last.id (Session Last ID) = 1192567206
session.oldest.file.time (Session Oldest File Time) = 2013-Feb-27 14:16:11
session.rate (Session Rate (current)) = 2351
session.rate.max (Session Rate (maximum)) = 6330
session.total (Session Total) = 1192567203
status (Status) = opened

I'm online Skype at txrobdavis

Hours of work: 5 Project Duration: < 1 week Skills required:
Linux
Project offered by:
Verified