Page 1 of 1
location of macros file
Posted: Mon Apr 07, 2014 6:51 am
by klee
Where exactly is Nagios calling the macros from? Is there a file that it references?
Please advise?
Thanks,
~klee
Re: location of macros file
Posted: Mon Apr 07, 2014 10:20 am
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
Re: location of macros file
Posted: Mon Apr 07, 2014 2:10 pm
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
Re: location of macros file
Posted: Mon Apr 07, 2014 2:58 pm
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
Re: location of macros file
Posted: Tue Apr 08, 2014 1:30 pm
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
Re: location of macros file
Posted: Tue Apr 08, 2014 1:47 pm
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.