access to notes_url through the GUI

26 views
Skip to first unread message

Cullen Philippson

unread,
Jan 20, 2016, 2:46:30 PM1/20/16
to nagrestconf-users
I can access the action_url via the web GUI but would like to access the notes_url as well.

I would like to use a nagios extension highcharts.

The install instructions call for the service notes_url to be edited as such:

notes_url    /highcharts/highcharts.html?host=$HOSTNAME$&srv=$SERVICEDESC$'

In the short term Is there a way to change this via REST and JSON?

Thank you,

Cullen

Mark Clarkson

unread,
Jan 20, 2016, 5:11:54 PM1/20/16
to nagrestconf-users
On Wednesday, 20 January 2016 19:46:30 UTC, Cullen Philippson wrote:
notes_url    /highcharts/highcharts.html?host=$HOSTNAME$&srv=$SERVICEDESC$'

In the short term Is there a way to change this via REST and JSON?

Thank you,

Cullen

Hi Cullen,
That field isn't encoded and probably should be, and would make sense in the UI, but, this works:

nrcq http://nagioshost/rest modify/hosts \
  -d name:diskstation \
  -d 'notes_url:/highcharts/highcharts.html?host=$HOSTNAME$%26srv=$SERVICEDESC$'

If you want it added to the UI then please create a github issue - thanks!

Cheers!
Mark
Reply all
Reply to author
Forward
0 new messages