Open mclarkson opened 8 years ago
When looking to the code just wondering why you do URL encode of the result data in the REST API? The resulting data are encapsulated in the JSON anyway, so why to do the urlencode? :)
I’m checking how to do the urldecode, it’s quite a lot of cpu cycles to iterate through full resultset and doing decode everywhere… :(
Fixed by urldecoding of the whole result json string... Nasty, but no iterations needed :)
Sorry, it's broken now :(
./nagrestconf.py -s $URL -r show/services -f 'svcdesc:Swap'
# AND
./nagrestconf.py -s $URL -r show/services
Produces an error message on stderr starting with:
2015-10-11 21:21:51,530 [ERROR] Unable to parse server response: [[{"name":"diskstation"},{"temp...
Please check the help/changelog. Field separator has been changed to = instead of : I presume that the probability of usage of character = in the description is way lower than usage of : Lets see if someone is also using char = and in that cas I’ll start doing some active processing of such case.
Please send me the full error message, the second command works for me correctly. I can imagine that the only case when the things could be broken is in case you would be using character " in any of the values. Are you?
Yep, I noticed the change, I pasted the wrong line. In my setup it does not work :(
This works:
./nagrestconf.py -s $URL -r show/services -d 'filter=Swap,column=4'
These don't:
$ ./nagrestconf.py -s $URL -r show/services -d 'filter=Processes: Zombies,column=4'
2015-10-12 08:37:49,920 [ERROR] Unable to process the request! Exiting.
Traceback (most recent call last):
File "./nagrestconf.py", line 447, in <module>
if isinstance(ret[1][0], (list, tuple)):
IndexError: list index out of range
$ ./nagrestconf.py -s $URL -r show/services -d 'filter=Num Users,column=4'
2015-10-12 08:39:11,764 [ERROR] Unable to process the request! Exiting.
Traceback (most recent call last):
File "./nagrestconf.py", line 447, in <module>
if isinstance(ret[1][0], (list, tuple)):
IndexError: list index out of range
And none of these work:
./nagrestconf.py -s $URL -r show/services -f 'svcdesc=Processes: Zombies'
./nagrestconf.py -s $URL -r show/services -f 'svcdesc=Swap'
./nagrestconf.py -s $URL -r show/services
I think the error messages are all identical, but the error message for the first is shown below:
2015-10-12 08:31:25,677 [ERROR] Unable to parse server response: [[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_cpu.sh%21-i+4+-w+75+-c+90"},{"svcdesc":"CPU"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":"0"},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_dns%21-w+1+-c+5+-t+30+-H+www.google.com"},{"svcdesc":"DNS"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_fs_ro.sh"},{"svcdesc":"Read-write+filesystems"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_iftraffic_nrpe.sh%21-D+lo+-p+-k+-d+-s+100+-w+90"},{"svcdesc":"NIC+Performance"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_load%21-r+-w+10%2C8%2C1.5+-c+30%2C20%2C4"},{"svcdesc":"Load"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":"0"},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_mem.pl%21-w+90+-c+96"},{"svcdesc":"Memory"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_nagios_config%21-p+-c+%2Fetc%2Fnagios3%2Fnagios.cfg+-n+%2Fusr%2Fsbin%2Fnagios3+-W+100"},{"svcdesc":"Nagios+config"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_ntp%21-H+0.centos.pool.ntp.org+-w+0.5+-c+1.0"},{"svcdesc":"NTP+Time"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_ping%21100.0%2C20%25%21500.0%2C60%25"},{"svcdesc":"PING"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":""},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_procs%21-w+40+-c+80+-s+Z"},{"svcdesc":"Processes%3A+Zombies"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_ssh"},{"svcdesc":"SSH"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":""},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_statusdat_latency%21-s+%2Fvar%2Fcache%2Fnagios3%2Fstatus.dat"},{"svcdesc":"Check+latency"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_svc_cluster_table%212%21%24SERVICESTATEID%3Adiskstation%3ALoad%24%2C+%24SERVICESTATEID%3Adiskstation%3ACPU%24%2C+%24SERVICESTATEID%3Adiskstation%3ASwap+Activity%24%21-t+1%2C1%2C1+-t+0%2C1%2C1+-t+1%2C0%2C1+-t+0%2C0%2C1"},{"svcdesc":"System+Performance"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_swap%21-w+10%25+-c+5%25"},{"svcdesc":"Swap"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_uptime3%21-w+1020"},{"svcdesc":"Uptime"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_users%21-w+15+-c+20"},{"svcdesc":"Num+Users"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_swap_activity%21-d+10+-w+100+-c+1000"},{"svcdesc":"Swap+Activity"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":"0"},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_disk%21-w+10%25+-c+5%25+-p+%2Fvolume1+-p+%2F+-x+%2Fvolume1%2Fnagios-chroot%2Fvolume1"},{"svcdesc":"Disk+space"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"sudo5%21check_logfiles+-tag%3Dlog+-criticalpattern%3D%22error%22+-logfile%3D%2Fvar%2Flog%2Fsyslog+-criticalexception%3D%22SYNO%22+-rotation%3Dloglog0log1+-nocase"},{"svcdesc":"Logcheck%3A+Messages"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-contacts"},{"command":"check_http_iceberg_transcodequeuelength%21%2Fstatus%21TranscodesQueueLength%3A+0"},{"svcdesc":"Transcode+Queue"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"1"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}]]
Failed with reason: Unable to parse server response: [[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_cpu.sh%21-i+4+-w+75+-c+90"},{"svcdesc":"CPU"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":"0"},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_dns%21-w+1+-c+5+-t+30+-H+www.google.com"},{"svcdesc":"DNS"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_fs_ro.sh"},{"svcdesc":"Read-write+filesystems"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_iftraffic_nrpe.sh%21-D+lo+-p+-k+-d+-s+100+-w+90"},{"svcdesc":"NIC+Performance"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_load%21-r+-w+10%2C8%2C1.5+-c+30%2C20%2C4"},{"svcdesc":"Load"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":"0"},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_mem.pl%21-w+90+-c+96"},{"svcdesc":"Memory"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_nagios_config%21-p+-c+%2Fetc%2Fnagios3%2Fnagios.cfg+-n+%2Fusr%2Fsbin%2Fnagios3+-W+100"},{"svcdesc":"Nagios+config"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_ntp%21-H+0.centos.pool.ntp.org+-w+0.5+-c+1.0"},{"svcdesc":"NTP+Time"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_ping%21100.0%2C20%25%21500.0%2C60%25"},{"svcdesc":"PING"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":""},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_procs%21-w+40+-c+80+-s+Z"},{"svcdesc":"Processes%3A+Zombies"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_ssh"},{"svcdesc":"SSH"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":""},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_statusdat_latency%21-s+%2Fvar%2Fcache%2Fnagios3%2Fstatus.dat"},{"svcdesc":"Check+latency"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_svc_cluster_table%212%21%24SERVICESTATEID%3Adiskstation%3ALoad%24%2C+%24SERVICESTATEID%3Adiskstation%3ACPU%24%2C+%24SERVICESTATEID%3Adiskstation%3ASwap+Activity%24%21-t+1%2C1%2C1+-t+0%2C1%2C1+-t+1%2C0%2C1+-t+0%2C0%2C1"},{"svcdesc":"System+Performance"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_swap%21-w+10%25+-c+5%25"},{"svcdesc":"Swap"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_uptime3%21-w+1020"},{"svcdesc":"Uptime"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_users%21-w+15+-c+20"},{"svcdesc":"Num+Users"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":""},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_swap_activity%21-d+10+-w+100+-c+1000"},{"svcdesc":"Swap+Activity"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":"0"},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"check_disk%21-w+10%25+-c+5%25+-p+%2Fvolume1+-p+%2F+-x+%2Fvolume1%2Fnagios-chroot%2Fvolume1"},{"svcdesc":"Disk+space"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-lin"},{"command":"sudo5%21check_logfiles+-tag%3Dlog+-criticalpattern%3D%22error%22+-logfile%3D%2Fvar%2Flog%2Fsyslog+-criticalexception%3D%22SYNO%22+-rotation%3Dloglog0log1+-nocase"},{"svcdesc":"Logcheck%3A+Messages"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"0"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}],[{"name":"diskstation"},{"template":"svctmpl-contacts"},{"command":"check_http_iceberg_transcodequeuelength%21%2Fstatus%21TranscodesQueueLength%3A+0"},{"svcdesc":"Transcode+Queue"},{"svcgroup":""},{"contacts":""},{"contactgroups":""},{"freshnessthresh":""},{"activechecks":"1"},{"customvars":""},{"disable":"1"},{"displayname":""},{"isvolatile":""},{"initialstate":""},{"maxcheckattempts":""},{"checkinterval":""},{"retryinterval":""},{"passivechecks":""},{"checkperiod":""},{"obsessoverservice":""},{"manfreshnessthresh":""},{"checkfreshness":""},{"eventhandler":""},{"eventhandlerenabled":""},{"lowflapthresh":""},{"highflapthresh":""},{"flapdetectionenabled":""},{"flapdetectionoptions":""},{"processperfdata":""},{"retainstatusinfo":""},{"retainnonstatusinfo":""},{"notifinterval":""},{"firstnotifdelay":""},{"notifperiod":""},{"notifopts":""},{"notifications_enabled":""},{"stalkingoptions":""},{"notes":""},{"notes_url":""},{"action_url":""},{"icon_image":""},{"icon_image_alt":""},{"vrml_image":""},{"statusmap_image":""},{"coords2d":""},{"coords3d":""}]]
Just for reference these are the only fields that need extra url encoding:
# from nagrestconf-golib/data.go
m["hosts"] = []string{"command"}
m["services"] = []string{"name", "command", "svcdesc"}
m["servicesets"] = []string{"name", "command", "svcdesc"}
m["hosttemplates"] = []string{"checkcommand", "action_url"}
m["servicetemplates"] = []string{"action_url"}
m["commands"] = []string{"name", "command"}
I wrote a golang binding but this library would be more useful for scripting.
Following on from issue #2:
I look in the nagrestconf GUI and see the service, 'Swap'. I want to see this with nagrestconf-python, so I use a nagrestconf-python filter and type:
In response I get:
The command is shown in url encoded form. It would be nice if it was shown in the decoded form, as it is shown in the nagrestconf GUI.
If this issue and issue #2 are implemented then it would be intuitive, the user never needs to do urlencode or urldecode, and it will look nicer in documentation :)