Where exactly is Nagios calling the macros from? Is there a file that it references?
Please advise?
Thanks,
~klee
location of macros file
Re: location of macros file
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.
"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.
Re: location of macros file
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
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
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
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.
"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.
Re: location of macros file
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
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
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.