首页 > 系统相关 >Linux msend.pl配置

Linux msend.pl配置

时间:2023-09-23 13:34:14浏览次数:31  
标签:opt bin root msend Linux rhel76 pl

1.概述

1.1.说明

本文细描述Linux环境下(arm架构x64)基于perl的msend.pl配置,以实现根据msend.pl进行告警事件的发送。

1.2.环境说明

OS Version:RHEL7.6(arm架构x64)

Perl Version: v5.16.3

1.3.msend.pl架构图

Linux msend.pl配置_msend

2.msend.pl配置

2.1.msend.pl配置

前提:以root用户进行配置,目录:/opt

1.上传msend.zip至/opt目录。

[root@rhel76 opt]# pwd

/opt

[root@rhel76 opt]# ls -l msend.zip

-rw-r--r-- 1 root root 413010 9月  13 10:22 msend.zip

[root@rhel76 opt]#

2.解压msend.zip至当前目录(/opt),并更改其属组(E.g: la_mdcs_adm)。 

命令:

unzip msend.zip

chown -R la_mdcs_adm:la_mdcs_adm msend/

[root@rhel76 opt]# unzip msend.zip

Archive:  msend.zip

   creating: msend/

   creating: msend/bin/

  inflating: msend/bin/msend.pl     

   creating: msend/etc/

   creating: msend/etc/locale/

  inflating: msend/etc/locale/arnotifymsg.properties 

  ……

  inflating: msend/etc/bak.mcell.dir 

  inflating: msend/etc/mcell.dir

[root@rhel76 opt]# chown -R la_mdcs_adm:la_mdcs_adm msend/

[root@rhel76 opt]# ls -l

总用量 404

drwxr-xr-x  4 la_mdcs_adm la_mdcs_adm     28 9月  13 10:11 msend

-rw-r--r--  1 root        root        413010 9月  13 10:22 msend.zip

[root@rhel76 opt]#

3.进入到其bin子目录(/opt/msend/bin),授权+x权限

命令:

cd msend/bin

chmod +x msend.pl

ls -l msend.pl

[root@rhel76 opt]# cd msend/bin/
[root@rhel76 bin]# pwd
/opt/msend/bin
[root@rhel76 bin]# chmod +x msend.pl 
[root@rhel76 bin]# ls -l msend.pl 
-rwxr-xr-x 1 la_mdcs_adm la_mdcs_adm 14409 5月  16 2011 msend.pl
[root@rhel76 bin]#

4.msend.pl帮助

命令:

su - la_mdcs_adm

/opt/msend/bin/msend.pl -h

[root@rhel76 ~]# /opt/msend/bin/msend.pl -h
BMC Impact 1.1 Perl Simple Sender (build: May 26th, 2003)
(c) Copyright 2003 BMC Software, All Rights Reserved

usage:

perl /opt/msend/bin/msend.pl [-a Class] [-f DirFile] [-h|-?] [-l HomeDir] [-n CellName[:cell2[:...]] | -n @Host[:Port]] [-q] [-v] [- | {SourceFile} | -a Class [-b SlotSetValue] [-m Message] [-o Source] [-r Severity]]

-a Send object of class Class
-b Add SlotSetValue settings (format: "slot=value;...")
-f Directory file path (default: <MCELL_HOME>/etc/mcell.dir)
-h Print this help and exit
-l Home directory (eg <MCELL_HOME>)
-m Send event message to Message
-n Connect to server CellName - as defined in directory
   or on indicated host and port
-o Send event source to Source
-q quiet execution (no banner)
-r Send event severity to Severity
-v Verbose
-z Print version number and exit
-  Input from standard input stream

[root@rhel76 ~]#

2.2.msend.pl告警发送验证

1.模拟告警

命令:

/opt/msend/bin/msend.pl -n @66.179.84.211:1828 -a EVENT -m "66.179.84.211 test event" -b "severity=CRITICLA"

[root@rhel76 ~]#/opt/msend/bin/msend.pl -n @66.179.84.211:1828 -a EVENT -m "66.179.84.211 test event" -b "severity=CRITICLA"
BMC Impact 1.1 Perl Simple Sender (build: May 26th, 2003)
(c) Copyright 2003 BMC Software, All Rights Reserved
[root@rhel76 ~]#

 2.Cell接收端告警接收验证

Linux msend.pl配置_msend_02

