Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Setting up Pings Monitoring w/ Min, Max, and Avg

  • Setting up Pings Monitoring w/ Min, Max, and Avg

    Posted by jtorres on October 27, 2007 at 16:42


    Hi

    I’m new to Pandora FMS and OpenSource in general. I have set up a Linux Ubuntu v7.04 server and I have followed all the steps in the Pandora Server and Console installation documentation. I was successfull and I can now access the pandora web console from any PC in my newtwork. However, setting up the agents, modules, etc it’s a bit confusing to me. I want to set up PandoraFMS to ping various hosts in my network and report the Min, Max, and Avg along with a graph showning the Average response time per hour for a 24 hour period. Also, would like to set up Bandwith utilization graphs as well. Can anybody point me in the right direction?

    Thank you.

    jtorres replied 16 years, 5 months ago 5 Members · 32 Replies
  • 32 Replies
  • villa

    Member
    October 28, 2007 at 19:38
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    Pandora can monitor anything with in local with a agent in the device to monitor or remotely with the network server.

    You can monitor a ping to device or bandwith utilization.

    First you must add a new agent in Administration>Manage Agent.

    You can access to the new agent in Operation> view agent> Agente detail For example.

    You can access to configure the agent in Administration> Manage config. Click in agent. In Modules Tab you can configure the ping and bandwith utilization wit snmp query.

    Regards in advance.

  • Robb11

    Member
    October 29, 2007 at 11:41
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi.

    It is difficult from a forum to setup your console.
    The best suggestion I can give you is to read the basic setup from the documentation and to try some tests. When you will find problems ask here and it will be answered. 😉
    By the way, take care of what villa has said. Every device can be reached via SNMP (both servers and networking). Theorically agents are not indispensable. By the way, giving to the server the possibility to monitor himself and communicate with Pandora is a way to avoid Pandora to calculate a big amount of data. Networking devices can be monitored only by the “Network server agent” implemented in Pandora.

    See you soon in this forum!

  • jtorres

    Member
    October 29, 2007 at 19:41
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thank you both for your quick reply..Here’s what I have done:

    – Administration/Manage Agents/Create Agent
    – I select the Module I want the new agent to use (Host Latency w/ interval of 15)

    When I go to view the agent, I get no data. Browsing through the FMS console, I noticed that there isn’t any Pandora FMS servers listed under Operation/Pandora Servers. Perhaps that may be the issue. The console doesn’t know which server to use in order to set the monitor?? If that’s the case, then how do I specify a server?

    Thanks much in advance.

  • Robb11

    Member
    October 29, 2007 at 20:04
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Have you started the Pandora network server? You can understand it from the Pandora Servers item in the Operation menu.

  • jtorres

    Member
    October 29, 2007 at 20:17
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    When I go to the Pandora console and I browse to Operation/Pandora Servers I get the following message: “There are no servers configured into the database”

  • Robb11

    Member
    October 29, 2007 at 20:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Bingo!
    You have to start the servers!
    Look on the official documentation, everything is written over there!

  • jtorres

    Member
    October 29, 2007 at 21:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks for the tip..and I apologize for my lack of Linux knowledge, but how would I manually start the pandora server? I have read through the quick install guide for Pandora Server and I was unable to find any reference to starting the server manually. I figured that by installing the server, it will automatically start.

    Thanks in advance.

  • jtorres

    Member
    October 29, 2007 at 21:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    OK..I figured out how to manually start the pandora server..not only that but I was getting an error message when pandora server was starting related to a database access denied. After correcting the dbpassword field in the config.pm file, the pandora server showed up on the console. However, I’m still not getting any info out of the Host Latency agent/module. Am I missing something?

  • raul

    Member
    October 29, 2007 at 21:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    First, depending on your distro, check that

    [code:1]/var/run/pandora

    exists and has permission for writing for the pandora user.

    Then, using pandora user, you can run the pandora_server script without parameters, it shows you which parameters you need
    [code:1]pandora@charles:~/pandora_server/bin$ ./pandora_server

    Pandora FMS Data Server 1.3 Build PS071012 Copyright (c) 2004-2007 ArticaST
    This program is Free Software, licensed under the terms of GPL License v2.
    You can download latest versions and documentation at http://pandora.sourceforge.net.

    I Need at least one parameter: Complete path to Pandora FMS Server configuration file.

    Syntax:
    pandora_server [ options ]

    Following options are optional :
    -v : Verbose mode activated, give more information in logfile
    -d : Debug mode activated, give extensive information in logfile
    -D : Daemon mode (runs in backgroup)
    -h : This screen, show a little help screen

    So, you need to run:

    [code:1]pandora@charles:~/pandora_server/bin$ ./pandora_server ../conf/pandora_server.conf

    Pandora FMS Data Server 1.3 Build PS071012 Copyright (c) 2004-2007 ArticaST
    This program is Free Software, licensed under the terms of GPL License v2.
    You can download latest versions and documentation at http://pandora.sourceforge.net.

  • Server basepath is ../conf/pandora_server.conf
  • Server logfile at /var/log/pandora/pandora_server.log
  • Server errorlogfile at /var/log/pandora/pandora_server.error
  • Server incoming directory at /var/spool/pandora/data_in
  • Server keepalive 50
  • Server threshold 15
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • Pandora FMS Server [charles_Data] is running and operative
  • Pandora Data Server is now running with PID 12667

    For this example, I run pandora server from the /home/pandora/pandora_server/bin directory, using /home/pandora/pandora_server/conf/pandora_server.conf configuration file.

    Before running it, check that you can connect with database with the credentials given in the installation process of the Web Console.

    Raúl

  • jtorres

    Member
    October 29, 2007 at 22:15
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thank you Raul..I think i got it to work..however, was not logged in as user pandora, but as root..I can now see the average response time for the agent I set up in the pandora console. Is that a recommended setup? or would I need to be pandora user to run the server?

  • raul

    Member
    October 29, 2007 at 22:36
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You don’t need to be the pandora user, it is a recommendation for security. 😀

    Now, you can configure your agents with your own modules (examples can be found at http://www.openideas.info/wiki/index.php?title=Pandora:Modules and http://pandora.sourceforge.net/en/index.php?sec=examples)

    Remember, use the same agentname in the pandora_agent.conf file and in the console when creating agent.

    Raúl

  • jtorres

    Member
    October 29, 2007 at 22:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    OK..I understand..I’m on a local LAN and all devices I’m loking to monitor are also in the local LAN behind a firewall.. Provided that we don’t have any hackers in our company trying to hack into the Linux server, then I should be OK. i guess..:-) Also, the ICMP example in the second link you posted is not working..Actually, I don’t think anything is working in that second link..but what I’m looking for is setting up an ICMP agent/module that pings a host and reports on hourly or daily basis the Minumun Response time, Maximum Response time, and Average..kind of like a simple ping from the DOS prompt on a windows pc does..any ideas of how i can set this up? and is it even possible?

  • Robb11

    Member
    October 30, 2007 at 11:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    First you have to create an agent on the console. Assign the pandora_network server to it. Then go to Administration -> Manage Agents and choose the agent. From the up right menu you have to click on “Modules”. You should see a form to be filled. Choose “Host Alive” prebuilt module (or “Host latency” for other purposes) and click on “Update” followed by the click on “Add” in the bottom right edge of the page. Go to the Operation -> Tactical View and Group View. Wait a bit and then you will see and check the monitoring.
    Forgive me if I suggest you another time to read the official and complete documentation instead of the quick install doc. All I have told you now is explained there!
    I am suggesting to read it for another reason: Pandora is a very good monitoring tool. There are a lot of other things you could do with it. Using it only with the ICMP is, in my opinion, such as drive a Lamborghini in a garden!

    Hoping to have helped you,
    I wish a good morning.

    Robb

  • jtorres

    Member
    October 31, 2007 at 17:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi Robb11,

    Thankls for your tips. I have actually read most of the documentation that I was able to find on Pandora FMS in the Sourceforge website. I was actually able to figure out on my own how to set up the agent to monitor using pings and adding the module. One of the things I like about the web console is that is fairly easy to navigate and configure. I am also planning on using the Pandora FMS server to do monitor at different levels. However, since I’m a novice to both Pandora and Linux, I figured I’ll start with the easier setup. Now, that been said, I’m trying to do a little customizing to the preset modules. I’ve been trying to go to the Examples link previously provided in this discussion by Raul, however, none of the links for examples seem to be working. I was hoping to see an example for a module that uses ICMP. That way I can have an idea of how to set it up for what I need and use it as a template. Do you know where I can get examples of modules using ICMP? that should be of great help.

    Thanks in advance.

  • Robb11

    Member
    October 31, 2007 at 18:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    In my previous post I have explained how to configure ICMP module. Was that not clear?

  • jtorres

    Member
    October 31, 2007 at 18:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Robb11,

    Your explanation was very clear. I had actually already done what u said. However, I’m trying to customize the agent to my own needs and that’s what I’m having some issues with. Here’s what I’m looking for: I would like to create a custom report showing:

    – Simple graph for the ICMP agent I created for last week period(If just Monday through Friday even better).
    – Min, Avg, and Max values for each day of Last Week. (e.g. Min, Avg, Max values for Monday, Tuesday Wednesday, etc..)

    I have already figured out how to create a report that shows a simple graph for last week and Min, Avg, and Max values for last week. However these values average out the entire week. I don’t want that. I want it to show the Min, Avg, and Max values for each individual day of the last week period. Do you know how I can do that? Or if that’s even possible at all? I want the report to break down that Min, Avg, and MX values into the individual days of the Last Week period.

  • jtorres

    Member
    October 31, 2007 at 23:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I think that the easiest way that I can do this is by creating my own modules that collect the information I want at the intervals I want.. Unless there’s an easier way. I edited the pandora_agent.conf file under the /etc/pandora/ directory and added the following lines:

    module_begin
    module_name test_sing
    module_exec ping -c 3 192.168.1.2 | grep Min | awk ‘{print $5}’
    module_type generic_data
    module_interval 4
    module_description Minimum Response Time per hour
    module_end

    My intention is to have this module run a ping with 3 packtes to the ip address 192.168.1.2 and then return the Min value from the ping. I saved the pandora_agent.conf file and created an agent in the pandora console using the same name as the module I created before. For some reason I do not get any data.

  • manu

    Member
    November 1, 2007 at 13:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The command you put there returns nothing to me, see:
    [root@Arbusto ~]# ping -c 3 192.168.1.1 | grep Min | awk ‘{print $5}’
    [root@Arbusto ~]#

    On the other hand, this one works perfectly for me:
    [root@Arbusto ~]# ping -c 3 192.168.1.1 | grep min | awk -F “/” ‘{print $4}’ | tr -d “mdev = ”
    2.443

    Hope this helps

    Manu

  • jtorres

    Member
    November 1, 2007 at 19:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Manu,

    that was very helpful..Thanks..I actually modified your command a bit to fit it more into what I looking for but that was the way to go. Now, when I type the command in the terminal window, i get the information I looking for (which is a step forward) however, how would I make it appear in the console (maybe as a report)? I will also want to calculate and average for each hour during the day and thatś what I would like to show in the report. For example:

    |
    |
    |
    | GRAPH (Weekly Response Time)
    |
    |______|________|________|________|________|_____ …etc
    10/30 10/31 11/1 11/2 11/3

    Min: 4 4 4 5 4 …etc
    Avg: 2 3 2 3 2 …etc
    Max: 6 7 8 8 8 …etc

    As you can see in the example above, I would like the graph to display a one week period of average ping response times and also show the average min, avg, and max for each day of that week. It doesn necessarily have to look the same as above as long as I´m able to show the same information.

  • manu

    Member
    November 1, 2007 at 19:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    That’s easy, you just have to make a report and assign the modules you want to add to the graphic.
    As an example I have built a report of the host latency against google in a period of one week from our office router to google:

    http://artica.homelinux.com/pandora/index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id=12

  • Page 1 of 2