3.0b6 custom macros
Unger, Christian
c.unger at st-ag.de
Thu Nov 8 13:44:39 CET 2007
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.
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.
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 SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
More information about the Developers
mailing list