NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 series

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 series

Post by dfmco »

We are using the official RPM install of Nagios XI. We are running on 5.6.2.

We are using SNMP v3 in the Switch/Router wizard to discover the router. Nagios finds the interfaces but all of the services show the errors below:

GigabitEthernet0/0 LAN Status Unknown 5m 31s 1/1 2019-05-21 20:39:59 UNKNOWN - No info is being retrieved.
GigabitEthernet0/1 crossover Bandwidth Critical 5m 22s 1/1 2019-05-21 20:40:08 (Return code of 13 for service 'GigabitEthernet0/1 crossover Bandwidth' on host 'wct-jones-ha-r1' was out of bounds)

All interfaces status messages are "No info is being retrieved."
All interface Bandwidth services are "(Return code of 13 for service '<Service Name>' on host '<hostname>' was out of bounds)

The end devices are Cisco 4431 and Cisco 4331 routers. Both models are affected.

I did some checking and there was a mention of a possible permissions issue but the link to the Nagios document to fix global permissions is broken. I did find that some service checks looked good but I don't think these are the actual service checks as I thought those were .pl files but these are the only ones on the server.
[root@wctcog-jones-netmon-pri ~]# ls -al /usr/local/nagios/share/pnp/templates/
total 44
drwxrwsr-x. 2 nagios nagios 4096 May 21 19:43 .
drwxrwxr-x. 8 nagios nagios 160 May 21 19:43 ..
-rwxrwxr-x 1 nagios nagios 776 May 16 16:07 check_local_disk.php
-rwxrwxr-x 1 nagios nagios 1011 May 16 16:07 check_local_load.php
-rwxrwxr-x 1 nagios nagios 667 May 16 16:07 check_local_users.php
-rwxrwxr-x 1 nagios nagios 1192 May 16 16:07 check_xi_host_http.php
-rwxrwxr-x 1 nagios nagios 1868 May 16 16:07 check_xi_host_ping.php
-rwxrwxr-x 1 nagios nagios 680 May 16 16:07 check_xi_service_dns.php
-rwxrwxr-x 1 nagios nagios 1192 May 16 16:07 check_xi_service_http_content.php
-rwxrwxr-x 1 nagios nagios 1192 May 16 16:07 check_xi_service_http.php
-rwxrwxr-x 1 nagios nagios 1074 May 16 16:07 check_xi_service_mrtgtraf.php
-rwxrwxr-x 1 nagios nagios 1868 May 16 16:07 check_xi_service_ping.php

I tried to download the profile but it fails with the following error:
PROFILE BUILD FAILED
Array
(
)
CODE: 1
You do not have the required permissions to view the files attached to this post.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by dfmco »

I found a similar error in the general support forum and ran the following:

Code: Select all

chmod ug+x -R /usr/local/nagios/libexec/
chmod u+s -R /usr/local/nagios/libexec/check_dhcp
chmod u+s -R /usr/local/nagios/libexec/check_icmp
What is interesting is that the owner of all files in /usr/local/nagios/libexec/ on the 5.6.2 install are nagios:nagios but on the un-upgraded 5.5.11 the owner is apache:nagios.

This fixed all of the bandwidth checks. It looks like all of the file in libexec were not executable and the above corrected that, however all status checks are still showing "No info is being retrieved".

Here is the full command that is failing:
check_xi_service_ifoperstatusnag!34!-v3 -u nms -A "REDACTED" -x AES -X "REDACTED" -a SHA -l authPriv
I noticed that there is no check in /usr/local/nagios/libexec named check_xi_service_ifoperstatusnag My guess is that the permissions for this check are wrong as well but this check does not exist on the system as a file. Where are all of the "check_xi" commands located?

I verified that the ifindex is 34 for that interface and the usernames and passwords are working for bandwidth so I know those are good too.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by benjaminsmith »

Hi @dfmco
Where are all of the "check_xi" commands located?
To locate the commands, go to Configure > CCM > Commands and then use the search box in the upper right ( see image ).

