/usr/local/nagios/var/nagios.log does not seem to contain the host / service descriptions & Host Group. I was wondering if this was possible to add manually.
And on another note I don't believe Host / service Description is being Sent via the SNMP Trap Sender either. We had the same issue with Host Group not being sent via SNMP but with your guidance we got that resolved: http://support.nagios.com/forum/viewtop ... 16&t=31233
Could we do the same with the host / service descriptions to add them to the SNMP sender? I saw a Service Description Macro listed in the link on the other thread but nothing for the Host Description unless it's $HOSTNOTES$ But I'm not sure that's the right variable.
http://nagios.sourceforge.net/docs/nagi ... olist.html (link referenced from older thread)
Tweaking contents written to nagios.log?
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Re: Tweaking contents written to nagios.log?
Are these the macros you are looking for?
Code: Select all
$HOSTALIAS$ Long name/description for the host. This value is taken from the alias directive in the host definition.
$SERVICEDESC$ The long name/description of the service (i.e. "Main Website"). This value is taken from the service_description directive of the service definition.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
JakeHatMacys
- Posts: 281
- Joined: Thu Sep 25, 2014 3:21 pm
Re: Tweaking contents written to nagios.log?
Yes on Service Desc. But for Host Alias it's not clear... Taken from alias directive? We're looking for the Description in Core, if that's is it then yes....tgriep wrote:Are these the macros you are looking for?
Code: Select all
$HOSTALIAS$ Long name/description for the host. This value is taken from the alias directive in the host definition. $SERVICEDESC$ The long name/description of the service (i.e. "Main Website"). This value is taken from the service_description directive of the service definition.
So I'd want to pull in that it's a VBS device with that macro. Is that correct?
You do not have the required permissions to view the files attached to this post.
Re: Tweaking contents written to nagios.log?
It is a little confusing but the $HOSTALIAS$ macro is the Description field for the host settings.
Be sure to check out our Knowledgebase for helpful articles and solutions!