[Apan-users] Parsing arguments to an apan plugin
Status: Beta
Brought to you by:
useless
|
From: tfinez <tf...@et...> - 2006-09-12 09:54:06
|
Hi! I'm creating a plugin for apan and i would like to pass an argument t=
o=20
the plugin, something like that
define service{
use generic-service
host_name kombu
service_description memory-usage-2
is_volatile 0
contact_groups tests
check_command apan!control_snmp!30
}
define serviceextinfo{
host_name kombu
service_description memory-usage-2
notes_url =20
/cgi-bin/apan.cgi?host=3Dkombu&service=3Dmemory-usage-2
icon_image graph.png
icon_image_alt Stats
}
*I don't know which is the global variable that have the value 30. How=20
can I access to this value????
*Additional info:
I have defined apan in checkcommands.cfg as
define command {
command_name apan
command_line /usr/local/nagios/apan/apan.sh $ARG1$ $HOSTNAME$=20
$SERVICEDESC$ $TIMET$ $ARG2$ $ARG3$
}
I've intented to see the values of $ARG1,$ARG2,$ARG3 but are empty.
A lot of thanks
tfinez
Serveis Inform=E0tics
UPC (Barcelona)
|