月度归档: 2012 年 5 月

  • chengd-ossim

    chengd-ossim

    http://lymrg.blog.51cto.com/1551327/385386
    log文件
    /var/log/localmessage

    plugin文件
    /etc/ossim/agent/plugins/zabbix.cfg

    /etc/ossim/agent/config.cfg

    [zabbix]

    zabbix=/etc/ossim/agent/plugins/zabbix.cfg

    www
    /usr/share/www/ossim/

    数据库 ossim 的plugin表 创建
    zabbix
    INSERT INTO `ossim`.`plugin` (

    `id` ,
    `type` ,
    `name` ,
    `description` ,
    `source_type` ,
    `vendor`

    )
    VALUES (

    ‘4500’, ‘1’, ‘zabbix’, ‘zabbix server message’, NULL , NULL

    );

    在plugin-sid里面添加
    INSERT INTO `ossim`.`plugin_sid` (`plugin_id`, `sid`, `category_id`, `class_id`, `reliability`, `priority`, `name`, `aro`, `subcategory_id`) VALUES (‘4500’, ‘1’, NULL, NULL, ‘5’, ‘5’, ‘zabbix warm’, ‘0.0000’, NULL);
  • centos net

    centos net
    http://www.wtobase.com/centos-6-basic-configuration.html
    #route add default gw 192.168.0.1 dev eth0

    /etc/sysconfig/network-scripts/ifcfg-eth0

    DEVICE=eth0
    BOOTPROTO=static(dhcp)   +++++++++++++++++++++++++++
    BROADCAST=192.168.1.255 ++++++++++++++++++++++++++
    IPADDR=192.168.1.101  +++++++++++++++++++++++
    NETMASK=255.255.255.0++++++++++++++++++++++
    GATEWAY=192.168.1.1 ++++++++++++++++++++++
    HWADDR=00:0C:29:69:76:CA
    ONBOOT=yes          ————————————————
    TYPE=Ethernet

    /etc/sysconfig/network-scripts/route-eth0

    za

    /etc/resolv.conf

    nameserver 8.8.8.8
    ————————————————————————————–

    vim /etc/sysconifg/network-scripts/route-eth0
    127.16.6.0/24 via 172.16.2.25