How to check a service in all hosts with external commands?
Posted: Mon Feb 25, 2019 7:01 am
Hi!!
thanks in advance!
I would like to schredule to check an service in ALL hosts (with externals commands).
would it be posible with "*" ?
I can´t find an external commnad that doesn´t need enter the host name like:
thats writes in log:
thanks in advance!
I would like to schredule to check an service in ALL hosts (with externals commands).
would it be posible with "*" ?
I can´t find an external commnad that doesn´t need enter the host name like:
Code: Select all
echo "[%lu] SCHEDULE_SVC_CHECK;*;Disk space;1110741500\n" `date +%s` > /opt/nagios/var/rw/nagios.cmd
Code: Select all
[1551095994] Error: External command failed -> SCHEDULE_SVC_CHECK;Disk space;1110741500\n 1551095994
[1551095994] External command error: Command failed