配置完nagios时,报如下错误: 

 
  
  1. Error: Contact group 'sagroup' specified in service 'Current Load' for host 'localhost' is not defined anywhere! 
  2.  
  3. Error: Contact group 'sagroup' specified in service 'Current Users' for host 'localhost' is not defined anywhere! 
  4. Error: Contact group 'sagroup' specified in service 'HTTP' for host 'localhost' is not defined anywhere! 
  5. Error: Contact group 'sagroup' specified in service 'PING' for host 'localhost' is not defined anywhere! 
  6. Error: Contact group 'sagroup' specified in service 'Root Partition' for host 'localhost' is not defined anywhere! 
  7. Error: Contact group 'sagroup' specified in service 'SSH' for host 'localhost' is not defined anywhere! 
  8. Error: Contact group 'sagroup' specified in service 'Swap Usage' for host 'localhost' is not defined anywhere! 
  9. Error: Contact group 'sagroup' specified in service 'Total Processes' for host 'localhost' is not defined anywhere!  
解决:
 
  
  1. 将templates.cfg配置中的admins组更改为contactgroups.cfg中定义的sagroup   
  2.   
  3. 或者把定义的vi objects/services.cfg 中contact_groups sagroup 改为admins 
如果这篇文章帮助到了你,请不要吝啬你的回复!