User Tools

Site Tools


installationagent

This is an old revision of the document!


Agent installation

Download the zabbix agent zip file on the VMS box.

Create a directory for Zabbbix agent, for example

$ create/dir dsa0:[zabbbixagt]

Extract the files from the downloaded .zip into the newly created directory

$ set default dsa0:[zabbbixagt]
$ unzip dev:[dir]vms_agent_zabbix.zip

should give

Archive:  dev:[dir]vms_agent_zabbix.zip;1
  inflating: zabbix_agent_IA64.EXE   
  inflating: zabbix_sender_IA64.EXE  
  inflating: zabbix_sender_shr32.exe  
  inflating: README                  
  inflating: ZABBIX_AGENT_STARTUP.COM  
  inflating: zabbix_discover.com     
  inflating: ZABBIX_STARTUP.COM      
  inflating: PAGEF.COM               
  inflating: freeheaders.com         
  inflating: indexfmap.com           
  inflating: zabbix_logicals.template  
   creating: [.log]
   creating: [.scripts]
   creating: [.local]
$ 

Copy the zabbix_logicals.template as a.com file

$ copy zabbix_logicals.template .com  

Edit it and update it if needed. At least update line

$ define/system/nolog zabbix_server localhost !! "my.zabbix.server" !! or "123.123.123.123"

Launch it, so that the logicals names for zabbix are defined

$ @zabbix_logicals

The logical name table ZABBIX_TABLE_MON is created,

Then launch the zabbix_discover.com

$ @zabbix_discover

This will create JSON files in zabbix_def_dir: with definition for your specific environment (disks, network interfaces,batch and print queues…)

Example

$ @zabbix_discover
ZABBIX_DEF_DIR:ZABBIX_SHAD_DISKS_DISCOVERY.JSON created with 2 devices
ZABBIX_DEF_DIR:ZABBIX_NOSHAD_DISKS_DISCOVERY.JSON created with 2 devices
ZABBIX_DEF_DIR:ZABBIX_IF_DISCOVERY.JSON created with 2 devices
ZABBIX_DEF_DIR:ZABBIX_PQUEUES_DISCOVERY.JSON created with 3 Printer Queues
ZABBIX_DEF_DIR:ZABBIX_BQUEUES_DISCOVERY.JSON created with 3 Batch Queues
ZABBIX_DEF_DIR:ZABBIX_SQUEUES_DISCOVERY.JSON created with 3 Server Queues

Review the .JSON files and update them if needed

Example

The file ZABBIX_SHAD_DISKS_DISCOVERY.JSON

may contain

{
"data":[
{"{#DSNAME}":"DSA0:", "{#MCOUNT}":"2", "{#DSPCFREE}":10},
{"{#DSNAME}":"DSA1:", "{#MCOUNT}":"1", "{#DSPCFREE}":10}]
}

This means that the devices DSA0 has 2 members in its shadow, and an alarm is sent when the free space is under 10%.

Then launch ZABBIX_STARTUP

$ @ZABBIX_STARTUP

This will create a process ZABBIX_AGENT, which can communicate with the zabbix server using the ports 10050 and 10051.

Example

> sh sys/proc=zabb*
OpenVMS V8.3  on node ITA123  22-MAR-2018 11:19:48.18  Uptime  231 12:24:09
  Pid    Process Name    State  Pri      I/O       CPU       Page flts  Pages
0001FD59 ZABBIX_AGENT    HIB      4      111   0 00:00:00.01       314    346   

To stop Zabbix Agent, just

$ stop ZABBIX_AGENT

or

$ stop/id=pid_of_zabbix_agent_process

You should download the templates and load them on your Zabbix server, in order to save time to configure the various monitored items.

See the link at

Latest versions of OpenVMS templates

on the start page

https://zabbix.sysgroup.fr/doku.php?id=start

installationagent.1521722149.txt.gz · Last modified: 2018/03/22 13:35 by gl