Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 414 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 414 Bytes

nagios service checks based on host status

Check command:

define command {  
   command_name  setSvcStatusByHostStatus  
   command_line  /usr/lib/nagios/plugins/setservicebyhost -h $HOSTNAME$ -s $HOSTSTATEID$ -u $HOSTATTEMPT$ -a $MAXHOSTATTEMPTS$ -m o  
   register 1  
}  

for example in nagios.cfg

global_host_event_handler=setSvcStatusByHostStatus