Re: [nagrestconf-users] Defining a single service?

25 views
Skip to first unread message

Mark Clarkson

unread,
Oct 26, 2016, 5:25:15 AM10/26/16
to nagrestc...@googlegroups.com
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.

William Pool

unread,
Nov 17, 2016, 3:52:20 PM11/17/16
to nagrestconf-users

Got it thanks!
Reply all
Reply to author
Forward
0 new messages