Hello,
We have PostgreSQL clusters, which each postgreSQL instances have his LUN mounted who present his folder.
So i try to develop a host template with a macro DBNAME who is used on a service template to check specificaly the file system of one database and i want to use standard command from the centreon-plugins Linux NRPE3.
Context :
I set a new Resource :
$DBNAME$ = $_HOSTDBNAME$
On my Host Template i define my macro :
$_HOSTDBNAME$ = xxxxxxdb01
On the Service Tempate Disks inherit from OS-Linux-Disks-NRPE3-custom, i use the macro FILTERMOUNTPOINT
$_SERVICEFILTERMOUNTPOINT$ = /data/postgres/$DBNAME$
In my idea nagios mechanism could display the value of DBNAME from the Host macro, but it doesn’t work.
It’s possible to use a resource at service template level ? or it just used at the command level ?
Regards,
Greg