Adding multiple services when creating a ServiceSet ?

10 views
Skip to first unread message

William Pool

unread,
Nov 17, 2016, 3:56:11 PM11/17/16
to nagrestconf-users
I want to create a LINUX serviceset that has three checks in it:

How would I go about that with the nrcq calls?

{{ nrcq_bin }} {{ nagrestconf_url }} add/servicesets -j -d name:'DEV-LINUX' -d svcdesc:'DISK-/' -d template:'service-dev' -d command:'check_snmp_linux_disk!$_HOSTCOMMUNITY!/!85%!95%!' "


Is as far as I can get with one, but if I wanted to add another one named LOAD how would I add it to the DEV-LINUX serviceset?

Thanks!

Mark Clarkson

unread,
Nov 18, 2016, 9:38:52 AM11/18/16
to nagrestc...@googlegroups.com
Hi!
Just keep adding to the same 'name'. You'll notice that if you delete the last one then the service set will vanish. There is no service set really, it's a service with an extra field with the name of the service set.

For example, these create two serviceset items in the same service set:

./nrcq http://127.0.0.1:8888/rest add/servicesets -j -d name:'DEV-LINUX' -d svcdesc:'DISK-/' -d template:'svctmpl-lin' -d command:'check_snmp!$_HOSTCOMMUNITY!/!85%!95%!'

./nrcq http://127.0.0.1:8888/rest add/servicesets -j -d name:'DEV-LINUX' -d svcdesc:'PING' -d template:'svctmpl-lin' -d command:'check_ping!100.0,20%!500.0,60%'

Cheers!
Mark
--
You received this message because you are subscribed to the Google Groups "nagrestconf-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nagrestconf-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Pool

unread,
Nov 18, 2016, 12:48:58 PM11/18/16
to nagrestconf-users
That worked thanks!
Reply all
Reply to author
Forward
0 new messages