[mrtg] Problem template MRTG for VMWare
Steve Shipway
s.shipway at auckland.ac.nz
Thu Apr 28 00:31:13 CEST 2016
I recognise this MRTG file; this is one of my templates from the check_esx plugin for MRTG & Nagios.
You need to replace the various %COMMUNITY%, %LHNAME% etc symbols with their actual values before you use it. This is NOT a cfgmaker template, it is designed to be used with our custom inhouse templating system.
COMMUNITY – SNMP community
LHNAME – the long (FQDN) hostname
SHNAME – the short hostname
OPTA – the VM name (see the initial defaults comment)
OPTB – the warn threshold, eg 80%
OPTC – critical threshold, eg 90%
Note that the check_esx is pretty old; we found it had very poor performance in large installations. We now use a special agent that links the VirtualCentre to Nagios(via Livestatus) and MRTG(via rrdcached) and dynamically builds the configuration files as it goes; I’ve not yet released this to the public, though
Steve
Steve Shipway
T: +64 9 3737 599 ext 86487
E: <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz
From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of Andrea Ruggeri
Sent: Wednesday, 27 April 2016 10:01 p.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Problem template MRTG for VMWare
Good morning guys,
I'm trying to track my VMWare system, but finding these errors.
Who can help me ?!
Thank you,
Andrew
P.S. - This template is attached to an email.
…
"Syntax error at (eval 12) line 10, near" [ "
Global symbol "% SHNAME" requires explicit package name at (eval 12) line 10.
Global symbol "% OPTA" requires explicit package name at (eval 12) line 10.
Global symbol "% SHNAME" requires explicit package name at (eval 12) line 11.
Global symbol "% OPTA" requires explicit package name at (eval 12) line 11.
Global symbol "% SHNAME" requires explicit package name at (eval 12) line 11.
Global symbol "% OPTA" requires explicit package name at (eval 12) line 11.
Global symbol "% SHNAME" requires explicit package name at (eval 12) line 12.
Global symbol "% OPTA" requires explicit package name at (eval 12) line 12.
Global symbol "% SHNAME" requires explicit package name at (eval 12) line 13.
Global symbol "% OPTA" requires explicit package name at (eval 12) line 13.
(Eval 12) has too many errors.
"
exiting cfgmaker
root @ nagios51: /etc/mrtg.d#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160427/8fabd810/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5334 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20160427/8fabd810/attachment.bin>
More information about the mrtg
mailing list