main

AgentMobileWindows

Agent for Windows Phone 7

February 26, 2013 — by steve0

The architecture of Pandora FMS allows to create a light software pieces called “Agents” to gather and send information of the host to the server.

The latest agent created is for Windows Phone 7. Thanks to Patricio Martínez, member of Frameworks (Ecuador), one of our certified partners. Great Work!.

With a simple configuration, the agent will report the data to the choosed server:


This agent retrieve the following data from a Windows Phone 7 device:

  • GPS coordinates
  • OS Version
  • Current Application Memory Usage
  • Peak Memory Usage
  • Memory Usage Limit per Application
  • Device Manufacturer
  • Device Name
  • Device Firmware Version
  • Device Hardware Version
  • Device Total Memory
  • Is Keyboard Present in Device
  • Power Source
  • Unique Id of the device
  • Operating System Platform
  • Operating System Version

Most of this data will be reported in modules, other data as the OS Version and the GPS coordinates will be stored in the Agent configuration.


The GPS coordinates are really useful to track the device in a Pandora FMS console’s map.


 

You can download this Agent and a complete documentation from our Modules library.

Development

New Pandora FMS Drone Agent

April 13, 2011 — by steve0

Pandora FMS Agent features have been improved with the new Drone Agent. The drone agent adds two new functionalities: Proxy Mode and Broker Mode.

With Proxy Mode you can enable a Tentacle Server Proxy to allow communications between agents and Pandora FMS Server through the Tentacle Server Proxy . With this feature Pandora FMS Software Agent acts like a proxy using Tentacle Protocol.

Broker Mode allow you to send data collected with one agent in different XMLs in the same way that different agents send their data. This feature is very useful to monitor for example software instances as different agents or to send data from differents agents collected by Drone Agetn remotely. This feature will be available with Pandora FMS 4.0.

You can see more about the new Drone Agent at: Pandora FMS Drone Agent Documentation.

Bye and enjoy the new Drone Agent :-)

Pandora FMS

Pandora unix agent running on ipod touch :)

February 3, 2010 — by steve1

A bored developer is something very dangerous… you never know what it will happen…

This weekend I was quite bored and somehow I thought it was interesting to try to run Pandora Unix Agent on my iPod Touch. It’s a jailbroken 1st generation device, so I connected to the Ipod with SSH, and with apt installed the perl binaries from http://coredev.nl/ (there are instructions there to use this

Ipod Touch Agent on Pandora FMS console
Ipod Touch Agent on Pandora FMS console (click to enlarge)

repository).

Once I’ve perl working on /usr/local/bin/perl It was just a matter of updating the first line of the scripts to point to the current location of perl to make it work… wooow the perl agent is soooo easy to port :)

The of course most of the modules didn’t work as is… so I made some testing modules (check at the end of the post) to show how it was working.

And now In my testing server there is an ipod-touch agent :)

I start / stop it manually, I actually don’t want to have it running as a daemon as most of the time i don’t have access to the console to see the actual data.

In case anyone is interested on monitoring Darwin, here are the modules I’ve used:

module_begin
module_name proctotal
module_type generic_data
module_exec ps -A | wc -l
module_description Total number of processes
module_end

module_begin
module_name sshDaemon
module_type generic_proc
module_exec ps -Af | grep sshd | grep -v "grep" | wc -l
module_description SSH Server daemon status
module_end

module_begin
module_name loadavg1m
module_type generic_data
module_exec sysctl vm.loadavg | grep -o '[0-9]\+\.[0-9]\+*' | head -1
module_description Average process in CPU (Last minute)
module_end

module_begin
module_name freemem
module_type generic_data
module_exec top -l 1 | grep PhysMem | grep -o '[0-9]\+\.\?[0-9]\+*' | tail -1
module_description Free memory
module_end

module_begin
module_name userCPU
module_type generic_data
module_exec top -l 1 | grep "CPU usage" | grep -o '[0-9]\+\.\?[0-9]\+*' |tail -3 | head -1
module_description User CPU Usage
module_end

module_begin
module_name sysCPU
module_type generic_data
module_exec top -l 1 | grep "CPU usage" | grep -o '[0-9]\+\.\?[0-9]\+*' |tail -2 | head -1
module_description Sys CPU Usage
module_end

module_begin
module_name TCPPacketsSent
module_type generic_data_inc
module_exec netstat -s -p tcp | grep "packets sent" | grep -o '[0-9]\+'
module_description TCP Packets Sent
module_end

module_begin
module_name TCPPacketsReceived
module_type generic_data_inc
module_exec netstat -s -p tcp | grep "packets received" | grep -o '[0-9]\+'
module_description TCP Packets Received
module_end