Service add via CLI
Posted: Fri Nov 30, 2018 2:51 am
Hi Team,
We have a project going on using mod-gearman and need to configure network devices in monitoring,
many devices have over 500 ports in there and we need to add it via using CCM and its getting very difficult to add. please help or give any soluion for this,
we have tried using API option but its giving kind a error is there any other way to this can we do auto discovery or add services in services.cfg file sort of it will help.
[root@Nagios ~]# curl -XPOST "http://IP/nagiosxi/api/v1/config/servic ... D&pretty=1" -d "host_name=test&service_description=bandwidth&check_command=check_bandwidth!htread 4" > 600 " " > 800 "!!!!!!!&check_interval=5&retry_interval=5&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
-bash: !htread: event not found
We have a project going on using mod-gearman and need to configure network devices in monitoring,
many devices have over 500 ports in there and we need to add it via using CCM and its getting very difficult to add. please help or give any soluion for this,
we have tried using API option but its giving kind a error is there any other way to this can we do auto discovery or add services in services.cfg file sort of it will help.
[root@Nagios ~]# curl -XPOST "http://IP/nagiosxi/api/v1/config/servic ... D&pretty=1" -d "host_name=test&service_description=bandwidth&check_command=check_bandwidth!htread 4" > 600 " " > 800 "!!!!!!!&check_interval=5&retry_interval=5&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7&applyconfig=1"
-bash: !htread: event not found