I saw a few URL check templates out there but I needed one that did NTLM authentication and was granular enough to catch ms responses.
Attached is the Perl script, template export and a screenshot.
Import the xml file and place the Perl script in your scripts dir. You will have to edit the Perl script to enter your NTLM auth account to use (I just created a limited user which is only used for monitoring)
Once installed pick a host and create the graph, it will prompt you for authentication type, match pattern and URL.
Auth Type: basic or ntlm
URL: /your/url/page.htm
Match: string or "string string"
TODO:
1) The script seems to break when there is an & in the url string I tried various things like "url_string", and quoting it in the data input method but neither seemed to work. If anyone has any advice on how to handle special characters passed to a script let me know.
2) I want to put the URL and match pattern into the graph legend, I wanted to know if you can pull it directly from cacti as variables or if I would have to modify my script to send those as outputs and try to use them that way?
URL Response and Pattern match
Moderators: Developers, Moderators
URL Response and Pattern match
- Attachments
-
- screenshot
- curlGet.jpg (23.89 KiB) Viewed 2152 times
-
- curlGet.pl
- script
- (1.11 KiB) Downloaded 138 times
-
- cacti_graph_template_url_query_response.xml
- graph template
- (9.31 KiB) Downloaded 169 times
Who is online
Users browsing this forum: No registered users and 2 guests