How to check remote server load average using Icinga2
In Icinga2
there is a script in nagios plugins
folder called check_load
which gives the result for host OS. When I call the script with -h
it reports:
check_load v2.1.1 (monitoring-plugins 2.1.1)
Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>
Copyright (c) 1999-2007 Monitoring Plugins Development Team
<devel@monitoring-plugins.org>
This plugin tests the current system load average.
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-w, --warning=WLOAD1,WLOAD5,WLOAD15
Exit with WARNING status if load average exceeds WLOADn
-c, --critical=CLOAD1,CLOAD5,CLOAD15
Exit with CRITICAL status if load average exceed CLOADn
the load average format is the same used by "uptime" and "w"
-r, --percpu
Divide the load averages by the number of CPUs (when possible)
Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org
As it appears there is not parameter to pass as host address.
The question is how should I get the load average (1m, 5m, 15m) of remote servers?
load snmp nagios icinga2
add a comment |
In Icinga2
there is a script in nagios plugins
folder called check_load
which gives the result for host OS. When I call the script with -h
it reports:
check_load v2.1.1 (monitoring-plugins 2.1.1)
Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>
Copyright (c) 1999-2007 Monitoring Plugins Development Team
<devel@monitoring-plugins.org>
This plugin tests the current system load average.
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-w, --warning=WLOAD1,WLOAD5,WLOAD15
Exit with WARNING status if load average exceeds WLOADn
-c, --critical=CLOAD1,CLOAD5,CLOAD15
Exit with CRITICAL status if load average exceed CLOADn
the load average format is the same used by "uptime" and "w"
-r, --percpu
Divide the load averages by the number of CPUs (when possible)
Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org
As it appears there is not parameter to pass as host address.
The question is how should I get the load average (1m, 5m, 15m) of remote servers?
load snmp nagios icinga2
You have to run Icinga on remote servers and then let those icinga instances report to the master server. Alternatively you can use "passive checks" as a starting point for your search. The hostname which to report to is then specified in the main icinga config.
– Sheppy
Nov 1 '18 at 13:09
add a comment |
In Icinga2
there is a script in nagios plugins
folder called check_load
which gives the result for host OS. When I call the script with -h
it reports:
check_load v2.1.1 (monitoring-plugins 2.1.1)
Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>
Copyright (c) 1999-2007 Monitoring Plugins Development Team
<devel@monitoring-plugins.org>
This plugin tests the current system load average.
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-w, --warning=WLOAD1,WLOAD5,WLOAD15
Exit with WARNING status if load average exceeds WLOADn
-c, --critical=CLOAD1,CLOAD5,CLOAD15
Exit with CRITICAL status if load average exceed CLOADn
the load average format is the same used by "uptime" and "w"
-r, --percpu
Divide the load averages by the number of CPUs (when possible)
Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org
As it appears there is not parameter to pass as host address.
The question is how should I get the load average (1m, 5m, 15m) of remote servers?
load snmp nagios icinga2
In Icinga2
there is a script in nagios plugins
folder called check_load
which gives the result for host OS. When I call the script with -h
it reports:
check_load v2.1.1 (monitoring-plugins 2.1.1)
Copyright (c) 1999 Felipe Gustavo de Almeida <galmeida@linux.ime.usp.br>
Copyright (c) 1999-2007 Monitoring Plugins Development Team
<devel@monitoring-plugins.org>
This plugin tests the current system load average.
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.monitoring-plugins.org/doc/extra-opts.html
for usage and examples.
-w, --warning=WLOAD1,WLOAD5,WLOAD15
Exit with WARNING status if load average exceeds WLOADn
-c, --critical=CLOAD1,CLOAD5,CLOAD15
Exit with CRITICAL status if load average exceed CLOADn
the load average format is the same used by "uptime" and "w"
-r, --percpu
Divide the load averages by the number of CPUs (when possible)
Send email to help@monitoring-plugins.org if you have questions regarding
use of this software. To submit patches or suggest improvements, send email
to devel@monitoring-plugins.org
As it appears there is not parameter to pass as host address.
The question is how should I get the load average (1m, 5m, 15m) of remote servers?
load snmp nagios icinga2
load snmp nagios icinga2
asked Oct 17 '18 at 14:01
ALHALH
2,09332976
2,09332976
You have to run Icinga on remote servers and then let those icinga instances report to the master server. Alternatively you can use "passive checks" as a starting point for your search. The hostname which to report to is then specified in the main icinga config.
– Sheppy
Nov 1 '18 at 13:09
add a comment |
You have to run Icinga on remote servers and then let those icinga instances report to the master server. Alternatively you can use "passive checks" as a starting point for your search. The hostname which to report to is then specified in the main icinga config.
– Sheppy
Nov 1 '18 at 13:09
You have to run Icinga on remote servers and then let those icinga instances report to the master server. Alternatively you can use "passive checks" as a starting point for your search. The hostname which to report to is then specified in the main icinga config.
– Sheppy
Nov 1 '18 at 13:09
You have to run Icinga on remote servers and then let those icinga instances report to the master server. Alternatively you can use "passive checks" as a starting point for your search. The hostname which to report to is then specified in the main icinga config.
– Sheppy
Nov 1 '18 at 13:09
add a comment |
1 Answer
1
active
oldest
votes
you can use the nagios nrpe server/client to query the remote host
on server side (remote host):
in /etc/nagios/nrpe.d/default.cfg
add a line like this
command[system_load]=/usr/lib/nagios/plugins/check_load -r -w 100,20,30 -c 100,40,50
the query from icinga is
/usr/lib/nagios/plugins/check_nrpe -H HOSTNAME -c system_load -t 30
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52856771%2fhow-to-check-remote-server-load-average-using-icinga2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
you can use the nagios nrpe server/client to query the remote host
on server side (remote host):
in /etc/nagios/nrpe.d/default.cfg
add a line like this
command[system_load]=/usr/lib/nagios/plugins/check_load -r -w 100,20,30 -c 100,40,50
the query from icinga is
/usr/lib/nagios/plugins/check_nrpe -H HOSTNAME -c system_load -t 30
add a comment |
you can use the nagios nrpe server/client to query the remote host
on server side (remote host):
in /etc/nagios/nrpe.d/default.cfg
add a line like this
command[system_load]=/usr/lib/nagios/plugins/check_load -r -w 100,20,30 -c 100,40,50
the query from icinga is
/usr/lib/nagios/plugins/check_nrpe -H HOSTNAME -c system_load -t 30
add a comment |
you can use the nagios nrpe server/client to query the remote host
on server side (remote host):
in /etc/nagios/nrpe.d/default.cfg
add a line like this
command[system_load]=/usr/lib/nagios/plugins/check_load -r -w 100,20,30 -c 100,40,50
the query from icinga is
/usr/lib/nagios/plugins/check_nrpe -H HOSTNAME -c system_load -t 30
you can use the nagios nrpe server/client to query the remote host
on server side (remote host):
in /etc/nagios/nrpe.d/default.cfg
add a line like this
command[system_load]=/usr/lib/nagios/plugins/check_load -r -w 100,20,30 -c 100,40,50
the query from icinga is
/usr/lib/nagios/plugins/check_nrpe -H HOSTNAME -c system_load -t 30
edited Nov 12 '18 at 12:01
answered Nov 12 '18 at 11:51
Daniel GohlkeDaniel Gohlke
314
314
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52856771%2fhow-to-check-remote-server-load-average-using-icinga2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You have to run Icinga on remote servers and then let those icinga instances report to the master server. Alternatively you can use "passive checks" as a starting point for your search. The hostname which to report to is then specified in the main icinga config.
– Sheppy
Nov 1 '18 at 13:09