标签:opt,bin,root,msend,Linux,rhel76,pl
From: https://blog.51cto.com/ztj1216/7577676

相关文章

  • Metasploit
    MetasploitUbuntu下允许root用户ssh远程登录└─#sudoservicepostgresqlstart&&msfdbinit&&msfconsole工作区msf6>workspace-hUsage:workspaceListworkspacesworkspace[name]SwitchworkspaceOPTIONS:-a,--add<......
  • Linux查看系统版本信息
    Linux查看系统版本信息参考资料:Linux常用命令分类汇总查看Linux系统版本信息的几种方法uname-a #查看Linux内核版本命令cat/proc/version #查看Linux内核版本命令cat/etc/issue #此命令也适用于所有的Linux发行版。lsb_release-a #即可列出所有版本信息:‍‍......
  • Linux服务器编程 基本API与概念
    Linux服务器编程基本API与概念基本参数和结构体协议族参数:PF_UNIX,PF_INET,PF_INET6;地址族参数(sa_family_t):AF_UNIX,AF_INET,AF_INET6;服务类型参数:SOCK_STREAM流服务;SOCK_UGRAM数据报服务;与SOCK_NONEBLOCK相与非阻塞类型;与SOCK_CLOEXEC相与fork子进程在子进程......
  • CentOS7 关于Linux Polkit本地权限提升漏洞(CVE-2021-4034)的在线和离线的两种修复方式
    CentOS7关于LinuxPolkit本地权限提升漏洞(CVE-2021-4034)的在线和离线的两种修复方式https://blog.csdn.net/liangtongning/article/details/122805070在线修复yumcleanall&&yummakecacheyumupdatepolkit-y[root@Fort~]#yumcleanall已加载插件:fastestmirror......
  • Tecplot 360 EX 2020 工程绘图注册版下载 各个版本下载
    Tecplot是一款强大的数据可视化和分析工具。它具有多种数据格式支持、高质量的可视化、多维数据分析、数据交互和探索、自定义图表和报告、与其他工具的集成、大数据处理、广泛的应用领域等特点。通过使用Tecplot,科学家、工程师和研究人员可以更好地理解数据、发现模式和趋势,并做出......
  • 模拟仿真Tecplot下载安装教程Tecplot模拟仿真下载 各个版本下载
    Tecplot是一款功能强大、灵活和易于使用的科学数据可视化和分析软件。它的多维数据可视化、数据导入支持、高级的可视化效果和工具,以及交互式数据分析等功能,使得用户能够更好地理解和解释复杂的科学数据。通过自动化和与其他工具的集成,Tecplot还提供了高效的数据处理和工作流程,满足......
  • 制作基于 apline 的 jdk11 环境
    制作基于apline的jdk11环境没有搞定的方法:https://blog.csdn.net/qq_43059674/article/details/103356158https://juejin.cn/post/7082235890180816904以上两种方法都试过了,没有成功。也不想深究原因了,主要是执行到RUN命令时报错:Step4/10:ADDopenjdk-11.0.2_linux-......
  • linux 之路 第七章
    第七章磁盘陈列技术提高硬盘的读写速度解决硬盘损坏后数据丢失的情况1.DAID独立冗余磁盘阵列DAID0两块设备,提升数倍,rAID1两块盘,同时写入盘里,增加数据安全性,成本高使用率降低50%rAID5最少三块盘就可以做rAID5 保存的奇偶校验和写入到多个硬盘的校验和rAID10rADI1和rAID0组合......
  • 【matplotlib基础】--3D图形
    matplotlib在1.0版本之前其实是不支持3D图形绘制的。后来的版本中,matplotlib加入了3D图形的支持,不仅仅是为了使数据的展示更加生动和有趣。更重要的是,由于多了一个维度,扩展了其展示数据分布和关系的能力,可以一次从三个维度来比较数据。下面介绍在matplotlib中绘制各类3D图形的......
  • Linux下Java项目部署
    前置条件​ 阿里云服务器一台(可在购买服务器时勾选安装宝塔选项,免去后面的宝塔安装)​ 设置阿里云服务器密码并登陆服务器​ 以下操作均在服务器Linux中进行(使用远程连接工具登录)宝塔登录登录阿里云服务器在Linux命令行中输入bt,查看宝塔信息​ 根据宝塔信息提供的网站登......