location of macros file

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

location of macros file

Post by klee »

Where exactly is Nagios calling the macros from? Is there a file that it references?

Please advise?

Thanks,

~klee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: location of macros file

Post by abrist »

Nagios macros are populated by the engine and are context/object sensitive. What information are trying to collect, or task you wish to perform? You can find information about the standard macros at: http://nagios.sourceforge.net/docs/3_0/macrolist.html
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: location of macros file

Post by klee »

Thank you for replying, Abris.

As evident in my 2 other posts "macros returning as $" and "$SERVICESTATEID$ Macro", I'm having lots of trouble implementing event handlers using Macros.

I've gone through the standard documentation (http://nagios.sourceforge.net/docs/3_0/macrolist.html) but wasn't able find answers.

Therefore, I was hoping to examine how the file that defines macros to see how the logic is set up. I was unable to find it among any of the Nagios files.

Hopefully, your reply to my previous post "macros returning as $" may contain the fix for both issues. I'll definitely keep you posted on this.

Meanwhile, if you can please review our inquiry regarding passing alerts containing macros via SNMP in "$SERVICESTATEID$ Macro", I'd greatly appreciate it.

Thanks Again!!!

~klee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: location of macros file

Post by abrist »

No problem. I am currently setting up a test environment for your servicestateid post, so more news soon.
EDIT: Have you read our event handlers doc:
http://assets.nagios.com/downloads/nagi ... ndlers.pdf
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: location of macros file

Post by klee »

Thanks abrist,

I have examined the Introduction_to_Event_Handlers.pdf in some detail.

As I described in my reply to your post in the "macros returning as $" thread, the problem was caused by multiple issues.

Please do review my detailed reply in that thread.

Thank You,

~klee
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: location of macros file

Post by slansing »

I'm going to go ahead and close this as you are repeatedly referencing your other thread, we should cover your macro issues there instead of two places so information is not lost between the two.
Locked