Pages: [1]   Go Down
Author Topic: module network usage  (Read 455 times)
0 Members and 2 Guests are viewing this topic.
eXXon
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« on: September 28, 2011, 12:35:45 PM »

Hello, i'm just installed Pandora FMS and a few agents on linux (Ubuntu) and Windows (server 2008 r2)
and i need to check on both agent's  win and linux network usage up and down kb/s
Can anyone help me with it?
Logged

eXXon
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« Reply #1 on: September 29, 2011, 03:37:09 PM »

also how i can set alert to a group of agents if any of their modules get warning or critical state
Logged

daniels
Smart member
*****

Karma: 19
Offline Offline

Posts: 205



View Profile
« Reply #2 on: October 27, 2011, 03:39:31 PM »

Hi exxon.

  I use those modules in Linux Servers to see how much traffic is passing through my network cards (in and out). Those will give you the bytes/s:

# Networking
module_begin
module_name nettraf_eth0_in
module_type generic_data_inc
module_exec /sbin/ifconfig eth0 |grep "bytes:" |awk {'print $2'} |tr -d "bytes:"
module_description bps IN (post process)
module_end

module_begin
module_name nettraf_eth0_out
module_type generic_data_inc
module_exec /sbin/ifconfig eth0 |grep "bytes:" |awk {'print $6'} |tr -d "bytes:"
module_description bps OUT (post process)
module_end

For the alert, first you have to figure out what is going to be the threshold to trigger your alert.

Regards.
Logged

eXXon
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« Reply #3 on: November 04, 2011, 05:00:06 PM »

thanks, daniels i allready find this in pandora exchange.
But for now i dont know how to assign alert to the group of agent.
exemple:
when module cpu_user in any agent of group "Servers" goes bigger than 40% alert will thrown.
 
Logged

Javi Lanz
Full Member
***

Karma: 1
Offline Offline

Posts: 38



View Profile
« Reply #4 on: November 22, 2011, 04:03:37 PM »

Hi eXXon,

It is not possible to associate an alert to a group of agent.
The alerts are associated to a module within an agent, not to the agent itself.

Maybe you can use massive operations to add alerts instead doing it one by one.

In 4.0 version there is a new enterprise feature which associates alerts to events, and this is really powerful.

Hope this will be helpful for you.

Regards

Logged

eXXon
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« Reply #5 on: November 22, 2011, 04:22:32 PM »

Hi eXXon,

It is not possible to associate an alert to a group of agent.
The alerts are associated to a module within an agent, not to the agent itself.

Maybe you can use massive operations to add alerts instead doing it one by one.

In 4.0 version there is a new enterprise feature which associates alerts to events, and this is really powerful.

Hope this will be helpful for you.

Regards



Thanks for reply, i allready done with this problem:
 i write php script that's add alerts to new agents/modules based on agent group, and added this script to crontab schedule every hour.
Logged

gbr
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


View Profile
« Reply #6 on: November 25, 2011, 12:55:49 PM »

Hello Exxon,

Can you please share the PHP-script? I think it's what I'm looking for....

Regards,
Logged

eXXon
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« Reply #7 on: November 25, 2011, 11:12:08 PM »

here you go, create MySQL table using sql query, and add index.php to crontab
index2.php - to remove agents that not send info in a time specified in config.inc.php

all configuration you find in config.inc.php, notice that alert template must be without spaces and special chars only, allowed  - [a-z-A-Z-0-9_-], same rule for group and modules names.

$groups is a simple multi-dimensional array containing all config for modules and alerts to it.

if you extend this script, with new features it's will be great if you are share it  with us

* cron.zip (3.68 KB - downloaded 7 times.)
Logged

rian.weaver
Newbie
*

Karma: 0
Offline Offline

Posts: 6


View Profile
« Reply #8 on: December 14, 2011, 09:56:37 PM »

I am new with PandoraFMS, but I'm trying to get it to a point where I can convince my company to use it. 

the server / console is running on linux, but the machines we have to monitor are all windows machines (server2003 or server 2008).

Does anyone have tips on how I can get the same sort of bandwidth monitoring on a windows agent?

Thanks
Logged

eXXon
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« Reply #9 on: December 14, 2011, 10:25:59 PM »

Use WMI queries, it simple like SQL queries more you can find here
http://www.openideas.info/wiki/index.php?title=Pandora_3.0:Documentation_en:Configuration#module_wmiquery

or use perfcounter
http://www.openideas.info/wiki/index.php?title=Pandora_3.0:Documentation_en:Configuration#module_perfcounter
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST