Curl problem in Nagios core 3.5.1

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
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Curl problem in Nagios core 3.5.1

Post by cesar.garza »

Hey guys
I am facing a weird problem that i haven't seen it before. i used to had nagios 3.4.4 version and now i moved to nagios core 3.5.1. I moved all my customize scripts to new nagios and everything is working except one script(activemq). When i tested this script from command line, it gave me the response. However, when i hook it up with service.cfg and command.cfg, it throws the error like "null". I debug it and found this error curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information.

script download it from :
http://exchange.nagios.org/directory/Pl ... or/details
Attachments
ran the script from command line
ran the script from command line
command.cfg file
command.cfg file
command.jpg (7.65 KiB) Viewed 1435 times
Service.cfg file
Service.cfg file
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Curl problem in Nagios core 3.5.1

Post by tmcdonald »

It looks like the plugin is trying to interpret "-a" as the URL. I didn't see any switches for that plugin. Is there a reason you have it included? Try removing it from the command_line entry in your config file and see if this works.
Former Nagios employee
Locked