Pandora FMS Community

Modules :Internet/Network connection speed and windows freememory.

yduma · 29 oct 2008, 6:28 · 9 mensajes · 56 visitas

  1. Inicio del debate

    Hi. Can pandora check connection speed to internet and from one server to another? If yes - what I should to do? If you can - can you tell me how you check free memory in Windows (I need it in %, so need make little modification). Also I found srvinfo.exe in Windows Resource Kits (there are a lot of interesting staff).Maybe this will be interesting to you. Regard's

    1. No, it cannot by default. Maybe you can do it with a plugin and gathering information from another tool such as traceroute or something. 2) You can post process the information of the module perhaps. srvinfo.exe? Can it be executed from a MS-DOS command line?
  2. about srvinfo - I use it like #Free space on disk c: module_begin module_name used disk C: module_type generic_data module_exec c:srvinfo.exe | find "C$" | gawk "{ print $5/$3*100 }" module_description Disk C usage in %. module_end about memory you use module_freememory. can I using it divide for some value (all_memory) to have it in % ?

  3. I'll take a look at srvinfo as soon as I have some time. Well, you have to multiply it (in the post-process field in the module management) by X/100 where X means the value you consider the 100%

  4. sorry, but I don't understand where is post-process field. I use pandoea v. 1.3.1 on server where I get all data from agent's. I can put srvinfo as atachement, if you need. Windows Resource Kits is like add on to windows 2003 ( maybe 2008 too, but I don't know).

  5. Go to an agent, click on: Manage, then go to modules, after that, edit the module, and you'll see a "post process" square

  6. but this only in pandora v2 I guess?

  7. Hi I found how to check internet speed. it can be done from script. ( I think you can inplement it in pandora, if you think it is needed) #!/bin/sh cd /home/pandora/ wget -o wgetreport (Link not available anymore) var=`cat wgetreport | grep saved | awk '{ print $2 }'` #var=$var/128 var=${var:1} var1=`expr "$var" : '([0-9]*)'` let var1=var1*8 echo $var1 rm /home/pandora/ConsoleKit-0.2.1-57.src.rpm #rm /home/pandora/wgetreport Result in kbps, thanks to post-process - it can be in mbps Regard's. P.S. Also if you have different internet connection on same server you can use --bind-address in wget options.

  8. That's great, I'll add it to the FAQ Thank you very much!

Entra en tu cuenta para publicar.