[Nagios-devel] 3.0b6 custom macros

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
Guest

[Nagios-devel] 3.0b6 custom macros

Post by Guest »

I tried to use custom macros in service commands. But it seams that they
doesn't work. The command script is perl and makes only a simple print
@ARGV; for testing.=20

The Result is: -H192.168.111.237--ram95/100--vram25/75-c$-v$.

I tried the custom macros in service definition too, but I got the same
result.=20

Configuration snipe:

define host{
host_name 75153735-9c5b-477a-a2c1-dd2ffe72bcd8
address 192.168.111.78
.
.
.
_SNMPversion 2
_SNMPcommunity public
}

define service{
host_name 75153735-9c5b-477a-a2c1-dd2ffe72bcd8
service_description fd308203-ab96-4792-9dee-4f9e75644a71
check_command 959c8fec-5af9-44b4-95f1-820839c1ef60!101/101!25/50
.
.
.
}

define command{
command_name 959c8fec-5af9-44b4-95f1-820839c1ef60
command_line $USER1$/check_memory -H $HOSTADDRESS$ --ram $ARG1$ --vram
$ARG2$ -c $_HOSTSNMPcommunity$ -v $_HOSTSNMPversion$
}

System 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 i686
GNU/Linux ubuntu 7.10.

Can someone help?





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked