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

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

Post 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.
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 »

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
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 »

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
You do not have the required permissions to view the files attached to this post.
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 »

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.
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 »

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!
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,
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.
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 »

Thanks!
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 »

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.
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!
Locked