You are here

RE: INTERFACES UNKNOWN - Cannot read configuration data for (check_snmp_interfaces_cascade not working for new hosts)

2 posts / 0 new
Last post
chuxuzoeto
chuxuzoeto's picture
RE: INTERFACES UNKNOWN - Cannot read configuration data for (check_snmp_interfaces_cascade not working for new hosts)

I have a situation where all my passive checks that rely on check_snmp_interfaces_cascade are not working for new hosts. 

Taking a look at the plugin, I see it relies for config data on files held at: /usr/local/nagios/var/plugins/check_snmp_interfaces_cascade .. and if it does not find an entry for a given host, it throws up the error message 'INTERFACES UNKNOWN - Cannot read configuration data for <HOSTNAME>'  ..

However, I am unable to see how these hostname files are being created, and why they are no longer working.

In my setup, I cloned the checks defined under host template 'SNMP - MIB II' .. so, I am applying a different template to the hosts.  I am wondering if whatever generates the hostname config files is hardcoded to only work for that specific host template, and nothing else. 

Within the plugin, there is provision to enabling debugging of certain hosts.  I have enabled this for a number of hosts under the variable $trace_hostnames, but I cannot tell where the trace logs are written as nothing under /var/log/opsview displays this trace.

Please, can someone help me with additional information on how I can access tha trace files .. or confirm if the reason this is happening might be due to a requirement on a specific host template named 'SNMP - MIB II' ..

Thanks in advance ..

 

 

chuxuzoeto
chuxuzoeto's picture
RE: INTERFACES UNKNOWN - Cannot read configuration data for ...

OK, I have just conducted a quick test and been able to verify that it only works if the host template is named 'SNMP - MIB II'

I would like to still leave this as a bug/feature request that this hard-coding of the host template name be removed .. Would appreciate comments from folks within opsview who have the leverage to decide one way or the other what makes it into code ..