Monitoring using SNMP polling

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Monitoring using SNMP polling

Post by mkeey »

We have installed SNMPv3 on an AIX server. I was able to use the SNMP Wizard to code a host and a CPU service. Here are the configs with proprietary info redacted...

Hosts configuration

define host {
host_name REMOTESERVER
use xiwizard_genericnetdevice_host
address REMOTESVRIP
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts NAGIOSADMIN
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image snmp.png
statusmap_image snmp.png
_xiwizard snmp
register 1
}



Services configuration

define service {
host_name REMOTESERVER
service_description CPU Utilization
use xiwizard_snmp_service
check_command check_xi_service_snmp! -o 1.3.6.1.4.1.2.6.191.1.2.1.0 -P 3 --seclevel=authPriv --secname=USER --authproto=md5 --authpasswd='AUTHPASSWORD' --privpasswd='PRIVPASSWORD' --privproto=des -l "CPU"!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts NAGIOSADMIN
_xiwizard snmp
register 1
}


However, we now want to add numerous other services: disk utilization for about 10 different file systems, page usage, etc.

I can get the OID's but would prefer using a MIB. Not sure how to do this.
But, I can't find any decent step-by-step instructions on how to code a new service using SNMP.
Can you point me to a youtube or PDF that has such information for customized monitoring using SNMP?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitoring using SNMP polling

Post by npolovenko »

@mkeey, First, please obtain the MIB files from the manufacturer of the device you're looking to monitor.
Next, in XI web interface go to the Admin menu, click on Manage Mibs in the left column and upload the MIB files. No need to check the "Process Traps" box.
Once the MIB files are uploaded run the SNMP Walk Wizard against your device. It should automatically translate OIDs to readable SNMP counters according to the MIB files you uploaded.
https://assets.nagios.com/downloads/nag ... Wizard.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Re: Monitoring using SNMP polling

Post by mkeey »

I did download the MIB file and installed it via the XI GUI...

MIB File Owner Group Permissions Date
IBM-AIX-MIB.mib IBM-AIX-MIB.mib.txt apache nagios rw-rw-r-- 06/04/2019 09:07:35

I tried using the Walk Wizard but it didn't recognize the IBM-AIX-MIB.mib - See SNMP Walk #1 screen print.
The results are shown in SNMP Walk #2 screen print also attached.
You do not have the required permissions to view the files attached to this post.
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Re: Monitoring using SNMP polling

Post by mkeey »

Second comment. The PDF you directed me towards only discusses SNMPv2 not SNMPv3.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitoring using SNMP polling

Post by npolovenko »

@mkeey, Please delete the IBM-AIX-MIB.mib from the OID field in the wizard, run it again and show me a screenshot of what it finds.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Re: Monitoring using SNMP polling

Post by mkeey »

Did as you requested. See attached screen prints. Clicked on next and got odd results. Clicked next and got an error saying I didn't select any OID's.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitoring using SNMP polling

Post by npolovenko »

@mkeey, Please upload the MIB file in this thread.
Also, please run the SNMPwalk command from the command line and show me the output(or send it to me in a private message):

Code: Select all

snmpwalk -v3  -l authPriv -u <username> -a MD5 -A <password>  -x DES -X <password> <IP address>:161 
mkeey
Posts: 199
Joined: Mon Sep 25, 2017 11:13 am

Re: Monitoring using SNMP polling

Post by mkeey »

We have gotten the SNMP to work. The snmpwalk did help. Just have some questions about thresholds and that's being worked on in a separate case. Please close this one.
Locked