Ad Widget

Collapse

Monitoring Tivoli Storage Manager with Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parabola
    Junior Member
    • Sep 2009
    • 14

    #16
    I've created a shell script to do all this, right now it pulls in 24 data points with appropriate triggers, doing graphs this week, and intend on cleaning up the script and i'll post it when its ready

    Comment

    • dougbee
      Member
      • Apr 2011
      • 68

      #17
      Originally posted by parabola
      I've created a shell script to do all this, right now it pulls in 24 data points with appropriate triggers, doing graphs this week, and intend on cleaning up the script and i'll post it when its ready
      Hi parabola - any update on your script? Just curious!

      Comment

      • parabola
        Junior Member
        • Sep 2009
        • 14

        #18
        Originally posted by dougbee
        Hi parabola - any update on your script? Just curious!
        Here ya go doug

        Comment

        • dougbee
          Member
          • Apr 2011
          • 68

          #19
          Thanks, parabola! I hope to start using this in our test environment soon. I'll report back!

          Comment

          • vlam
            Senior Member
            Zabbix Certified Specialist
            • Jun 2009
            • 166

            #20
            Help

            I have the following setup and a small problem.

            Zabbix Server - Zabbix Proxy - TSM Server
            165.234.202.2 - 155.232.210.121 - 155.232.210.61

            When running the following I get:

            Zabbix_Proxy# /usr/local/zabbix/bin/zabbix_sender -z 155.232.210.121 -p 10051 -s Zabbix_Proxy -k tsm.driveload -o 1 -vv

            zabbix_sender [6793]: DEBUG: Answer [{
            "response":"success",
            "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000033"}]
            Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000033"
            sent: 1; skipped: 0; total: 1

            the tsm script is running on my proxy
            what am i doing wrong???
            4 Zabbix Frontend Servers (Load balanced)
            2 Zabbix App Servers (HA)
            2 Zabbix Database Servers (HA)
            18 Zabbix Proxy Servers (HA)
            3897 Deployed Zabbix Agents
            6161 Values per second
            X-Layer Integration
            Jaspersoft report Servers (HA)

            Comment

            • LenR
              Senior Member
              • Sep 2009
              • 1005

              #21
              I think the tsm script needs to run on the tsm server.

              Comment

              • vlam
                Senior Member
                Zabbix Certified Specialist
                • Jun 2009
                • 166

                #22
                Help

                Thanks LenR

                I have tried running the script from the TSM server but get the same response as when I run it from the Proxy server
                4 Zabbix Frontend Servers (Load balanced)
                2 Zabbix App Servers (HA)
                2 Zabbix Database Servers (HA)
                18 Zabbix Proxy Servers (HA)
                3897 Deployed Zabbix Agents
                6161 Values per second
                X-Layer Integration
                Jaspersoft report Servers (HA)

                Comment

                • vlam
                  Senior Member
                  Zabbix Certified Specialist
                  • Jun 2009
                  • 166

                  #23
                  Help

                  When I run on the TSM server the following I get:

                  dsmadmc -id=admin -pass=admin -dataonly=yes -comma "select count (state) from ddrmedia where location = 'OFFSITE'"

                  I get

                  0
                  4 Zabbix Frontend Servers (Load balanced)
                  2 Zabbix App Servers (HA)
                  2 Zabbix Database Servers (HA)
                  18 Zabbix Proxy Servers (HA)
                  3897 Deployed Zabbix Agents
                  6161 Values per second
                  X-Layer Integration
                  Jaspersoft report Servers (HA)

                  Comment

                  • LenR
                    Senior Member
                    • Sep 2009
                    • 1005

                    #24
                    The zsender line

                    zabbix_sender -z 155.232.210.121 -p 10051 -s Zabbix_Proxy -k tsm.driveload -o 1 -vv

                    -z must be either the zabbix proxy or server for the client.

                    -s needs to be the clinet name that has the item specfied in -k.

                    Sender will fail if info is sent to the zabbix server/proxy not responsible for the client or if the item doesn't exist for the client in -s.

                    You can debug the zabbix_sender line from the command line, when it works then go back to the script.

                    Comment

                    • LenR
                      Senior Member
                      • Sep 2009
                      • 1005

                      #25
                      Originally posted by vlam
                      When I run on the TSM server the following I get:

                      dsmadmc -id=admin -pass=admin -dataonly=yes -comma "select count (state) from ddrmedia where location = 'OFFSITE'"

                      I get

                      0
                      That's a TSM question :-)

                      Debug in TSM interactive, if you get a non 0 value there, you script may be getting the return code, not the value.

                      I usually put the TSM command output to a file ( > $file ) then read that, but I have a lot of multi line stuff to process.

                      Comment

                      • vlam
                        Senior Member
                        Zabbix Certified Specialist
                        • Jun 2009
                        • 166

                        #26
                        Help

                        Hi LenR

                        I get this when I use:

                        -z Zabbix_Proxy
                        -s TSM_Server

                        TSM_Server# /opt/zabbix/bin/zabbix_sender -z 155.232.210.121 -p 10051 -s TSM_Server -k tsm.driveload -o 1 -vv

                        zabbix_sender [4453]: DEBUG: Answer [{
                        "response":"success",
                        "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000029"}]
                        Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000029"
                        sent: 1; skipped: 0; total: 1
                        4 Zabbix Frontend Servers (Load balanced)
                        2 Zabbix App Servers (HA)
                        2 Zabbix Database Servers (HA)
                        18 Zabbix Proxy Servers (HA)
                        3897 Deployed Zabbix Agents
                        6161 Values per second
                        X-Layer Integration
                        Jaspersoft report Servers (HA)

                        Comment

                        • vlam
                          Senior Member
                          Zabbix Certified Specialist
                          • Jun 2009
                          • 166

                          #27
                          Originally posted by LenR
                          That's a TSM question :-)

                          Debug in TSM interactive, if you get a non 0 value there, you script may be getting the return code, not the value.

                          I usually put the TSM command output to a file ( > $file ) then read that, but I have a lot of multi line stuff to process.
                          When running this I do get a return of 0
                          4 Zabbix Frontend Servers (Load balanced)
                          2 Zabbix App Servers (HA)
                          2 Zabbix Database Servers (HA)
                          18 Zabbix Proxy Servers (HA)
                          3897 Deployed Zabbix Agents
                          6161 Values per second
                          X-Layer Integration
                          Jaspersoft report Servers (HA)

                          Comment

                          • vlam
                            Senior Member
                            Zabbix Certified Specialist
                            • Jun 2009
                            • 166

                            #28
                            Help

                            Hi Again

                            OK I installed the tsm agent on my Zabbix Proxy and loaded the script on there like in the documentation and enabled the externalscripts function in the Zabbix Proxy Config, also restarted the Proxy. I configured the dsmadmc configuration so that it can speak to my tsm server.

                            When testing the sender:

                            Zabbix_Proxy# zabbix_sender -z localhost -p10051 -s NR1SABCK02 -k tsm.jobs.failed -o 1 -vv

                            I get:

                            zabbix_sender [30513]: DEBUG: Answer [{
                            "response":"succsess".
                            "info":"Processed 1 Failed 0 Total 1 Seconds spent 0.000069"}]
                            Info from server: "Processed 1 Failed 0 Total 1 Seconds spend 0.000069"
                            sent: 1; skipped:0; total: 1


                            So I see it as working.
                            But when adding it to run in the crontab, Zabbix just keeps on telling me TSM no Data

                            Please can someone help me

                            Thanks
                            4 Zabbix Frontend Servers (Load balanced)
                            2 Zabbix App Servers (HA)
                            2 Zabbix Database Servers (HA)
                            18 Zabbix Proxy Servers (HA)
                            3897 Deployed Zabbix Agents
                            6161 Values per second
                            X-Layer Integration
                            Jaspersoft report Servers (HA)

                            Comment

                            • dougbee
                              Member
                              • Apr 2011
                              • 68

                              #29
                              Can the TSM log be written to by the user that's running zabbix-server? If not, the dsmadmc command will fail and no data gets sent to zabbix.

                              Comment

                              • vlam
                                Senior Member
                                Zabbix Certified Specialist
                                • Jun 2009
                                • 166

                                #30
                                Originally posted by dougbee
                                Can the TSM log be written to by the user that's running zabbix-server? If not, the dsmadmc command will fail and no data gets sent to zabbix.
                                Do you mean the User that I created on the TSM server that is defind in the script running on the Zabbix Proxy?
                                4 Zabbix Frontend Servers (Load balanced)
                                2 Zabbix App Servers (HA)
                                2 Zabbix Database Servers (HA)
                                18 Zabbix Proxy Servers (HA)
                                3897 Deployed Zabbix Agents
                                6161 Values per second
                                X-Layer Integration
                                Jaspersoft report Servers (HA)

                                Comment

                                Working...