I'm trying to run a check on a website we have that a) has a stupidly long 
generated path and b) insists it is available only to certain browers.
If I run /usr/local/nagios/check_http -p 8000 -H some.host.co.uk -u 
"/sap/bc/webdynpro/sap/hrrcf_a_unreg_job_search?sap-wd-configId=ZUNREG_JOB_SEARCH&sap-ep-themeroot=/sap/public/bc/ur/customerthemes/sap_kp"
 -A "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.9) Gecko/20061206 
Firefox/1.5.0.9" -R fs_QE2_00
it comes back fine and tells me that it can read the string fs_QE2_00 on the 
page OK. If I put exactly the same command into my command definition file the 
accompanying service simply goes red with a status definition of null. If I 
then drop the -A string it will now work, although it now gives the expected 
500 error of browser not supported. I have tried simplifying the -A string but 
the web site requires pretty much all of it else it 500 errors. Has anyone any 
idea why the Agent string works when check_http  is run directly but not 
through Nagios?
 
Thanks
 
Paul
 

-- 
This email and any accompanying document(s) contain information from Kent 
Police, which is confidential or privileged.
The information is intended to be for the exclusive use of the individual(s) or 
bodies to whom it is addressed.
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution or use of the contents of this information is prohibited.
If you have received this email in error, please notify us immediately by 
contacting the sender or telephoning 01622 690690.
The copyright in the contents of this email and any enclosure is the property 
of Kent Police and any unauthorised reproduction or disclosure is contrary to 
the provisions of the Copyright Designs and Patents Act 1998.
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to