Service Commands 中Enable notifications for this service时报错
Sorry Dave, I can't let you do that...
It seems that you have chosen to not use the authentication functionality of the CGIs.
I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios,so you'll have to disable this safeguard if you are really stubborn and want to invite trouble.
Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to.
修改cgi.cfg文件
修改use_authentication=1 (默认) ,如果没有添加,重启nagios服务。
4.
is not allowed to connect to this MySQL server
server(nagios服务端192.168.0.132) #/usr/local/nagios/libexec/check_mysql -H 192.168.0.207 -u root -p xukixu 此时可能会出现错误:Host '192.168.0.132' is not allowed to connect to this MySQL server
因此只要在客户端做个mysql授权用户访问即可 2、client(客户端192.168.0.207) #mysql -uroot -pabcd mysql>grant all privileges on *.* to identified by 'abcd; mysql>flush privileges; mysql>quit;