a3rd / molniya

Automatically exported from code.google.com/p/molniya
GNU General Public License v2.0
0 stars 0 forks source link

Unable to parse nagios custom object variables in upper-case #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by matt.h...@gmail.com on 16 Apr 2010 at 3:03

GoogleCodeExporter commented 9 years ago
also nagios.rb line 70

Original comment by matt.h...@gmail.com on 16 Apr 2010 at 4:39

GoogleCodeExporter commented 9 years ago
Thanks for catching this. It's fixed in revision 35.

Original comment by cswhee...@gmail.com on 21 Apr 2010 at 8:33