macros return as $

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: macros return as $

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: macros return as $

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: macros return as $

Post by klee »

Interesting... thank you Abrist.

-klee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: macros return as $

Post 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.
Former Nagios employee
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: macros return as $

Post 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
Locked