Search found 17 matches

Return to advanced search

Empty Contacts fields in nagios core

I was wondering if there was a way to allow empty contacts and empty contact groups in nagios core?

Currently it errors out if they exist. I know there is an allow_empty_host_group boolean so I was wondering if this is possible/

Nagios 4 core.

Thanks.
by jlom
Tue Aug 28, 2018 2:49 pm
 
Forum: Nagios Core
Topic: Empty Contacts fields in nagios core
Replies: 1
Views: 267

Re: Inheritance doesn't seem to be working for config templa

Yeah, That was a typo on the post, the filenames were the same... I found the issue last night. It seems nagios will not parse the templates if there are existing config issues. In this case it was the empty "contacts" field We used it as a place holder in nagios 3 but apparently being emp...
by jlom
Tue Aug 14, 2018 8:13 am
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Re: Inheritance doesn't seem to be working for config templa

No, verified. grep -r systems-host /etc/nagios/objects/ /etc/nagios/objects/unix.ctx.cfg: name systems-host /etc/nagios/objects/unix.ctx.cfg: name systems-host-defaults /etc/nagios/objects/unix.ctx.cfg: use systems-host /etc/nagios/objects/hosts.cfg: use systems-host /etc/nagios/objects/hosts.cfg: u...
by jlom
Mon Aug 13, 2018 5:49 pm
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Re: Inheritance doesn't seem to be working for config templa

I've ensured the files are owned by nagios
I've ensured the names are not misspelled and syntax is correct.
All config files are called out in nagios.cfg
by jlom
Mon Aug 13, 2018 3:19 pm
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Re: Inheritance doesn't seem to be working for config templa

Code: Select all
define host {
host_name testbox1
contacts unix-pager
use systems-host
notification_interval 15
contact_groups systems-mailer
notification_period critical
}
by jlom
Mon Aug 13, 2018 3:18 pm
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Re: Inheritance doesn't seem to be working for config templa

I'm working off of this doc.

https://assets.nagios.com/downloads/nag ... tance.html

just wondering what i could be missing.
by jlom
Mon Aug 13, 2018 2:16 pm
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Re: Inheritance doesn't seem to be working for config templa

define host { host_name testhost1 use systems-host notification_interval 1440 contact_groups systems notification_period critical } The contacts fix is something I've already figured but have yet to implement. This host definition is configured to use "systems-host" as the template which ...
by jlom
Mon Aug 13, 2018 2:01 pm
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Re: Inheritance doesn't seem to be working for config templa

Hello, jlom . Please run the config verification command and show us the error message. /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Error: Empty value for contact_groups (config file '/etc/nagios/objects/services/grants.cfg', starting on line 19) Error: Could not add object pro...
by jlom
Mon Aug 13, 2018 5:44 am
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

Inheritance doesn't seem to be working for config templates

Inheritance doesn't seem to be working for my nagios core configs. I'm migrating from an old host to a new host which i've done before I try to start nagios and it yells at me that max_check_attempts isn't set Long story short, Here are some clips from my configs. from nagios.cfg cfg_file=/etc/nagio...
by jlom
Fri Aug 10, 2018 2:56 pm
 
Forum: Nagios Core
Topic: Inheritance doesn't seem to be working for config templates
Replies: 13
Views: 1280

check_http adding domain name to fqdn ?

Hi, I have a weird problem I can't figure out why this would be happening. I Have a site being checked with check_http every once in a while I am getting my domain added to the end of the FQDN. [2018-05-21T08:17:10] SERVICE ALERT: name.domain.com;HTTP-Port80-slower-site;CRITICAL;SOFT;1;Temporary fai...
by jlom
Mon May 21, 2018 9:25 am
 
Forum: Nagios Core
Topic: check_http adding domain name to fqdn ?
Replies: 2
Views: 481
Next

Return to advanced search