Access Token ID

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
shahnn28
Posts: 4
Joined: Wed Jan 23, 2013 5:13 pm

Access Token ID

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Access Token ID

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked