配置NSClient用于监控window时的一些错误
问题1:
当你配置好Commands.cfg时,重启nagios时提示以下错误:
``````````
Warning: Duplicate definition found for command 'check_nt' (config file '/etc/nagios-plugins/config/nt.cfg', starting on line 6) Error: Could not add object property in file '/etc/nagios-plugins/config/nt.cfg' on line 7. Error processing object config files! ```````````
大概意思是警告:重复定义发现check_nt '命令'
解决方法:系统已经帮你定义了ckeck_nt这个命令,所以,你将你自己重新定义的去掉即可
问题2:
配置好commands和services时,重启发现如下错误提示
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration
解决方法:
# vi /etc/init.d/nagios 将$NagiosBin -v $NagiosCfgFile > /dev/null 2>&1;——>$NagiosBin -v $NagiosCfgFile;