下载发信客户端,解压
wget http://www.it-adv.net/fetion/downng/fetion20090406003-linux.tar.gz
./fetion -h
./fetion: error while loading shared libraries: libACE-5.6.8.so: cannot open shared object file: No such file or directory
ldd fetion
linux-gate.so.1 => (0×0042d000)
libACE-5.6.8.so => not found
libACE_SSL-5.6.8.so => not found
libssl.so.0.9.8 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0×068b4000)
libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0×00c6a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0×0677a000)
libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0×00b21000)
/lib/ld-linux.so.2 (0×00afe000)
libcrypto.so.0.9.8 => not found
下载官方链接库
wget http://www.it-adv.net/fetion/downng/library_linux.tar.gz
解压缩拷贝到相应位置
测试正常
./fetion –sid=飞信号 –pwd=密码 –to 手机号 –msg-gb=”hello,test message”
修改resource.cfg,添加
$USER6$=/path/to/fetion/ (注意权限)
修改commands.cfg
添加
define command{
command_name notify-service-by-fetion
command_line $USER6$/fetion –sid 飞信号码 –pwd passwd –to $CONTACTPAGER$ –msg-gb “$HOSTNAME$ $SERVICEDESC$ is $SERVICESTATE$ on $TIME$ result is $SERVICEOUTPUT$”
}
修改contacts.cfg
define contact{
……
service_notification_commands notify-service-by-email,notify-service-by-fetion
…..
}
重启nagios服务
service nagios reload
