Ad Widget

Collapse

How to monitor bandwidth ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crimer
    Junior Member
    • Oct 2010
    • 8

    #1

    How to monitor bandwidth ??

    Dear all,
    i just finished install zabbix 1.8.1 on CentOS 5.5.
    http://www.zabbix.com/wiki/howto/ins.../centosinstall
    May i know how to configure monitor bandwidth? i had searched on this forum but cannot see the guide.
    pls adv to me.
    thanks a lot.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    On what kind of host ?

    On network equipment (switch, router), you'll get bandwidth via SNMP (ifInOctets and ifOutOctets items in Template_SNMPv2_Device are a good example).

    On servers, you'll get it via SNMP (as above) as via Zabbix agent.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • crimer
      Junior Member
      • Oct 2010
      • 8

      #3
      Hi Alixen,
      Can you show me more clearly about SNMP.It's will be easier you send to me the link that instructin step by step.
      My network diagram as follows:
      Also, i had create a hots, but when i actived it i get the error message in log file
      20027:20101106:175453.585 Item [Monitoring an agent-enabled host:agent.ping] error: Get value from agent failed: Cannot connect to [192.168.202.1:10050] [Interrupted system call]
      Please See the picture

      Pls adv to me.
      Sorry for my bad skill. I'm newbies in network administrator.
      thanks a lot.
      Last edited by crimer; 09-11-2010, 09:11.

      Comment

      • RPW
        Junior Member
        • Oct 2008
        • 11

        #4
        Hi crimer,

        yo cannot use port 10050 without Zappix Agent on Juniper Firewall.
        Remove the Port Number and set only Trigger for ping.

        Comment

        • MrKen
          Senior Member
          • Oct 2008
          • 652

          #5
          Too many obvious problems!

          1. You cannot install a zabbix_agent on a Juniper Firewall. It can't be done.

          2. Your Host 'monitoring an agent-enabled host' is a Juniper Firewall, you won't get very far with the Template_Linux on a Juniper.

          To monitor a Juniper Firewall you need to use snmp. That means that you must have Zabbix configured --with-net-snmp.
          You also need to enable snmp on your Juniper, pointing to your Zabbix_Server IP address.

          Assuming that you have done that, then you can test this with the following:
          snmpwalk -v2c -c public 192.168.202.1 system (change 'public' if necessary)

          If it works then you will get a bunch of information on the screen.

          Next go to the zabbix wiki and download/copy the Template for Juniper Netscreen SSG-140, then link that to your host (be sure to unlink the Template_Linux)
          http://www.zabbix.com/wiki/_media/contrib/juniper_ssg140.xml

          MrKen
          Disclaimer: All of the above is pure speculation.

          Comment

          • crimer
            Junior Member
            • Oct 2010
            • 8

            #6
            Hi MrKen,
            i had enabled SNMP on the firewall.
            Next step: how i can check with SNMP ? i'm not understand your command follow yet.
            Assuming that you have done that, then you can test this with the following:
            snmpwalk -v2c -c public 192.168.202.1 system (change 'public' if necessary)
            Please help me.!
            thanks.

            Comment

            • MrKen
              Senior Member
              • Oct 2008
              • 652

              #7
              When you enabled snmp on the firewall, it would ask for a 'community name' which is like a password. By default it is 'public'.

              On your Zabbix server command line, you need to run this command:

              snmpwalk -v2c -c public 192.168.202.1 system

              If you get a result, it means that snmp is working. If you get no result, it could be that snmp is not running on the server. You can check by running

              /etc/init.d/snmpd status
              or
              service snmpd status

              Also, check your zabbix_server.log When you start the server you should see this in your log:

              20582:20101108:100943 **** Enabled features ****
              20582:20101108:100943 SNMP monitoring: YES

              MrKen
              Disclaimer: All of the above is pure speculation.

              Comment

              • crimer
                Junior Member
                • Oct 2010
                • 8

                #8
                Hi MrKen,
                The seem i mistake when enable SNMP, i got the message as picture

                You can give me the picture which capture from your firewall configure.
                Also, i had been try with command and got error message
                [root@proxy ~]# snmpwalk -v2c -c public 192.168.202.1 system
                -bash: snmpwalk: command not found
                and then log file
                9207:20101108:210743.880 Item [Zabbix Server:sensor[temp2]] error: Not supported by Zabbix Agent
                9208:20101108:210744.825 Item [Zabbix Server:sensor[temp3]] error: Not supported by Zabbix Agent
                i'm sure that SNMP is running.
                Pls adv to me...
                thanks a lot.

                Comment

                • MrKen
                  Senior Member
                  • Oct 2008
                  • 652

                  #9
                  I don't know about your error message.

                  But I see that you have chosen snmp Version 1. You can change that to Version 2.

                  But if you use Version 1, then you must do snmpwalk -v1 not -v2c.
                  Also, at the top of your Juniper snmp setup it says 'Community Name = Monitor Bandwidth'. That is the community name. So your command will be:

                  snmpwalk -v1 -c Monitor Bandwidth <IP address> system (Might need " " around the community name).

                  On your Zabbix server command line try: locate snmpwalk (or which snmpwalk). If you can't find it, then it is not installed.

                  You say: "I'm sure snmp is running."

                  Let's be certain that it is running, use the 'status' commands that I mentioned before.

                  The errors from your log file are irrelevant. Restart your Zabbix Server and then check the log. It will tell you if you have configured zabbix with snmp.

                  MrKen
                  Disclaimer: All of the above is pure speculation.

                  Comment

                  • crimer
                    Junior Member
                    • Oct 2010
                    • 8

                    #10
                    Hi MrKen,
                    Point 1: reference to SNMP certain is running
                    [root@proxy ~]# service snmpd status
                    snmpd (pid 3047) is running...
                    [root@proxy ~]# tail -f /tmp/zabbix_server.log
                    3196:20101109:200014.702 server #21 started [Escalator]
                    3159:20101109:200014.703 server #0 started [Watchdog]
                    3166:20101109:200015.059 server #2 started [Poller. SNMP:YES]
                    3167:20101109:200015.095 server #3 started [Poller. SNMP:YES]
                    3168:20101109:200015.146 server #4 started [Poller. SNMP:YES]
                    3184:20101109:200015.207 server #16 started [Poller for unreachable hosts. SNMP:YES]
                    3189:20101109:200015.259 server #19 started [Discoverer. SNMP:YES]
                    3169:20101109:200015.310 server #5 started [Poller. SNMP:YES]
                    3170:20101109:200015.379 server #6 started [Poller. SNMP:YES]
                    3180:20101109:200019.701 Deleted 0 records from history and trends
                    point 2: enabled SNMP on the firewall

                    point 3:
                    [root@proxy ~]# snmpwalk -v2c -c community1 192.168.202.1 system
                    -bash: snmpwalk: command not found
                    [root@proxy ~]# snmpwalk -v2c -c "community1" 192.168.202.1 system
                    -bash: snmpwalk: command not found
                    [root@proxy ~]# snmpwalk -v2 "community1" 192.168.202.1 system
                    -bash: snmpwalk: command not found
                    May i know about this syntax and why i have to do this ???
                    thanks.

                    Comment

                    • MrKen
                      Senior Member
                      • Oct 2008
                      • 652

                      #11
                      If you are going to monitor with snmp, you can use snmpwalk to check various metrics to monitor. You don't have to do it but it helps to confirm that snmp works between your Zabbix server and other devices.

                      Code:
                      [root@zabbix~]# ll /usr/bin/snmp
                      snmpbulkget    snmpdelta      snmpgetnext    snmpset        snmptest       snmpusm
                      snmpbulkwalk   snmpdf         snmpinform     snmpstatus     snmptranslate  snmpvacm
                      snmpconf       snmpget        snmpnetstat    snmptable      snmptrap       snmpwalk
                      See if snmpwalk is in /usr/bin and run the command like:

                      ./usr/bin/snmpwalk -v2c -c community1 192.168.202.1 system

                      MrKen
                      Disclaimer: All of the above is pure speculation.

                      Comment

                      • crimer
                        Junior Member
                        • Oct 2010
                        • 8

                        #12
                        Hi MrKen,
                        I would like sent to you few report as follows:
                        [root@proxy ~]# snmpwalk -v2c -c community1 192.168.202.1 system
                        SNMPv2-MIB::sysDescr.0 = STRING: SSG-140 version 6.1.0r2.0 (SN: 0185042009000568, Firewall+VPN)
                        SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.3224.1.52
                        DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (14449400) 1 day, 16:08:14.00
                        SNMPv2-MIB::sysContact.0 = STRING: Monitor
                        SNMPv2-MIB::sysName.0 = STRING: SSG140
                        SNMPv2-MIB::sysLocation.0 = STRING: office
                        SNMPv2-MIB::sysServices.0 = INTEGER: 72
                        You have new mail in /var/spool/mail/root


                        According to your reply previous
                        http://www.zabbix.com/wiki/_media/co...per_ssg140.xml

                        i saved it to local disk and import to zabbix frontend and then i got error message



                        Would i need to edit something insite XML sample file ???
                        thanks a lot.

                        Comment

                        • MrKen
                          Senior Member
                          • Oct 2008
                          • 652

                          #13
                          This is a bug in 1.8.1


                          See the Temp fix by James at the bottom of that page. (Need to add a hyphen ' - ')

                          Or, upgrade to 1.8.3

                          MrKen

                          Edit: You will also need the NETSCREEN-RESOURCE-MIB for that template. Just download a copy from Google somewhere and put it in the folder where your mib files are. Might be: /usr/share/snmp/mibs/
                          Last edited by MrKen; 10-11-2010, 12:04. Reason: mib
                          Disclaimer: All of the above is pure speculation.

                          Comment

                          Working...