⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enable_notifications

📁 这是一个开源的运行在Linux操作系统上的主机、服务和网络监控程序。
💻
字号:
#!/bin/sh# Write a command to the Nagios command file to cause# it to enable host and service notifications# Notes: # 1) This script is not intended to be used as an #    event handler by itself.  Instead, it is used by other#    event handler scripts (like the redundancy examples).# 2) In order for Nagios to process any commands that#    are written to the command file, you must enable#    the check_external_commands option in the main#    configuration file.echocmd="/bin/echo"CommandFile="/usr/local/nagios/var/rw/nagios.cmd"# get the current date/time in seconds since UNIX epochdatetime=`date +%s`# create the command line to add to the command filecmdline="[$datetime] ENABLE_NOTIFICATIONS;$datetime"# append the command to the end of the command file`$echocmd $cmdline >> $CommandFile`

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -