USERn macros in 2.0b4
Philip Chase
pbc at phhp.ufl.edu
Tue Oct 11 19:25:08 CEST 2005
OK, I get it now. That file is special and has a special variable name. I moved it back to /etc/nagios, adjusted /etc/nagios/nagios.conf to say "resource_file=/etc/nagios/resource.cfg" and now everything is happy.
Thanks,
Philip
>>> "Marc Powell" <marc at ena.com> 10/11/05 1:17 PM >>>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Philip Chase
> Sent: Tuesday, October 11, 2005 12:07 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] USERn macros in 2.0b4
>
> I am trying to use user-definable macros in Nagios 2.0b4 with no luck.
> This line:
>
> $USER1$=/usr/lib/nagios/plugins
>
> produces this error on my preflight check:
>
> Error: Unexpected token or statement in file
> '/etc/nagios/local/resource.cfg' on line 26.
>
> Did the syntax for defining user-definable macros change in 2.x? I
can't
No. Is /etc/nagios/local/resource.cfg defined as a cfg_file (incorrect)
or resource_file (correct) in nagios.cfg?
http://nagios.sourceforge.net/docs/2_0/configmain.html#resource_file
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list