Ad Widget
Collapse
Unable to delete hosts or unlink templates after discovery...
Collapse
X
-
-
Please perform an snmpwalk to 1.3.6.1.2.1.25.2.3.1.6. Does it really retrieve the data related to the storage used?Of course.
In the Discovery rule i have changed the SNMP OID as you sent me:
And here are the screen shots:Code:discovery[{#SNMPVALUE},1.3.6.1.2.1.25.2.3.1.3,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4,{#STORAGE_TYPE},1.3.6.1.2.1.25.2.3.1.2,{#STORAGE_USED},1.3.6.1.2.1.25.2.3.1.6]
I don't fully understand it. On other Linux PC it works correctly, only this one not.
Regards,Comment
-
Hi Aigars,
I have changed the filter to (A or B) and C and also have attached the results from the snmpwalk.
Can you tell me:
1. why this doesnt work correctly only on this one host?
2. why in this items names are nit the real names but only the numbers?
3. why in this latest version the remplates and results are fully otres as in the old one (mean in older 3.4.x version)? There was the templates better and show better results.
For the discovery results we need to wait, so I will send it when I will have it.
Snmpwalk.zip
Thanks.Comment
-
based on snmpwalk our "{#STORAGE_USED},1.3.6.1.2.1.25.2.3.1.6" expression is defined correctly.
The calculate items will always fail at the beginning. Calculated items is based on already gathered values in the database. In this case there is no values to calculate, but the expression inside forces to grab some
1. I believe this host is huge storage device. Are you using the same template for another huge NAS device?
2. please attach screenshot
3. did not understand "fully otres". Can you point out specific functionality or changes to GUI. specific version numbers.
Would you mind to export the template to xml and attach it here?
Have you ever tried to "Unlink and clear" template from host where the problems persist and link it again? Please try.
Regards,Comment
-
Hi Aigars,
I understand that at beginning are there zeros, but after some time should be there any data.
Maybe I need to clean it again (item by item - the host still doent work) and will see what it than find and do.
1. Yes its a huge storage (Dell EMC Isilon), but I ahev the same linux template on a Synology and that it find the corect number of items
2. Added screen shot: You dont see there the name of memory name only the number.
3. It was meaned as fully others. That the older templates showed the items, that are needed and so many, as now and all was OK, with the corect real names for better and faster identifying.
Yes, I tried to unlink and clear the data, but after this operations I had only a black screen and nothing happens. This was the first sten before I wanted to delete the complete Item. Only what works is delete manualy items.
The added template. Its the default template preinstalled with zabbix appliance. Only have done changes you told me. [ATTACH]n359780[/ATTACH]
Thanks.Comment
-
I have manualy deleted the Memory items and now have only less then 400 Items. Will see what will create the discovery now. But still doenst understand why it find so many Memory items, even I dint have so many memory and what I need is total memory and used memory, that I can set trigger to the used memory and make some graphs from it. -
And found a new thing. Its possible unlink the template only when it has less items as 5000. When it has more it isnt possible to unlink it even with clearing all data.
And by new discovery with your updated rules if still found more than 2000 items. And I need only few. :-(
I have now a new problem with it. After cleaning all data and unlinking templates on second host, i'm unable to go to the item list on third host who has also so many items, which ai wanted to clear it and unlik templates.Last edited by Alfista; 06-06-2018, 15:47. -
After a one day hard fight with Zabbix, I was abble to delete all items from the last host. I started with delete aplications where was less items, then discovery, and after that I was able to delete the rest and unlink the Linux SNMP template. Now I have fre about 250GB of disk space. But please help me to resolve why the template makes me so lot items. Thanks.
-
-
About 5000 items.. You need to modify the 'max_input_vars' attribute. By default, it is 1000 as mentioned here:
But do not edit the global configuration. Set this variable in '/etc/httpd/conf.d/zabbix.conf' and set it slightly bigger for example 10000. Here is how the conf looks like after all:Code:grep max_input_vars /etc/php.ini ; max_input_vars = 1000
Please try to create another 'fresh' host with your storage IP address and assign this one template which only contains storage discovery:Code:# # Zabbix monitoring system php web frontend # Alias /zabbix /usr/share/zabbix <Directory "/usr/share/zabbix"> Options FollowSymLinks AllowOverride None Require all granted <IfModule mod_php5.c> php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 php_value always_populate_raw_post_data -1 php_value date.timezone Europe/Riga php_value max_input_vars 10000 </IfModule> </Directory> <Directory "/usr/share/zabbix/conf"> Require all denied </Directory> <Directory "/usr/share/zabbix/app"> Require all denied </Directory> <Directory "/usr/share/zabbix/include"> Require all denied </Directory> <Directory "/usr/share/zabbix/local"> Require all denied </Directory>
Custom-Storage-Discovery.xml
This time the "SpaceUsed" exclusion is configured in template level. No need to modify host configuration.
Make sure the community name is right. Let us know how it goes.
Regards,
Aigars
Comment
-
Whenever the front-end acts in a way it is now supposed to act please output the content from:
Useful info cames inside this logCode:cat /var/log/httpd/error_log
Comment
-
Hi Aigars,
at the beging, I dont have this log in /var/log ... any http folder isnt threre and also any error_log
And now to teh Template you sent me. It will not discover. Its runnig the whole day and nothing is docovered. And I have running the discovery functions and also the actions as usualy, but nothing works.Comment
-
Please uncheck "Use bulk requests" near to SNMP interface in the host configuration.
Oh, yes. Under Appliance 3.4.8 the log file is:
Code:cat /var/log/apache2/error.log
Comment
-
Hi Aigars,
I ahve check the log and now I have there only errors like this:
OK I have unchek it. Will see tomorrow what it do.Code:Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 16 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmGroupName' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessContextPrefix' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityModel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityLevel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) MIB search path: /var/www/html/zabbix/snmp_builder/mibs:/usr/share/snmp/mibs Cannot find module (SNMP-FRAMEWORK-MIB): At line 14 in /usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt Cannot find module (SNMP-TARGET-MIB): At line 16 in /usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt) Did not find 'snmpTargetParamsName' in module #-1 (/usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt) Did not find 'snmpTargetAddrName' in module #-1 (/usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt Cannot find module (INET-ADDRESS-MIB): At line 13 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 16 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmGroupName' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessContextPrefix' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityModel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityLevel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
Thanks.Comment
-
This looks like zabbix_server.logHi Aigars,
I ahve check the log and now I have there only errors like this:
OK I have unchek it. Will see tomorrow what it do.Code:Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 16 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmGroupName' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessContextPrefix' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityModel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityLevel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) MIB search path: /var/www/html/zabbix/snmp_builder/mibs:/usr/share/snmp/mibs Cannot find module (SNMP-FRAMEWORK-MIB): At line 14 in /usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt Cannot find module (SNMP-TARGET-MIB): At line 16 in /usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt) Did not find 'snmpTargetParamsName' in module #-1 (/usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt) Did not find 'snmpTargetAddrName' in module #-1 (/usr/share/snmp/mibs/SNMP-TLS-TM-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt Cannot find module (INET-ADDRESS-MIB): At line 13 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt) Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 16 in /usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmGroupName' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessContextPrefix' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityModel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt) Did not find 'vacmAccessSecurityLevel' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-VACM-MIB.txt)
Thanks.
This MIB related messages can be solved. But you need to investigate a few hours or something.
Here is how you can bring the unavailable MIB files for your system:
1) download and extract https://github.com/netdisco/netdisco...ive/master.zip
2) use the keyword in parentheses like 'SNMP-FRAMEWORK-MIB' or 'SNMP-VIEW-BASED-ACM-MIB'
3) add to this keyword another word 'DEFINITIONS' so at the end you got phrase 'SNMP-FRAMEWORK-MIB DEFINITIONS'
4) use some content search program and look for this 'SNMP-FRAMEWORK-MIB DEFINITIONS' in netdisco-mibs archive. On windows I am using AstroGrep
5) Put this SNMP-FRAMEWORK-MIB.txt in your /usr/share/snmp/mibs dir
What does the /var/log/apache2/error.log file says?
Comment
-
Hi Aigars,
these errors are from teh Appache log.
The discovery still doesnt work even I uncheck the "Use bulk requests".
And I dont fully understand your manual for finding the problems from the error log. You mean that I need to find the MIBs in which are the missing modelued or parameters from the log and add it to the zabbix?
Thanks.
Comment
-
Hi,Hi Aigars,
these errors are from teh Appache log.
The discovery still doesnt work even I uncheck the "Use bulk requests".
And I dont fully understand your manual for finding the problems from the error log. You mean that I need to find the MIBs in which are the missing modelued or parameters from the log and add it to the zabbix?
Thanks.
Once this is a production instance it is a warm recommendation to keep the log file clear as possible.
Custom-Storage-Discovery.xml just added some static items too. Please make sure that you can read at least Uptime value from this device. This will indicate that community name has been parsed OK for the template.
One last request. Please provide with full snmpwalk dump (again) but this time generate only numeric OIDs:
I will try to load the dump in simulator..Code:snmpwalk -On
Regards,Comment
-
Hi Aigars,
the community and other things are OK, while I use a global macros for it and on with other templates it works.
OK I will import this new template and look what it will do.
I have also done the snmpwalk on that device and here is the result: snmpwalk.zip
And work on the MIBs as you told me. It will not be better to import there all MIBS at once?
Hope it helps.
Thanks.Comment
-
I was seeking for snmpwalk for that huge storage device so we can limit items. This is different device in the zipHi Aigars,
the community and other things are OK, while I use a global macros for it and on with other templates it works.
OK I will import this new template and look what it will do.
I have also done the snmpwalk on that device and here is the result: [ATTACH]n360149[/ATTACH]
And work on the MIBs as you told me. It will not be better to import there all MIBS at once?
Hope it helps.
Thanks.
You should definitely face the experience what happens if a lot of MIBs files goes in the MIB directory. Just backup original catalog. And the add some hundreds others.
Maybe errors disappear or maybe increase. Maybe snmpwalk goes slower.
Comment
Comment