使用zabbix用户操作: 查看浮动IP地址是否在可用状态:ping 40.2.214.18 如不通:在主服务器端执行:/usr/bin/vrrpd –I bond0 –n –v 54 –p 100 40.2.214.18 使用root用户操作: 查看HTTP进程是否运行:ps–ef | grep httpd 如未运行:执行/usr/local/apache2/bin/httpd –k start启动HTTP进程 查看HTTP端口80...
Escalation记录最初由process_actions函数insert到数据库中,此时escalation的status字段值为0(即active状态),但是此时并没有设置nextcheck值和esc_step值,二者都是用的默认值0。实际上,Nextcheck和esc_step值在process_escalations过程中由escalation_execute_operations函数进行更新,更新过程为: 将esc_step值加1(此时,...
Escalation记录最初由process_actions函数insert到数据库中,此时escalation的status字段值为0(即active状态),但是此时并没有设置nextcheck值和esc_step值,二者都是用的默认值0。实际上,Nextcheck和esc_step值在process_escalations过程中由escalation_execute_operations函数进行更新,更新过程为: a将esc_step值加1(此时,初...
INSERT INTO `scripts` (`scriptid`,`name`,`command`,`host_access`,`usrgrpid`,`groupid`,`description`,`confirmation`,`type`,`execute_on`) values ('1','Ping','ping -c 3 {HOST.CONN}; case $? in [01]) true;; *) false;; esac','2',NULL,NULL,'','','0','2'); INSERT IN...
master_ip_online_change_script= /usr/local/bin/master_ip_online_change //设置手动切换时候的切换脚本 password=123456 //设置mysql中root用户的密码,这个密码是前文中创建监控用户的那个密码 user=root 设置监控用户root ping_interval=1 //设置监控主库,发送ping包的时间间隔,默认是3秒,尝试三次没有回应的...
escalation_execute_operations函数部分代码截图: 回到process_escalations函数对escalation的分批处理。其处理方法为按照顺序逐个处理,每个escalation会先检查其相应的action、event、trigger是否被删除,如果为已删除,则记入zabbix日志并从数据库中删除对应的escalation记录。如果未被删除,则继续检查action、event、trigger的状态是否...
未转义的脚本名称具有唯一性验证,即“Ping”和“\ Ping”无法添加到同一文件夹中。 单个反斜杠在其后直接转义任何符号。 例如,字符'/'和'\'可以用反斜杠转义,即\ /或\\。 Type 点击相应的按键,来选择脚本类型 - IPMI command或者Script. Execute on 单击对应的按键来在Zabbix server或agent上执行脚本。从...
What can be done, after Agent stops polling data, can you execute on the server following command: odctr /q It will list all the performance providers, just look for disabled ones. Best regards, Bartosz Comment byJeffrey Descan[2022 Oct 26] ...
rm: cannot remove ‘/tmp/nginx_status.txt’: Operation not permitted 10 这时候出现报错,原因是执行zabbix_get取值是以zabbix身份去执行,刚才执行脚本是以root身份执行了,root执行时创建的一个文件zabbix用户删除不掉。自己删除这个文件解决 [root@web01 /server/scripts]# rm -rf /tmp/nginx_status.txt ...
/bin/bash # Script to fetch nginx statuse...zabbix 自动发现设置 zabbix version: 3.2.7 system:centos 7 minimal 搭建完zabbix,当然要开始进行使用,那么首先要先获取主机,这里会使用到的两个功能为Discovery和Action 1、Discovery Configuration-->Discovery-->Create discovery rule 信息设置完成后点击Add添加,...