What happens when you run that command directly from the shell as nagios user ( su nagios)? Is it executing and returning correctly?

See: Nagios XI - How To Test Check Commands From The Command-line
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by dfmco »

$USER1$/check_ifoperstatnag $ARG1$ $ARG2$ $HOSTADDRESS$

I have no idea how to check via the console because I can't find any information on what ARG1 and ARG2 should be. I tried using the arguments from one of the checks but it did not like that at all.

/usr/local/nagios/libexec/check_ifoperstatnag !29!-v3 -u nms -A "Edi2019" -x AES -X "Cordoba2019" -a SHA -l authPriv
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by dfmco »

I figured it out!

[root@wctcog-jones-netmon-pri ~]# /usr/local/nagios/libexec/check_ifoperstatnag 29 -v3 -u nms -A "<7 charecters>" -x AES -X "<meets minimum>" -a SHA -l authPriv 172.16.115.1
Error: passphrase chosen is below the length requirements of the USM (min=8).
snmpget: (The supplied password length is too short.)
Error generating a key (Ku) from the supplied authentication pass phrase.
Error: passphrase chosen is below the length requirements of the USM (min=8).
snmpget: (The supplied password length is too short.)
Error generating a key (Ku) from the supplied authentication pass phrase.
/usr/local/nagios/libexec/check_ifoperstatnag: line 39: [: -eq: unary operator expected
Error: passphrase chosen is below the length requirements of the USM (min=8).
snmpget: (The supplied password length is too short.)
Error generating a key (Ku) from the supplied authentication pass phrase.
UNKNOWN - No info is being retrieved.

We are working on updating all of the routers and will try re-running the command. Please leave open for just a bit until we can confirm.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by dfmco »

Still no go. But this time, the web is showing unknown but the manual command comes back with an OK

[root@wctcog-jones-netmon-pri ~]# /usr/local/nagios/libexec/check_ifoperstatnag 29 -v3 -u nms -A "REDACTED" -x AES -X "REDACTED" -a SHA -l authPriv 172.16.115.1
OK - Interface Serial0/1/0:0 (index 29) is up.
You do not have the required permissions to view the files attached to this post.
swolf

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by swolf »

Hi @dfmco,

I would recommend following @benjaminsmith's latest suggestion - try to switch to the nagios user, and run the command from that shell. Does it still work? Right now, you're running as root, which will have different permissions from the actual Nagios Core engine.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by dfmco »

That was the problem:
[root@wctcog-jones-netmon-pri ~]# su nagios
[nagios@wctcog-jones-netmon-pri root]$ /usr/local/nagios/libexec/check_ifoperstatnag 2 -v3 -u nms -A "EdiS2019" -x AES -X "Cordoba2019" -a SHA -l authPriv 172.16.115.1
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt: Permission denied
MIB search path: /home/nagios/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt: Permission denied
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt: Permission denied
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
/usr/share/snmp/mibs/TCP-MIB.txt: Permission denied
Cannot find module (TCP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UDP-MIB.txt: Permission denied
Cannot find module (UDP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/MTA-MIB.txt: Permission denied
Cannot find module (MTA-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NETWORK-SERVICES-MIB.txt: Permission denied
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SCTP-MIB.txt: Permission denied
Cannot find module (SCTP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/RMON-MIB.txt: Permission denied
Cannot find module (RMON-MIB): At line 0 in (none)
/usr/share/snmp/mibs/EtherLike-MIB.txt: Permission denied
Cannot find module (EtherLike-MIB): At line 0 in (none)
/usr/share/snmp/mibs/LM-SENSORS-MIB.txt: Permission denied
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMPv2-MIB.txt: Permission denied
Cannot find module (SNMPv2-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IF-MIB.txt: Permission denied
Cannot find module (IF-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IP-MIB.txt: Permission denied
Cannot find module (IP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt: Permission denied
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt: Permission denied
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt: Permission denied
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt: Permission denied
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DEMO-MIB.txt: Permission denied
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-TARGET-MIB.txt: Permission denied
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt: Permission denied
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-MPD-MIB.txt: Permission denied
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt: Permission denied
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt: Permission denied
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt: Permission denied
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt: Permission denied
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-ICMP-MIB.txt: Permission denied
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-MIB.txt: Permission denied
Cannot find module (IPV6-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-TCP-MIB.txt: Permission denied
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-UDP-MIB.txt: Permission denied
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IP-FORWARD-MIB.txt: Permission denied
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt: Permission denied
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-EXTEND-MIB.txt: Permission denied
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt: Permission denied
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt: Permission denied
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMPv2-TM.txt: Permission denied
Cannot find module (SNMPv2-TM): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt: Permission denied
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
ifDescr.2: Unknown Object Identifier (Sub-id not found: (top) -> ifDescr)
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt: Permission denied
MIB search path: /home/nagios/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt: Permission denied
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt: Permission denied
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
/usr/share/snmp/mibs/TCP-MIB.txt: Permission denied
Cannot find module (TCP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UDP-MIB.txt: Permission denied
Cannot find module (UDP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/MTA-MIB.txt: Permission denied
Cannot find module (MTA-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NETWORK-SERVICES-MIB.txt: Permission denied
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SCTP-MIB.txt: Permission denied
Cannot find module (SCTP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/RMON-MIB.txt: Permission denied
Cannot find module (RMON-MIB): At line 0 in (none)
/usr/share/snmp/mibs/EtherLike-MIB.txt: Permission denied
Cannot find module (EtherLike-MIB): At line 0 in (none)
/usr/share/snmp/mibs/LM-SENSORS-MIB.txt: Permission denied
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMPv2-MIB.txt: Permission denied
Cannot find module (SNMPv2-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IF-MIB.txt: Permission denied
Cannot find module (IF-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IP-MIB.txt: Permission denied
Cannot find module (IP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt: Permission denied
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt: Permission denied
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt: Permission denied
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt: Permission denied
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DEMO-MIB.txt: Permission denied
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-TARGET-MIB.txt: Permission denied
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt: Permission denied
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-MPD-MIB.txt: Permission denied
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt: Permission denied
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt: Permission denied
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt: Permission denied
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt: Permission denied
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-ICMP-MIB.txt: Permission denied
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-MIB.txt: Permission denied
Cannot find module (IPV6-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-TCP-MIB.txt: Permission denied
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-UDP-MIB.txt: Permission denied
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IP-FORWARD-MIB.txt: Permission denied
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt: Permission denied
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-EXTEND-MIB.txt: Permission denied
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt: Permission denied
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt: Permission denied
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMPv2-TM.txt: Permission denied
Cannot find module (SNMPv2-TM): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt: Permission denied
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
ifAdminStatus.2: Unknown Object Identifier (Sub-id not found: (top) -> ifAdminStatus)
/usr/local/nagios/libexec/check_ifoperstatnag: line 39: [: -eq: unary operator expected
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt: Permission denied
MIB search path: /home/nagios/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt: Permission denied
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt: Permission denied
Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
/usr/share/snmp/mibs/TCP-MIB.txt: Permission denied
Cannot find module (TCP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UDP-MIB.txt: Permission denied
Cannot find module (UDP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/MTA-MIB.txt: Permission denied
Cannot find module (MTA-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NETWORK-SERVICES-MIB.txt: Permission denied
Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SCTP-MIB.txt: Permission denied
Cannot find module (SCTP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/RMON-MIB.txt: Permission denied
Cannot find module (RMON-MIB): At line 0 in (none)
/usr/share/snmp/mibs/EtherLike-MIB.txt: Permission denied
Cannot find module (EtherLike-MIB): At line 0 in (none)
/usr/share/snmp/mibs/LM-SENSORS-MIB.txt: Permission denied
Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMPv2-MIB.txt: Permission denied
Cannot find module (SNMPv2-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IF-MIB.txt: Permission denied
Cannot find module (IF-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IP-MIB.txt: Permission denied
Cannot find module (IP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NOTIFICATION-LOG-MIB.txt: Permission denied
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
/usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt: Permission denied
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
/usr/share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt: Permission denied
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt: Permission denied
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DEMO-MIB.txt: Permission denied
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-TARGET-MIB.txt: Permission denied
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt: Permission denied
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-MPD-MIB.txt: Permission denied
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt: Permission denied
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt: Permission denied
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt: Permission denied
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-COMMUNITY-MIB.txt: Permission denied
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-ICMP-MIB.txt: Permission denied
Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-MIB.txt: Permission denied
Cannot find module (IPV6-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-TCP-MIB.txt: Permission denied
Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IPV6-UDP-MIB.txt: Permission denied
Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
/usr/share/snmp/mibs/IP-FORWARD-MIB.txt: Permission denied
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt: Permission denied
Cannot find module (NET-SNMP-PASS-MIB): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-EXTEND-MIB.txt: Permission denied
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt: Permission denied
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt: Permission denied
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
/usr/share/snmp/mibs/SNMPv2-TM.txt: Permission denied
Cannot find module (SNMPv2-TM): At line 0 in (none)
/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt: Permission denied
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
ifOperStatus.2: Unknown Object Identifier (Sub-id not found: (top) -> ifOperStatus)
UNKNOWN - No info is being retrieved.

Here is a sample of the current permissions on the mibs folder:
[root@wctcog-jones-netmon-pri snmp]# ls -al mibs
total 2236
drw-rwSr--. 2 root nagios 4096 Jan 31 22:52 .
drwxr-xr-x. 5 root root 4096 Mar 20 17:08 ..
-rw-rw-r--. 1 root nagios 17455 Oct 30 2018 AGENTX-MIB.txt
-rw-rw-r--. 1 root nagios 37659 Jan 31 22:52 BGP4-MIB.my.txt
-rw-rw-r--. 1 root nagios 50948 Oct 30 2018 BRIDGE-MIB.txt
-rw-rw-r--. 1 root nagios 80063 Jan 31 22:52 CISCO-BGP4-MIB.my.txt
-rw-rw-r--. 1 root nagios 36493 Jan 31 22:52 CISCO-CONFIG-MAN-MIB.my.txt
-rw-rw-r--. 1 root nagios 47872 Jan 31 22:52 CISCO-EIGRP-MIB.my.txt
-rw-rw-r--. 1 root nagios 36418 Jan 31 22:52 CISCO-ENVMON-MIB.my.txt
-rw-rw-r--. 1 root nagios 40308 Jan 31 22:52 CISCO-IETF-BFD-MIB.my.txt
-rw-rw-r--. 1 root nagios 16214 Jan 31 22:52 CISCO-MEMORY-POOL-MIB.my.txt
-rw-rw-r--. 1 root nagios 16468 Jan 31 22:52 CISCO-SMI.my.txt

And here is a sample of the actual files:
[root@wctcog-jones-netmon-pri mibs]# ls -al
total 2236
drw-rwSr--. 2 root nagios 4096 Jan 31 22:52 .
drwxr-xr-x. 5 root root 4096 Mar 20 17:08 ..
-rw-rw-r--. 1 root nagios 17455 Oct 30 2018 AGENTX-MIB.txt
-rw-rw-r--. 1 root nagios 37659 Jan 31 22:52 BGP4-MIB.my.txt
-rw-rw-r--. 1 root nagios 50948 Oct 30 2018 BRIDGE-MIB.txt
-rw-rw-r--. 1 root nagios 80063 Jan 31 22:52 CISCO-BGP4-MIB.my.txt
-rw-rw-r--. 1 root nagios 36493 Jan 31 22:52 CISCO-CONFIG-MAN-MIB.my.txt
-rw-rw-r--. 1 root nagios 47872 Jan 31 22:52 CISCO-EIGRP-MIB.my.txt
-rw-rw-r--. 1 root nagios 36418 Jan 31 22:52 CISCO-ENVMON-MIB.my.txt
-rw-rw-r--. 1 root nagios 40308 Jan 31 22:52 CISCO-IETF-BFD-MIB.my.txt
-rw-rw-r--. 1 root nagios 16214 Jan 31 22:52 CISCO-MEMORY-POOL-MIB.my.txt
-rw-rw-r--. 1 root nagios 16468 Jan 31 22:52 CISCO-SMI.my.txt
-rw-rw-r--. 1 root nagios 94342 Jan 31 22:52 CISCO-TC.my.txt
-rw-rw-r--. 1 root nagios 6620 Jan 31 22:52 CISCO-TCP-MIB.my.txt
-rw-rw-r--. 1 root nagios 68104 Oct 30 2018 DISMAN-EVENT-MIB.txt
-rw-rw-r--. 1 root nagios 24613 Oct 30 2018 DISMAN-SCHEDULE-MIB.txt
-rw-rw-r--. 1 root nagios 64311 Oct 30 2018 DISMAN-SCRIPT-MIB.txt

What permissions do I need to change?
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by dfmco »

Also found in the gui when I go to admin > manage mibs and look at permissions, all files look like this:
MIB File Permissions
MIB File Owner Group Permissions Date
AGENTX-MIB Missing File N/A N/A N/A N/A
BGP4-MIB.my Missing File N/A N/A N/A N/A
BRIDGE-MIB Missing File N/A N/A N/A N/A
CISCO-BGP4-MIB.my Missing File N/A N/A N/A N/A
CISCO-CONFIG-MAN-MIB.my Missing File N/A N/A N/A N/A
CISCO-EIGRP-MIB.my Missing File N/A N/A N/A N/A
CISCO-ENVMON-MIB.my Missing File N/A N/A N/A N/A
CISCO-IETF-BFD-MIB.my Missing File N/A N/A N/A N/A
CISCO-MEMORY-POOL-MIB.my Missing File N/A N/A N/A N/A
CISCO-SMI.my Missing File N/A N/A N/A N/A
CISCO-TC.my Missing File N/A N/A N/A N/A
CISCO-TCP-MIB.my Missing File N/A N/A N/A N/A
DISMAN-EVENT-MIB Missing File N/A N/A N/A N/A
DISMAN-SCHEDULE-MIB Missing File N/A N/A N/A N/A
DISMAN-SCRIPT-MIB Missing File N/A N/A N/A N/A
EtherLike-MIB Missing File N/A N/A N/A N/A
HCNUM-TC Missing File N/A N/A N/A N/A
HOST-RESOURCES-MIB Missing File N/A N/A N/A N/A
HOST-RESOURCES-TYPES Missing File N/A N/A N/A N/A
IANA-ADDRESS-FAMILY-NUMBERS-MIB Missing File N/A N/A N/A N/A
IANA-LANGUAGE-MIB Missing File N/A N/A N/A N/A
IANA-RTPROTO-MIB Missing File N/A N/A N/A N/A
IANAifType-MIB Missing File N/A N/A N/A N/A
IF-INVERTED-STACK-MIB Missing File N/A N/A N/A N/A
IF-MIB Missing File N/A N/A N/A N/A
INET-ADDRESS-MIB Missing File N/A N/A N/A N/A
IP-FORWARD-MIB Missing File N/A N/A N/A N/A
IP-MIB Missing File N/A N/A N/A N/A
IPV6-FLOW-LABEL-MIB Missing File N/A N/A N/A N/A
IPV6-ICMP-MIB Missing File N/A N/A N/A N/A
IPV6-MIB Missing File N/A N/A N/A N/A
IPV6-TC Missing File N/A N/A N/A N/A
IPV6-TCP-MIB Missing File N/A N/A N/A N/A
IPV6-UDP-MIB Missing File N/A N/A N/A N/A
LM-SENSORS-MIB Missing File N/A N/A N/A N/A
MTA-MIB Missing File N/A N/A N/A N/A
NET-SNMP-AGENT-MIB Missing File N/A N/A N/A N/A
NET-SNMP-EXAMPLES-MIB Missing File N/A N/A N/A N/A
NET-SNMP-EXTEND-MIB Missing File N/A N/A N/A N/A
NET-SNMP-MIB Missing File N/A N/A N/A N/A
NET-SNMP-PASS-MIB Missing File N/A N/A N/A N/A
NET-SNMP-TC Missing File N/A N/A N/A N/A
NET-SNMP-VACM-MIB Missing File N/A N/A N/A N/A
NETWORK-SERVICES-MIB Missing File N/A N/A N/A N/A
NOTIFICATION-LOG-MIB Missing File N/A N/A N/A N/A
RFC-1215 Missing File N/A N/A N/A N/A
RFC1155-SMI Missing File N/A N/A N/A N/A
RFC1213-MIB Missing File N/A N/A N/A N/A
RMON-MIB Missing File N/A N/A N/A N/A
SCTP-MIB Missing File N/A N/A N/A N/A
SMUX-MIB Missing File N/A N/A N/A N/A
SNMP-COMMUNITY-MIB Missing File N/A N/A N/A N/A
SNMP-FRAMEWORK-MIB Missing File N/A N/A N/A N/A
SNMP-MPD-MIB Missing File N/A N/A N/A N/A
SNMP-NOTIFICATION-MIB Missing File N/A N/A N/A N/A
SNMP-PROXY-MIB Missing File N/A N/A N/A N/A
SNMP-TARGET-MIB Missing File N/A N/A N/A N/A
SNMP-USER-BASED-SM-MIB Missing File N/A N/A N/A N/A
SNMP-USM-AES-MIB Missing File N/A N/A N/A N/A
SNMP-USM-DH-OBJECTS-MIB Missing File N/A N/A N/A N/A
SNMP-VIEW-BASED-ACM-MIB Missing File N/A N/A N/A N/A
SNMPv2-CONF Missing File N/A N/A N/A N/A
SNMPv2-MIB Missing File N/A N/A N/A N/A
SNMPv2-SMI Missing File N/A N/A N/A N/A
SNMPv2-TC Missing File N/A N/A N/A N/A
SNMPv2-TM Missing File N/A N/A N/A N/A
TCP-MIB Missing File N/A N/A N/A N/A
TRANSPORT-ADDRESS-MIB Missing File N/A N/A N/A N/A
TUNNEL-MIB Missing File N/A N/A N/A N/A
UCD-DEMO-MIB Missing File N/A N/A N/A N/A
UCD-DISKIO-MIB Missing File N/A N/A N/A N/A
UCD-DLMOD-MIB Missing File N/A N/A N/A N/A
UCD-IPFWACC-MIB Missing File N/A N/A N/A N/A
UCD-SNMP-MIB Missing File N/A N/A N/A N/A
UDP-MIB Missing File N/A N/A N/A N/A

But they seem to all be in the directory.

On the manage MIBs screen the table looks like this:
MIB First Uploaded Status Date Processed Actions
AGENTX-MIB 2019-05-21 19:44:10 Uploaded N/A Delete
BGP4-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
BRIDGE-MIB 2019-05-21 19:44:10 Uploaded N/A
CISCO-BGP4-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
CISCO-CONFIG-MAN-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
CISCO-EIGRP-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
CISCO-ENVMON-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
CISCO-IETF-BFD-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
CISCO-MEMORY-POOL-MIB.my 2019-05-21 19:44:10 Uploaded N/A Delete
CISCO-SMI.my 2019-05-21 19:44:10 Uploaded N/A
CISCO-TC.my 2019-05-21 19:44:10 Uploaded N/A
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie

Post by tgriep »

From what you have posted, it looks like the permissions of the MIBS folder and files are incorrect so if you run the following as root, it should fix the permissions so the GUI and the plugin can access them.

Code: Select all

chown -R nagios.nagios /usr/share/snmp/mibs
chmod -R 664 /usr/share/snmp/mibs
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked