Linux SNMP Memory Check - Reported Memory is incorrect

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by dslaughter »

sorry for the late reply.

I've have not been able to test yet. I hope to be able to do it this week. We are releasing a new product so I haven't had the time. I will before the end of the week.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by lmiltchev »

Noted. We will keep the thread open.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by dslaughter »

Still didn't work. I'm going to have to build a clean server for this test. Sorry its taken so long.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by benjaminsmith »

Still didn't work. I'm going to have to build a clean server for this test. Sorry its taken so long.
No problem.
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!
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by dslaughter »

I finally got to test this morning on a new clean install of 5.6.5.

I downloaded the latest wizard and placed it in /usr/local/nagiosxi/html/includes/configwizards. I moved the original linux_snmp dir to my home dir. If I use any linux_snmp wizard it fails with configuration verification failed.

After the failure I deleted the host and added the host again. I used the generic ip wizard and that worked. If I use any snmp wizard it is failing. I tried router/switch, snmp, and snmpwalk and they all fail with the same message.

I thought the snmpwalk wizard would work for sure since its a clean centos 7 minimal installation.

snmp responds from the nagiosxi command line to the server I built. Where do I need to start troubleshooting this problem? Do I need to rebuild this server or is something missing?
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by dslaughter »

Error: Template 'xiwizard_linuxsnmp_mem' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/192.168.84.58.cfg', starting on line 16)

Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Template 'xiwizard_linuxsnmp_mem' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/192.168.84.58.cfg', starting on line 16)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by dslaughter »

###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.3
# Date: 2019-07-22 08:13:10
# Version: Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define service {
host_name 192.168.84.58
service_description / Disk Usage
use xiwizard_linuxsnmp_mem
check_command check_xi_service_snmp_linux_storage! -C public --v2c -m "^/$" -w 80 -c 95 -f
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 linux_snmp
register 1
}

define service {
host_name 192.168.84.58
service_description collectd
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C public --v2c -r -n collectd
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 linux_snmp
register 1
}

define service {
host_name 192.168.84.58
service_description CPU Usage
use xiwizard_linuxsnmp_load
check_command check_xi_service_snmp_linux_load! -C public --v2c -w 80 -c 90 -f
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 linux_snmp
register 1
}

define service {
host_name 192.168.84.58
service_description ifAdminStatus.1
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o 'ifAdminStatus.1' -C 'public' -P 2c -m IF-MIB
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 snmpwalk
register 1
}

define service {
host_name 192.168.84.58
service_description Memory Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_mem! -C public --v2c -w 80,80 -c 90,80
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 linux_snmp
register 1
}

define service {
host_name 192.168.84.58
service_description Ping
use xiwizard_switch_ping_service
check_command check-host-alive
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 switch
register 1
}

define service {
host_name 192.168.84.58
service_description Port 2 Bandwidth
use xiwizard_switch_port_bandwidth_service
check_command check_xi_service_mrtgtraf!192.168.84.58_2.rrd!500.0,500.0!800.0,800.0!M
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 switch
register 1
}

define service {
host_name 192.168.84.58
service_description Port 2 Status
use xiwizard_switch_port_status_service
check_command check_xi_service_ifoperstatus!public!2!-v 2 -p 161
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 switch
register 1
}

define service {
host_name 192.168.84.58
service_description Uptime
use xiwizard_snmp_service
check_command check_xi_service_snmp! -o 'sysUpTime.0' -C 'public' -P 2c
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
}

###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by ssax »

Please download the zip and go to Admin > Manage Config Wizards:
- Click the Browse button and select the zip
- Click the Upload & Install button

You need to do it that way so it puts the proper commands/templates in place.
dslaughter
Posts: 128
Joined: Wed Feb 20, 2019 3:46 pm

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by dslaughter »

I did the update via the gui and it worked. That was the piece I was missing. I didn't read the doc as well as I thought.

I modified the defaults in linuxsnmp.cfg and now it works like I wanted.

Sorry for all the delays. Thank you for your help. It's ok to close the thread now.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux SNMP Memory Check - Reported Memory is incorrect

Post by scottwilkerson »

dslaughter wrote:I did the update via the gui and it worked. That was the piece I was missing. I didn't read the doc as well as I thought.

I modified the defaults in linuxsnmp.cfg and now it works like I wanted.

Sorry for all the delays. Thank you for your help. It's ok to close the thread now.
Great!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked