I am having issues with adding my Juniper EX3300 Switch stack to checkmk. After I add host I can see all services (interfaces) and when I fix them all and save it services just stuck at the pending state:
as you can see, your active snmp check timed out and thus was not able to gather all information in time. You either need to decrease the number of services to check/poll or you need to increase the SNMP timeout.
You find the according setting for the timeout here: Setup → Agents -->SNMP rules -->Timing settings for SNMP access (cmk2.0).
EDIT: Since none of the services returned any output, it might also be that you have a general connection error between your site and your Juniper stack host.
As you use the raw edition you need to increase the maximum time a active check can run on the command line. There is no menu option for the Nagios core available.
Inside your site in the folder “~/etc/nagios/nagios.d/” you find the file “tuning.cfg” with the option “service_check_timeout”. This variable is set to 60 seconds. If you adjust this your active checks can run longer than 60 seconds.
In case you change this value keep in mind that you should also change the check interval for the affected hosts (like your switch). Set the following rules also for the devices with the runtime longer than one minute - “Normal check interval for service checks” and “Retry check interval for service checks” to the same value as configured inside the “tuning.cfg” or a little bit longer.
Thank you Andreas that worked for me! I set it to 120 Seconds and I edited the rules you mentioned and set it to the same value as configured inside the “tuning.cfg”.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.