Referencing resource.cfg variable in SNMP COMMUNITY

Yueh-Hung Liu yuehung.liu at gmail.com
Fri Jun 17 03:40:21 CEST 2011


i think macros can only be used in command definition.
if all remote hosts' snmp strings have been modified, changing of snmp
community name for checking is not so difficult since you only have to
modify some configuration files on nagios monitor instead of every
remote hosts.


On Fri, Jun 17, 2011 at 4:01 AM, Bonnie Backstrom
<Bonnie.Backstrom at neovera.com> wrote:
> Submitted this to NConf forums and they advised this is a Nagios question:
>
>
>
> Is it possible to reference a variable defined in resource.cfg (ie; $USER5$
> = abc) in _SNMP_COMMUNITY?
>
> We would like to be able to modify all hosts SNMP strings with a single
> entry rather than having to do so across all hosts. And of course still be
> able to use $_HOSTSNMP_COMMUNITY$ in our service checks so that
> $_HOSTSNMP_COMMUNITY$ = _SNMP_COMMUNITY = $USER5$ = abc, thus having Nagios
> read 'abc'.
>
>
>
> Does anyone know of an alternate approach to accomplish same?
>
> Our current version is Nagios 3.0.6 and NConf 1.2.5
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
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