Zenoss Core setup guide

Posted by 4Aiur on 2011/12/16 in SysAdmin |

# Zenoss Core setup guide

Zenoss Core is a powerful monitoring system, and it is a OpenSource software.

Install Zenoss Core
Install ZenPacks
Setup snmp and snmpd config
Add user command
Add a single device
Add custom Device Class
Custom new class properties
Setup Processes
Custom Zenoss reports

Install Zenoss Core

Before you install:

1) Run the Yellowdog Updater, Modified (YUM), which you will use to install Zenoss. To run YUM, enter this command:

2) Download the Zenoss installation files.

3) If you have just installed MySQL, then use the following command to add MySQL into the startup sequence:

4) Enter the following command to display current run levels:

5) If the system responds with something similar to:

then enter the following command to adjust run levels:

6) Restart MySQL and set the password.

Note:
    Do not add a space between the single quotes in the following commands.

Note:
    Initially, the MySQL password must be blank so that Zenoss can correctly create the database. After you have installed and started Zenoss, you can change this password.

Install the Software

Follow these steps to install Zenoss for Red Hat Enterprise Linux 5 or CentOS 5.

1) Enter one of the following commands to install the Zenoss RPM.

2) If MySQL is running on a different server, or has a different root user password, edit the /opt/zenoss/bin/ zenoss_init_pre file and adjust the MYSQLHOST, MYSQLROOTUSER, and MYSQLROOTPASSWD values.

3) Enter this command to start Zenoss.

Note:
    This step may take several minutes.

Install ZenPacks

Setup snmp and snmpd config

add snmp.conf to zenoss server /etc/snmp/snmp.conf. snmp.conf example:

add snmpd.conf to client /etc/snmp/snmpd.conf. snmpd.conf example:

Add user command for debug snmp setting

  1. Go to http://yourhost:8080/zport/dmd/dataRootManage
  2. Click “Add User Command”
  3. Input value

Add a single device

  • Go to http://yourhost:8080/zport/dmd/itinfrastructure
  • Click “Add a Single Device”
    Add_a_Single_Device-1
  • Input items
    Add_a_Single_Device-2
  • Click “Zenoss Server”, and Click left “Configuration Properties” to edit the server’s properties
    • zSnmpVer: v3
    • zSnmpSecurityName: yourname
    • zSnmpAuthPassword: yourlonglonglonglongpassword
    • zSnmpAuthType: MD5
  • Click “Commands –> snmpwalkV3” verify server and client snmp configuration
  • Click “Actions –> Model Device”

Add custom Device Class

Custom new class properties

Add_Device_Class

using zenoss portal

using zenoss manage and zendmd

1) Login to Zenoss as “admin” and go to the URL http://yourhost:8080/zport/dmd/Devices/manage
2) Click left “your new class name”, and click top “Properties”
3) To add a new property, enter a name, type and value for the new property and click the “Add” button.
Name: zCollectorPlugins
Type: lines

Value:

  • zenoss.snmp.NewDeviceMap
  • zenoss.snmp.DeviceMap
  • zenoss.snmp.InterfaceMap
  • zenoss.snmp.RouteMap
  • zenoss.snmp.IpServiceMap
  • zenoss.snmp.HRFileSystemMap
  • zenoss.snmp.HRSWInstalledMap
  • zenoss.snmp.HRSWRunMap
  • zenoss.snmp.CpuMap

Name: zDeviceTemplates
Type: lines

Value:

  • b_fping
  • Device
  • FileSystem

Name: zIcon
Type: string
Value: /zport/dmd/img/icons/server.png
Name: zSnmpAuthType
Type: string
Value: MD5
Name: zSnmpVer
Type: string
Value: v3

4) Login zendmd, change default snmp auth password

Add Custom Schema

Setup Processes

Zenoss API

Zenoss have jsonapi and xmlrpc interface, you can using it’s API to integrate your management system.
jsonapi code demo:

xmlrpc code demo:

Custom Zenoss Reports

Column syntax

buildin command:

python command:

custom python script:

Goto http://yourhost:8080/zport/dmd/Devices/manage first.

Custom_Python_Script

Input script name getMemUtil(), and input content like this:

Send report email

Add it into crontab

References:

Tags: , ,

Copyright © 2010-2017 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.

.