Search found 22 matches

by pelicanmedia
Tue Oct 22, 2019 8:34 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

For those who read this... Apparently there is a REGULAR EXPRESSION MATCHING value in nagios.cfg I have just changed use_regexp_matching=1 to use_regexp_matching=0 And it now seems to be working. This is very frustrating when the values host_name values do NOT match, so the matching should not need ...
by pelicanmedia
Tue Oct 15, 2019 1:40 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

/usr/local/nagios/etc/config/templates.cfg ############################################################################### # TEMPLATES.CFG - SAMPLE OBJECT TEMPLATES # # # NOTES: This config file provides you with some example object definition # templates that are refered by other host, service, con...
by pelicanmedia
Mon Oct 14, 2019 10:50 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

The only other reference for generic-host I can find is in
/usr/local/nagios/etc/objects/templates.cfg and /usr/local/nagios/etc/config/templates.cfg
by pelicanmedia
Thu Oct 10, 2019 10:57 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

# Linux host definition template - This is NOT a real host, just a template! define host{ name linux-server ; The name of this host template use generic-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock ...
by pelicanmedia
Wed Oct 09, 2019 1:43 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

This has not been resolved as there is obviously a bug/flaw where it ignores the host_name field in the .cfg files. The only 'fix' that I can get to work is by removing .host.name from the host_name field. I should be able to use the full name of 'web-backups.host.name' and 'monitor.host.name' witho...
by pelicanmedia
Tue Oct 08, 2019 9:36 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 1
Views: 647

check_apt returning NRPE: Command 'check_yum' not defined

Don't lock the thread as it is NOT resolved!
by pelicanmedia
Tue Oct 08, 2019 9:25 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

I have one host group: define hostgroup{ hostgroup_name Servers - Linux members centos,host.name,monitor.host.name,web-backups.host.name, (plus a few other non related servers) } The only other references to linux-server are in the default /config/templates.cfg and /objects/templates.cfg files. It d...
by pelicanmedia
Tue Oct 08, 2019 8:41 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

Sure... [user@centos ~]# grep -R monitor.host.name /usr/local/nagios/etc/ /usr/local/nagios/etc/config/web-monitor.cfg: host_name monitor.host.name /usr/local/nagios/etc/config/web-monitor.cfg: host_name monitor.host.name /usr/local/nagios/etc/config/web-monitor.cfg: host_name monitor.host.name /usr...
by pelicanmedia
Tue Oct 08, 2019 8:14 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

When I change the host_names back to monitor.host.name and web-backups.host.name I get the warning back in /usr/local/nagios/var/nagios.log. [1570539439] Warning: Duplicate definition found for service 'Uptime' on host 'monitor.host.name' (config file '/usr/local/nagios/etc/config/web-website.cfg', ...
by pelicanmedia
Tue Oct 08, 2019 7:42 am
Forum: Open Source Nagios Projects
Topic: check_apt returning NRPE: Command 'check_yum' not defined
Replies: 18
Views: 5426

Re: check_apt returning NRPE: Command 'check_yum' not define

Figured it out. Badly written software... My new host's host_name was web-backups.host.name running Ubuntu. I had another host called monitor.host.name running CentOS plus another call just host.name, also on CentOS. It appears Nagios ignores anything before host.name so the results I was being show...