How to test user macros from resource.cfg
Posted: Tue Jun 11, 2013 6:50 pm
I have added an entry in /usr/local/nagios/etc/resource.cfg as follows:
$USER9$=FindMe
and then I restarted nagios
/sbin/service nagios restart
To test, I am running
/usr/local/nagios/libexec/check_mssql -H <fqdn of host> -U Bob -P $USER9$ -p 1576
Running a packet trace on the host does not show "FindMe" being passed in with the username.
Conversely, if I run
/usr/local/nagios/libexec/check_mssql -H <fqdn of host> -U Bob -P FindMe -p 1576
The packet trace show the string "FindMe" where I would expect it.
How can I troubleshoot the USERn macros from resource.cfg?
Thank you
David Summers
$USER9$=FindMe
and then I restarted nagios
/sbin/service nagios restart
To test, I am running
/usr/local/nagios/libexec/check_mssql -H <fqdn of host> -U Bob -P $USER9$ -p 1576
Running a packet trace on the host does not show "FindMe" being passed in with the username.
Conversely, if I run
/usr/local/nagios/libexec/check_mssql -H <fqdn of host> -U Bob -P FindMe -p 1576
The packet trace show the string "FindMe" where I would expect it.
How can I troubleshoot the USERn macros from resource.cfg?
Thank you
David Summers