Page 2 of 2

Re: macros return as $

Posted: Tue Apr 15, 2014 12:35 pm
by klee
I'm sorry Abrist... just a bit confused.

Why does Nagios provide macros to which there are no corresponding objects for in the MIB file?

Thanks,

-klee

Re: macros return as $

Posted: Wed Apr 16, 2014 10:23 am
by abrist
klee wrote: Why does Nagios provide macros to which there are no corresponding objects for in the MIB file?
I don't have the answer to this question - but I can make a guess: Because the the mibs were developed many years ago for a minimal number of macros. In the case of HOSTSTATE and HOSTSTATEID they essentially report the same information, just one in text, and the other in integers:
$HOSTSTATE$ A string indicating the current state of the host ("UP", "DOWN", or "UNREACHABLE").
$HOSTSTATEID$ A number that corresponds to the current state of the host: 0=UP, 1=DOWN, 2=UNREACHABLE.
http://nagios.sourceforge.net/docs/3_0/ ... oststateid

You could always open a feature request on github for new macros and we can look at updating the mib: https://github.com/nagios-plugins/nagios-mib

Re: macros return as $

Posted: Wed Apr 16, 2014 1:04 pm
by klee
Interesting... thank you Abrist.

-klee

Re: macros return as $

Posted: Wed Apr 16, 2014 3:30 pm
by tmcdonald
Did that clear things up for you? We do welcome all feature requests, so if this is something you really want to see in Core you can submit the request at tracker.nagios.org

IF that is all I would like to close this thread up. Let us know.

Re: macros return as $

Posted: Fri Apr 18, 2014 9:15 am
by klee
Thanks Tmcdonald,

Somewhat... Looks like we'll have to really study up on the macros in order to get them to work properly.

Yes, please feel free to close this thread.

Much Appreciated.

-klee