Page 2 of 2

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

Posted: Wed May 22, 2019 2:19 pm
by dfmco
Changes made. No change on manual or gui checks. They both still fail.

We have another system whose permissions are the same as this one was before the change and it works fine (root:nagios).

[root@wctcog-jones-netmon-pri mibs]# su nagios
[nagios@wctcog-jones-netmon-pri mibs]$ /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
<SNIP>

Here are the permissions of a working 5.5.11 install at another location:
[root@txoma-cooke-netmon-pri ~]# ls -al /usr/share/snmp/mibs
total 2236
drwxrwsr-x. 2 root nagios 4096 Dec 6 11:48 .
drwxr-xr-x. 5 root root 4096 Dec 6 11:48 ..
-rw-rw-r-- 1 root nagios 17455 Oct 30 2018 AGENTX-MIB.txt
-rw-rw-r--. 1 root nagios 37659 Jul 4 2014 BGP4-MIB.my.txt
-rw-rw-r-- 1 root nagios 50948 Oct 30 2018 BRIDGE-MIB.txt
-rw-rw-r--. 1 root nagios 80063 Jul 3 2014 CISCO-BGP4-MIB.my.txt
-rw-rw-r--. 1 root nagios 36493 Jul 3 2014 CISCO-CONFIG-MAN-MIB.my.txt
-rw-rw-r--. 1 root nagios 47872 Jul 3 2014 CISCO-EIGRP-MIB.my.txt
-rw-rw-r--. 1 root nagios 36418 Jul 3 2014 CISCO-ENVMON-MIB.my.txt

looks the same as this 5.6.2 install before I made the change.

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

Posted: Thu May 23, 2019 8:23 am
by tgriep
Please run these commands as root on the system that is having the issue and upload the /tmp/info.txt file to the forum post.

Code: Select all

chage -l nagios >/tmp/info.txt
grep nag /etc/group >>/tmp/info.txt
ls -l /usr/share >>/tmp/info.txt
ls -l /usr/share/snmp >>/tmp/info.txt
ls -l /usr/share/snmp/mibs >>/tmp/info.txt
ls -l /usr/local/nagios/libexec >>/tmp/info.txt
Thanks

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

Posted: Thu May 23, 2019 9:52 am
by dfmco
Log of the following commands attached:
chage -l nagios >/tmp/info.txt
grep nag /etc/group >>/tmp/info.txt
ls -l /usr/share >>/tmp/info.txt
ls -l /usr/share/snmp >>/tmp/info.txt
ls -l /usr/share/snmp/mibs >>/tmp/info.txt
ls -l /usr/local/nagios/libexec >>/tmp/info.txt

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

Posted: Thu May 23, 2019 12:24 pm
by tgriep
The directory permissions for the mibs folder is incorrect, run this as root to fix it.

Code: Select all

chmod ugo+x /usr/share/snmp/mibs
Then run the check again to see if the error messages are gone and the plugin runs.

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

Posted: Thu May 23, 2019 8:25 pm
by dfmco
That fixed the issue. Is this a known issue as I have to upgrade the backup server from 5.5.11 to 5.6.2.

Thanks!

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

Posted: Fri May 24, 2019 9:25 am
by benjaminsmith
Hi @dfmco,
That fixed the issue. Is this a known issue as I have to upgrade the backup server from 5.5.11 to 5.6.2.
Glad to hear it has been resolved. The current upgrade script in Nagios Xi will set the correct permissions for the folder.

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

Posted: Fri May 24, 2019 10:00 am
by dfmco
Thanks!

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

Posted: Fri May 24, 2019 10:21 am
by benjaminsmith
Your welcome!

I'll go ahead and lock this one up, but feel free to open a new post if you have any questions.

Have a great weekend, and thank your for using Naigos.