If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Someone have already monitored TSM Server with Zabbix ? How can I do it ? Help!
Yes I monitor a TSM Server with Zabbix. What I did was write a Perl script the uses dsmadmc to gather up the data I want from TSM. Then I use zabbix_send to put the data into Zabbix. I then run the script from cron every 5 minutes.
I have attached the script zabbix-tsm (uploaded as zabbix-tsm.txt). You will need to create the items in Zabbixs before running the script. You also need to setup a TSM account for the script.
Yes I monitor a TSM Server with Zabbix. What I did was write a Perl script the uses dsmadmc to gather up the data I want from TSM. Then I use zabbix_send to put the data into Zabbix. I then run the script from cron every 5 minutes.
I have attached the script zabbix-tsm (uploaded as zabbix-tsm.txt). You will need to create the items in Zabbixs before running the script. You also need to setup a TSM account for the script.
--John
Hi hoyt, I don't know much about Perl, but I'll try to do this soon, thanks a lot for the reply!
Yes I monitor a TSM Server with Zabbix. What I did was write a Perl script the uses dsmadmc to gather up the data I want from TSM. Then I use zabbix_send to put the data into Zabbix. I then run the script from cron every 5 minutes.
I have attached the script zabbix-tsm (uploaded as zabbix-tsm.txt). You will need to create the items in Zabbixs before running the script. You also need to setup a TSM account for the script.
--John
A question, I need to create the items with the keys:
tsm.session
tsm.driveload
tsm.libvol.scratch
tsm.libvol.total
tsm.libvol.private
tsm.db.pctutil
tsm.db.maxpctutil
tsm.db.cachehit
tsm.db.cachewait
tsm.drm.offsite
tsm.log.pctutil
tsm.log.maxpctutil
tsm.log.poolpctutil
tsm.log.poolpctwait
? And what type I select ? Zabbix agent, Zabbix agente (active), etc ?
Here is a template for the TSM items. Just import this template, then link it to the host that will be running the zabbix-tsm script.
You will need to edit the script some. You will atleast need to update the TSM login/password information.
--John
I imported the items templates with no problem, the only problem is when I try to execute the script zabbix-tsm:
[root@zabbix zabbix]# perl zabbix-tsm
Global symbol "$DRMediaOffite" requires explicit package name at zabbix-tsm line 111.
Global symbol "$DRMediaOffite" requires explicit package name at zabbix-tsm line 112.
Global symbol "$DRMediaOffiteKey" requires explicit package name at zabbix-tsm line 256.
Global symbol "$DRMediaOffite" requires explicit package name at zabbix-tsm line 256.
Execution of zabbix-tsm aborted due to compilation errors.
I've already changed the login/password in the script, the dsmadmc runs with no problem...only return the value 0, but this value is true...
[root@zabbix zabbix]# dsmadmc -id=admin -pass=admin -dataonly=yes -comma "select count(state) from drmedia where location = 'OFFSITE'"
0
Above is the lines with errors, but I couldn't correct it, can you help me? please
Hey John, this version of the script returned no error, no output, and no value in Zabbix Itens, I believe that I have a problem with zabbix_sender...this is the first time that I use it.
Do you know if don't have problem running it in the samer server as zabbix ?
I tried running it to test:
Hey John, this version of the script returned no error, no output, and no value in Zabbix Itens, I believe that I have a problem with zabbix_sender...this is the first time that I use it.
Do you know if don't have problem running it in the samer server as zabbix ?
I tried running it to test:
Yes, the same, maybe there is an specific conf in the zabbix_agentd.conf ?
The Zabbix server has kinda of a odd setup in Zabbix out of the box. If you go and look at Configurtion->Host, and look for your Zabbix server entery. You will most likely find that the "name" of the Zabbix server does not match up with the "Hostname" parameter in the zabbix_agentd.conf file. I had to fixed this on our Zabbix server before I could get zabbix_sender to work.
The Zabbix server has kinda of a odd setup in Zabbix out of the box. If you go and look at Configurtion->Host, and look for your Zabbix server entery. You will most likely find that the "name" of the Zabbix server does not match up with the "Hostname" parameter in the zabbix_agentd.conf file. I had to fixed this on our Zabbix server before I could get zabbix_sender to work.
--John
Now its working perfectly, thanks a lot for this John, next I'll try to add / modify some checks in my TSM Server.
Comment