Custom variables returning "$"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
whjsmith
Posts: 24
Joined: Thu Dec 29, 2011 12:34 pm

Custom variables returning "$"

Post by whjsmith »

I am having problems where the value for my custom variables is not being passed to the command properly.

Here is the command that I have setup:
Capture.PNG
Here is the template we have added it to:
Capture1.PNG
Here is the service check we attached it to and its custom variables:
Capture2.PNG
For some odd reason it fails because the custom variables aren't recognized and just return a value of "$". It is kind of confusing because we have used the same thing for other checks for drive space and cpu. It works flawlessly. For some reason we are having all sorts of problems with this web check. Any ideas why the command is only getting the $ for a value for the variables?
You do not have the required permissions to view the files attached to this post.
Our installation is currently:
CentOS Linux release 6.0 (Final)
32 bit
VM Image
Special Configurations: No
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom variables returning "$"

Post by scottwilkerson »

use

Code: Select all

$_SERVICEURL$
instead of

Code: Select all

$_URL$
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
whjsmith
Posts: 24
Joined: Thu Dec 29, 2011 12:34 pm

Re: Custom variables returning "$"

Post by whjsmith »

well I feel stupid haha.. thanks for the quick response!
Our installation is currently:
CentOS Linux release 6.0 (Final)
32 bit
VM Image
Special Configurations: No
Locked