TO IDENTIFY ERROS WITH GRAPH, verify if:
service-perfdata file exist in Nagios “var” directory ( /var/local/nagios/
# ll /usr/local/nagios/var/service-perfdata
To find out where is inside centreon: Configuration>Nagios>Centreon>Central>”Perfdata file”
Varnish is an amazing reverse proxy product and it does its
job very well, but how can we know that? Or even better
how can we know it detected problems in the backed?
Categories: HowTo, Linux, Nagios, plugins backend, bash, cache, centreon, check, graph, monitor, Nagios, plugins, script, scripts, shell, varnish, web
I found this really interesting diagram about how the IIS works. Also the HTTP error codes witch was very helpfull to debug problems.
Centreon Reporting shows states as “undetermined”
The hosts and services are correctly monitored in the “Monitoring” module but in the “Reporting” module all states are shown as undetermined.
To get straight to the point: it is most likely, that a single setting is not configured correctly in the ndomod.cfg:
In the Centreon 2.0 webinterface go to
Configuration > Centreon > ndomod.cfg > Principal Poller
Now have a look at “Data processing options”. If it is set to “-1” nothing will be written to the database. In order to get it working you need to enter the correct value. Use “67108863” if “everything” should be written to the database. The German company Consol offers a free online calculator for the data_processing_options-setting.
If changing this value doesn’t fix your problem you need to check that your installation meets the following requirements:
1. Nagios is installed (preferably built from source!)
2. NDOUtils is installed
3. The NDO/Nagios database has been created and is accessible by the nagios db user
4. The NDO-daemon (ndo2db) is running
5. The settings for database name, db user, db password, log files, socket, buffer files, etc. are configured correctly in all configuration files (i. e. the values are equal)
Categories: Nagios centreon, centreon reporting, graph, HowTo, module, Nagios, ndomod.cfg, report, Reporting, reporting isn't working, shows, states, undetermined
Using Nagios I am able to monitor the currency conversion rate, so I can know exactly when to sell my currency and to buy my currency. I wrote a creative plugin to nagios that does just that!
Its not my best bash code, I should really rewrite in perl. But the idea is here, and it works.
Anyone wants to build a nagios just to monitor and graph currency exchange rates? I am up for it.
Usage: currencymon.sh [–minwarn value] [–maxwarn value] [–mincrit value] [–maxcrit value] [-v|–verbose]
# bash currencymon.sh 2.65 2.95 2.55 3.15
MONEYX OK: Value of EURO is – 3.1623
The current conversion is from Euro x Real, inside the script there is a parameter to change it.
Amazing Multiplication Trick
Tip #1: Multiplying by Powers of 5
There are times in life when you just get lucky. It turns out that one of those lucky little moments occurs each and every time you need to multiply one number by another number that happens to be a power of 5. For example, let’s say you need to find 36 x 5 (which, of course, fits the bill since 5 is the first power of 5). The trick is to recognize the fact that 5 = 10 / 2. Why is that helpful? Because it means that we can find 36 x 5 by instead finding 36 x 10 (which is easy) and then dividing the result by 2. In this case, 36 x 10 = 360, and 360 / 2 = 180. Impressively speedy, right?