On Tue, 2016-10-25 at 11:40 -0700, William Pool wrote:
Howdy! I'm trying to add a service check for various domains we have. When I try to add the following service to the host domain-checker:
nrcq http://localhost/rest add/services -d name:domain-checker \
-d command:"check_domain_expire!foo.com" \
-d svcdesc:"foo.com domain expiration check" \
-d checkinterval:'90' \
-d retryinterval:'30' \
-d maxcheckattempts:'3'
I get the following:
ERROR: Status (400): ["NAGCTL ERROR: Invalid data. A required field is empty."]
What's the magic field here?
Hi! Show only required fields:
$ nrcq -l services | grep -o '\*[a-z]*'
*command
*name
*svcdesc
*template
So, you need to specify the service template.