how to monitor uptime service when using nrpe wizard
-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
how to monitor uptime service when using nrpe wizard
how to monitor uptime service when using nrpe wizard
-
swolf
Re: how to monitor uptime service when using nrpe wizard
Can you be more specific about what system or server you're trying to monitor? NRPE is a way for you to run nagios plugins on a remote host, so in a very general sense, you'll want to find or create a plugin that measures uptime on the system you're monitoring, install NRPE on that system, place the plugin in /usr/local/nagios/libexec, add a command for the plugin in nrpe.cfg, and then run through the NRPE wizard, adding the command where it asks for "Remote NRPE Command" and the relevant plugin arguments next to that.
Here's a link to some documentation for configuring NRPE on a Linux server
Here's a link to some documentation for configuring NRPE on a Linux server
-
jforcier
Re: how to monitor uptime service when using nrpe wizard
Add check_uptime in the NRPE Commands during step 2 of the NRPE wizard.
More information on uptime checks here:
https://support.nagios.com/kb/article/u ... s-784.html
More information on uptime checks here:
https://support.nagios.com/kb/article/u ... s-784.html
-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: how to monitor uptime service when using nrpe wizard
https://support.nagios.com/kb/article/u ... s-784.html
above link doesn't have an option to monitor uptime using nrpe.
We are trying to monitor uptime for solaris version 10 servers.
above link doesn't have an option to monitor uptime using nrpe.
We are trying to monitor uptime for solaris version 10 servers.
-
jforcier
Re: how to monitor uptime service when using nrpe wizard
The first plugin in that link, check_uptime, will work with NRPE.
Follow this document and add check_uptime in step 2:
https://assets.nagios.com/downloads/nag ... g_NRPE.pdf
To test the plugin, you could set up a command in the nrpe.cfg file on the remote machine as such:
and restart nrpe so that changes take place.
Then, you can test your check from the command line on the Nagios XI server:
Follow this document and add check_uptime in step 2:
https://assets.nagios.com/downloads/nag ... g_NRPE.pdf
To test the plugin, you could set up a command in the nrpe.cfg file on the remote machine as such:
Code: Select all
command[check_uptime]=/usr/local/nagios/libexec/check_uptime $ARG1$Then, you can test your check from the command line on the Nagios XI server:
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_uptime -a '-u days -c 1'
Uptime CRITICAL: 2 day(s) 3 hour(s) 39 minute(s) | uptime=2.000000;;1.000000;-
ganeshsambandam
- Posts: 62
- Joined: Mon Sep 10, 2018 1:52 pm
Re: how to monitor uptime service when using nrpe wizard
Thanks, can you please provide me the command which can be used to check in minutes.
For ex:- i need to see an alert if uptime is less than 10 minutes.
For ex:- i need to see an alert if uptime is less than 10 minutes.
-
jforcier
Re: how to monitor uptime service when using nrpe wizard
Run your check like this:
Here is an articale that explains how to use thresholds and ranges in your checks.
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Code: Select all
./check_uptime -u minutes -c 10: -w 20:Here is an articale that explains how to use thresholds and ranges in your checks.
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT