Referencing resource.cfg variable in SNMP COMMUNITY

Bonnie Backstrom Bonnie.Backstrom at neovera.com
Thu Jun 16 22:01:03 CEST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110616/69b3e14a/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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