Re: Nagios plugins - interfacetable_v3t issues
Posted: Wed Mar 21, 2018 6:41 pm
Hmm.. I am baffled by this.. I have made all these adjustments, I still have the same problem.. thanks for all your help I really appreciate.. I beginning to wonder if there might a more "recent" plugin that will do the same..
Here is my pre-flight check
[root@terminus objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.3.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-08-24
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Error: Service check command 'check_interface_table_v3t.pl -H charpham-3548-1 -C v14tual -2 -f --cachedir /usr/local/nagios/etc/.ifCache' specified in service 'Interface status' for host 'charpham-3548' not defined anywhere!
Checked 40 services.
Checked 8 hosts.
Checked 3 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 27 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 8 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 1
Here are the permissions for the cachedir
[root@terminus etc]# ls -al
total 140
drwxrwxr-x. 4 nagios nagios 168 Mar 19 12:41 .
drwxr-xr-x. 9 root root 94 Jan 5 15:29 ..
-rw-rw-r-- 1 nagios nagios 12999 Jan 23 14:14 cgi.cfg
-rw-rw-r--. 1 nagios nagios 12999 Dec 21 14:17 cgi.cfg~
-rw-r--r--. 1 root root 50 Dec 26 15:13 htpasswd.users
drwxrwxrwx 3 nagios nagios 22 Mar 19 12:41 .ifCache
-rw-rw-r-- 1 nagios nagios 45175 Jan 21 16:00 nagios.cfg
-rw-rw-r--. 1 nagios nagios 44816 Dec 21 14:17 nagios.cfg~
drwxrwxr-x. 2 nagios nagios 4096 Mar 21 16:23 objects
-rw-rw---- 1 nagios nagios 1312 Dec 26 15:12 resource.cfg
-rw-rw----. 1 nagios nagios 1312 Dec 21 14:17 resource.cfg~
[root@terminus etc]# cd .ifCache
[root@terminus .ifCache]# ls -l
total 0
drwxrwxrwx 4 nagios nagios 41 Mar 19 12:41 10.1.0.2
here is my nagios.cfg - note the
# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# You can split your object definitions across several config files
# if you wish (as shown below), or keep them all in a single config file.
# Definitions for monitoring a router/switch
cfg_file=/usr/local/nagios/etc/objects/switch.cfg
cfg_file=/usr/local/nagios/etc/objects/charpham-3548.cfg
Here is my pre-flight check
[root@terminus objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.3.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2017-08-24
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Error: Service check command 'check_interface_table_v3t.pl -H charpham-3548-1 -C v14tual -2 -f --cachedir /usr/local/nagios/etc/.ifCache' specified in service 'Interface status' for host 'charpham-3548' not defined anywhere!
Checked 40 services.
Checked 8 hosts.
Checked 3 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 27 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 8 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 1
Here are the permissions for the cachedir
[root@terminus etc]# ls -al
total 140
drwxrwxr-x. 4 nagios nagios 168 Mar 19 12:41 .
drwxr-xr-x. 9 root root 94 Jan 5 15:29 ..
-rw-rw-r-- 1 nagios nagios 12999 Jan 23 14:14 cgi.cfg
-rw-rw-r--. 1 nagios nagios 12999 Dec 21 14:17 cgi.cfg~
-rw-r--r--. 1 root root 50 Dec 26 15:13 htpasswd.users
drwxrwxrwx 3 nagios nagios 22 Mar 19 12:41 .ifCache
-rw-rw-r-- 1 nagios nagios 45175 Jan 21 16:00 nagios.cfg
-rw-rw-r--. 1 nagios nagios 44816 Dec 21 14:17 nagios.cfg~
drwxrwxr-x. 2 nagios nagios 4096 Mar 21 16:23 objects
-rw-rw---- 1 nagios nagios 1312 Dec 26 15:12 resource.cfg
-rw-rw----. 1 nagios nagios 1312 Dec 21 14:17 resource.cfg~
[root@terminus etc]# cd .ifCache
[root@terminus .ifCache]# ls -l
total 0
drwxrwxrwx 4 nagios nagios 41 Mar 19 12:41 10.1.0.2
here is my nagios.cfg - note the
# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# You can split your object definitions across several config files
# if you wish (as shown below), or keep them all in a single config file.
# Definitions for monitoring a router/switch
cfg_file=/usr/local/nagios/etc/objects/switch.cfg
cfg_file=/usr/local/nagios/etc/objects/charpham-3548.cfg