nagios-plugins | This repository contains Nagios plugins | Plugin library
kandi X-RAY | nagios-plugins Summary
kandi X-RAY | nagios-plugins Summary
This repository contains Nagios plugins developed by AppliedTrust.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nagios-plugins
nagios-plugins Key Features
nagios-plugins Examples and Code Snippets
Community Discussions
Trending Discussions on nagios-plugins
QUESTION
For my homework project I need to oversee a web server and a wordpress website on it with a Nagios server. Both are LAMP Debian 9 server, all is setup and working.
I'm using Nagios XI and MariaDB with the default wordpress database explain here.
For the last part I need to check all comments posted in the last 4 hours to avoid a Spam campaign. I need a warning threshold set on 4 comments in last 4 hours, and a critical threshold set on 10 comments in last 4 hours.
I found check_mysql_query.pl plugin for Nagios. But I'am a little bit lost for making work this with a SQL query. According to wordpress doc, I try something like :
...ANSWER
Answered 2019-Jul-07 at 18:36I don’t have a time to check all Wordpress database schema. But from your SQL query, I think you need following
QUESTION
I need to automate the installation of the NRPE agent inside a bash script. How do I "make; make install" in a remote directory? Here's the code so far:
...ANSWER
Answered 2019-Mar-28 at 06:04This might help with Khanna111's hint:
QUESTION
From Nagios' Plugin Development Guidelines:
Plugins have a very limited runtime - typically 10 sec. As a result, it is very important for plugins to maintain internal code to exit if runtime exceeds a threshold.
All plugins should timeout gracefully, not just networking plugins.
How can I implement a timeout mechanism into my custom plugin? Basically I want my plugin to return a status code 3 - UNKNOWN instead of the default 1 - CRITICAL when the plugin times out, to reduce the number of false positives generated.
EDIT: My plugin is written in Bash.
...ANSWER
Answered 2018-Nov-29 at 08:01You can use timeout
. Here is example usage:
QUESTION
My goal is to fetch the status data from a UBNT radio (https://www.ubnt.com/) using an HTTP request. The web interface url is formatted as http://192.168.0.120/status.cgi. Making the request requires a authentication cookie. Using the cookie copied from the existing web interface I am able to successfully retrieve the data.
This is my current code using the Meteor framework.
...ANSWER
Answered 2018-Mar-24 at 03:21A direct POST
request to a url is not a recommended way. When you open a browser you just don't directly login. You fetch the page and then submit/login
Not simulating this behavior may impact certain sites depending on how the server works.
So if always want to look at the simulating like a real user/browser would do, make a GET
request first and then the POST
.
Also capture any cookies from the first GET
request and then pass the same on to the next one
QUESTION
I'm working on build containers exploiting a monitoring application (Centreon). When i build my container manually (with docker run) and when i build my docker file, i have different results. Somes scripts used by the application are missing.
Here's my dockerfile :
...ANSWER
Answered 2018-Feb-09 at 13:06It doesn't matter what you put in your image at that location, you will always see the contents of your volume mount:
QUESTION
I'm running Container Linux by CoreOS 1618.0.0 (Ladybug)
.
with rkt Version: 1.29.0
I created a systemd service file to run a docker nagios image:
...ANSWER
Answered 2017-Dec-25 at 12:20You should not expect to see the volume automatically populated with whatever files exist in the image at that particular mount point. In fact the opposite happens, the (presumably empty) volume hides what's in the image. See this: https://github.com/appc/spec/blob/master/spec/ace.md#volume-setup
So, if you want to pre-populate the volumes with files from the image, I believe you're doing the right thing by extracting the image manually.
QUESTION
How can I find the latest version number of Go without knowing what the exact version number is of the latest version? This in order to construct the download url.
When release is on GitHub I can do this with for example
...ANSWER
Answered 2017-Oct-07 at 19:07got this from the ml,
QUESTION
I would like to print the value of every occurance in a JSON string with Python.
Here is my JSON:
...ANSWER
Answered 2017-Aug-03 at 13:50Simply use:
QUESTION
I am running Nagios® Core Version 3.5.1 on Ubuntu 14.04.5 LTS. I am adding a slightly different check_http defined as check_http_s. It appears that I can add this to any one of three different files:
...ANSWER
Answered 2017-Feb-22 at 15:30Configuration files are all included from the main nagios.cfg
. They are included with the following directives:
cfg_file=
cfg_dir=
So, unfortunately, there isn't any good way to just tell if files are in use - you need to travel down the path of which files are included, and then see if files are included from those files!
QUESTION
I'm almost done with a nagios plugin and I'm using this guide. I'm getting error's though and I'm not sure why.
...ANSWER
Answered 2017-Feb-17 at 18:13To use given
, you need
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nagios-plugins
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page