Hi,
I am monitoring disk usage for ubuntu server using check_snmp_storage_wizard plugin and provided max msg size in form of octet as 5000 but i am facing error as mentioned below:(In nagisoxi and nagios core its throwing same error)
View service status details for this host
/ Disk Usage
Unknown 19h 24m 46s 2/2 2020-03-03 02:14:51 octet length must be < 65535 and > 484
but when i checked from cli it worked fine, output i have attached below.
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 9.x.x.x -C alohamora --v2c -m "/$" -w 80 -c 90 -f -o 5000
/: 30%used(12050MB/39522MB) (<80%) : OK | '/'=12050MB;31618;35570;0;39522
Please let me know what i have to do to resolve this issue since i dont have any issue with other services where i mentioned octet value as 5000
Nagios service status showing as unknown
Re: Nagios service status showing as unknown
Can you go to the Core Config Manager > Commands or Service menu and show where where you defined the size of the octet in the command line?
Is the octet defined in the Command and the Service at the same time?
Login to the XI GUI and go to the Core Config Manager > Services menu and find that service.
Click on the View Config icon (On the right side of the menu) copy the config data and post it here.
Thanks
Is the octet defined in the Command and the Service at the same time?
Login to the XI GUI and go to the Core Config Manager > Services menu and find that service.
Click on the View Config icon (On the right side of the menu) copy the config data and post it here.
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios service status showing as unknown
Here I am posting the config data for that service where I m facing issue
Issue is only for disk monitoring
```
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.5
# Date: 2020-03-03 22:10:47
# 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
service_description / Disk Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m "/$" -w 80 -c 90 -f -o 2000!!!!!!!
max_check_attempts 2
check_interval 30
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description CPU Usage
use xiwizard_linuxsnmp_load
check_command check_xi_service_snmp_linux_load! -C alohamora --v2c -w 70 -c 80 -f!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description dockerd
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n dockerd!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description kubelet
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n kubelet!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Memory Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m Physical -w 85 -c 90 -f -o 5000!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Ping
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
```
Issue is only for disk monitoring
```
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.5
# Date: 2020-03-03 22:10:47
# 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
service_description / Disk Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m "/$" -w 80 -c 90 -f -o 2000!!!!!!!
max_check_attempts 2
check_interval 30
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description CPU Usage
use xiwizard_linuxsnmp_load
check_command check_xi_service_snmp_linux_load! -C alohamora --v2c -w 70 -c 80 -f!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description dockerd
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n dockerd!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description kubelet
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n kubelet!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Memory Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m Physical -w 85 -c 90 -f -o 5000!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Ping
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
```
Re: Nagios service status showing as unknown
Here I attached the config data of the service and issue is only with disk monitoring where I mentioned octet value in service command
```
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.5
# Date: 2020-03-03 22:10:47
# 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
service_description / Disk Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m "/$" -w 80 -c 90 -f -o 2000!!!!!!!
max_check_attempts 2
check_interval 30
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description CPU Usage
use xiwizard_linuxsnmp_load
check_command check_xi_service_snmp_linux_load! -C alohamora --v2c -w 70 -c 80 -f!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description dockerd
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n dockerd!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description kubelet
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n kubelet!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Memory Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m Physical -w 85 -c 90 -f -o 5000!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Ping
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
```
```
###############################################################################
#
# Services configuration file
#
# Created by: Nagios CCM 3.0.5
# Date: 2020-03-03 22:10:47
# 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
service_description / Disk Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m "/$" -w 80 -c 90 -f -o 2000!!!!!!!
max_check_attempts 2
check_interval 30
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description CPU Usage
use xiwizard_linuxsnmp_load
check_command check_xi_service_snmp_linux_load! -C alohamora --v2c -w 70 -c 80 -f!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description dockerd
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n dockerd!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description kubelet
use xiwizard_linuxsnmp_process
check_command check_xi_service_snmp_linux_process! -C alohamora --v2c -r -n kubelet!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Memory Usage
use xiwizard_linuxsnmp_storage
check_command check_xi_service_snmp_linux_storage! -C alohamora --v2c -m Physical -w 85 -c 90 -f -o 5000!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
define service {
host_name
service_description Ping
check_command check-host-alive!!!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts pratimeh
contact_groups bluefringe_pd,DP,EST Admin
_xiwizard linux_snmp
register 1
}
###############################################################################
#
# Services configuration file
#
# END OF FILE
#
###############################################################################
```
Re: Nagios service status showing as unknown
The commands look good.
What I would do is to re-type in the option to be sure there is not any unprintable characters but use -o 50000 for the option in case the has a lot of drives and needs a larger octet size.
What I would do is to re-type in the option to be sure there is not any unprintable characters but use -o 50000 for the option in case the has a lot of drives and needs a larger octet size.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios service status showing as unknown
That didn't helped its same error. Even in core I can see same error.When I check run command its works and even from cli when I test the snmp_storage_wizard its works only from nagiosxi service status is not updating.
Re: Nagios service status showing as unknown
Go in to the Service Status menu in XI and select that service.
Click on the Configure Tab and reconfigure the service.
Click on the Monitoring Tab and look at the Monitor the service with this command: field, does it look correct?
If not, edit it and update the command.
Another thing it could be is id the configs in the CCM are out of sync with the running configs.
Follow this to sync them up.
login to the XI GUI and go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click on the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button.
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button after ALL of the errors are resolved.
Check to see if the command is fixed.
If not, can you post or PM me your System Profile?
To get your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to the forum post or PM it to me.
Click on the Configure Tab and reconfigure the service.
Click on the Monitoring Tab and look at the Monitor the service with this command: field, does it look correct?
If not, edit it and update the command.
Another thing it could be is id the configs in the CCM are out of sync with the running configs.
Follow this to sync them up.
login to the XI GUI and go to the Core Config Manager
Under "Tools", click "Write Config Files" or if you are running a newer versions of XI, The menu is called "Config File Management"
Click on the "Write" button, then the "Delete" button then click the "Write" button and then the "Verify" button.
If you get any errors, resolve them and click on the "Delete" button, "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button after ALL of the errors are resolved.
Check to see if the command is fixed.
If not, can you post or PM me your System Profile?
To get your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to the forum post or PM it to me.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios service status showing as unknown
Hi,
Above mentioned troubleshooting steps didnt worked so send you pm with system profile.
Above mentioned troubleshooting steps didnt worked so send you pm with system profile.
Re: Nagios service status showing as unknown
The System Profile you sent me only shows the version numbers, time , etc. What we need is the profile.zip file that has all of the configurations and log files.
To get that system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to the forum or PM it to me.
To get that system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and upload it to the forum or PM it to me.
Be sure to check out our Knowledgebase for helpful articles and solutions!