How can i get contactgroupnames in the performance data?

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
isaac
Posts: 1
Joined: Mon Oct 04, 2010 9:26 am

How can i get contactgroupnames in the performance data?

Post by isaac »

I define the host info and define the nagios.cfg file .
I did'nt get any info about contact_groups info.
How can i get $CONTACTGROUPNAMES$ or $CONTACTGROUPALIAS$ infomation in performance data about define in the hosts.cfg

########hosts######
define host{
host_name Paint
use TempLinuxLive
alias M_Linux_10.82.5.207
address 10.82.5.207
hostgroups HG_INT
contact_groups CG_OWNER_01, CG_OWNER_02, CG_OWNER_03

#######nagios.cfg#######

host_perfdata_file=/var/log/nagios/host-perfdata.log
service_perfdata_file=/var/log/nagios/service-perfdata.log
host_perfdata_file_template=CONTACTGROUPALIAS=$CONTACTGROUPALIAS$,CONTACTGROUPMEMBERS=$CONTACTGROUPMEMBERS$,CONTACTADDRESS1=$CONTACTADDRESS1$,CONTACTGROUPNAME=$CONTACTGROUPNAME$,CONTACTGROUPNAMES=
$CONTACTGROUPNAMES$
service_perfdata_file_template=CONTACTGROUPALIAS=$CONTACTGROUPALIAS$,CONTACTGROUPMEMBERS=$CONTACTGROUPMEMBERS$,CONTACTADDRESS1=$CONTACTADDRESS1$,CONTACTGROUPNAME=$CONTACTGROUPNAME$,CONTACTGROUPNAMES=
$CONTACTGROUPNAMES$
host_perfdata_file_mode=a
service_perfdata_file_mode=a
host_perfdata_file_processing_interval=30
service_perfdata_file_processing_interval=30
host_perfdata_file_processing_command=process-host-perfdata-file-npcd
service_perfdata_file_processing_command=process-service-perfdata-file-npcd
Locked