Export to GitHub

molniya - issue #17

Unable to parse nagios custom object variables in upper-case


Posted on Apr 16, 2010 by Quick Ox

What steps will reproduce the problem? 1. In nagios, have a custom object variable such as _SNMP 2. Start molniya

What is the expected output? What do you see instead?

./nagios.rb:109:in `parse_def': unexpected line: _SNMP (RuntimeError)

What version of the product are you using? On what operating system?

svn trunk r33

Please provide any additional information below.

nagios.rb line 104 has a regex,

/s*([a-z0-9_]+)\s+(.*)/

which (obviously) doesn't match upper-case custom object variables.

Custom Object Variables in Nagios are documented here: http://nagios.sourceforge.net/docs/3_0/customobjectvars.html

Comment #1

Posted on Apr 16, 2010 by Quick Ox

also nagios.rb line 70

Comment #2

Posted on Apr 21, 2010 by Happy Hippo

Thanks for catching this. It's fixed in revision 35.

Status: Verified

Labels:
Type-Defect Priority-Medium