Re: NagiosXI 5.6.2 Switch/Router wizard and Cisco 4000 serie
Posted: Wed May 22, 2019 2:19 pm
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.
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.