Select mysql_health and navigate into the Fields tab. Navigate into Commands > External Commands and search for mysql_health. The parameter names inside the ITL commands follow the ![]() usr/lib64/nagios/plugins/check_mysql_health -hostname '127.0.0.1' -username root -password icingar0xx -mode sql -name 'select sum(data_length + index_length) / 1024 / 1024 from information_schema.tables where table_schema = ' \' 'icinga' \' ' ' '-name2' 'db_size' -units 'MB' -warning 4096 -critical 8192 There are errors, now what? Typical errors are missing libraries,Įxample for a Python plugin which uses the tinkerforge module Which must be installed on every system they are executed.ĭon’t test the plugins on your master instance, insteadĭo that on the satellites and clients which execute the These scripts/binaries may require additional libraries Plugins can be scripts (Shell, Python, Perl, Ruby, PHP, etc.) In that case you can modify an existing plugin or just write your own. Sometimes there are plugins which do not exactly fit your requirements. The plugin it might be easier to create a symbolic link to make sure it doesn’t get ![]() Sometimes plugins contain hard-coded paths to other components. Please consult the pluginĭocumentation and/or the included README file for installation instructions. Sudo -u nagios /usr/lib/nagios/plugins/check_mysql_health -helpĪdditional libraries may be required for some plugins. Prior to using the check plugin with Icinga 2 you should ensure that it is working properlyīy trying to run it on the console using whichever user Icinga 2 is running as: Try running the plugin after setup and ensure it works. Sometimes dependencies are not listed, or your distribution differs from the oneĭescribed. Good plugins provide installations and configuration instructions They can also help with installing the requiredĭependencies, e.g. If you have plugins with many dependencies, consider creating aĬustom RPM/DEB package which handles the required libraries and binaries.Ĭonfiguration management tools such as Puppet, Ansible, Chef or SaltstackĪlso help with automatically installing the plugins on different The recommended way of setting up these plugins is to copy them Plugins can be found for example on Icinga Exchange. Requirements ¶ Plugins ¶Īll existing Icinga or Nagios plugins work with Icinga 2. Which is enriched with examples and also code examples to get you started with Plugins follow the Plugin API specification It also adds hints on modifying existing commands. Through the plugin setup, tests and their integration with an existingĪnd host/service objects inside the Director ![]() There are thousands ofĬommunity plugins available next to the standard plugins provided byĪnd look which services are already covered. The power of Icinga 2 lies in its modularity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |