Page 1 of 1

Access Token ID

Posted: Tue Feb 05, 2013 2:01 pm
by shahnn28
Hi,

I was hoping to receive some help (I am sure it's gotta be a custom plugin, but I don't have any experience with programming).

I am trying to create a check that will do the following:

Using curl, retrieve the latest token ID. Once this token ID is retrieved, I would need to use something like sed to extract only the token ID itself from the curl command and insert this Token ID a check http with it checking the string.


Any assistance would be greatly appreciated.

Nik

Re: Access Token ID

Posted: Tue Feb 05, 2013 2:41 pm
by sreinhardt
Without knowing your exact situation, nagios exchange is likely your best option to find something that will work. One such option might be:

check_curl_authenticate

Otherwise you certainly could script that out and call check_http from within another script. Should not be too terrible to do.