Help with check_disk

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chewy
Posts: 6
Joined: Tue Apr 24, 2012 9:13 am

Help with check_disk

Post by chewy »

I have setup nagios following a guide but and having trouble figuring out how to do a check_disk on a remote linux server. For check_ssh I used

define service {
use generic-service
host_name yourhost
service_description SSH
check_command check_ssh
notifications_enabled 0
}

How do I do the same for uptime, current load, root and swap partitions?
bolson

Re: Help with check_disk

Post by bolson »

Are you planning to run check_disk over check_ssh or are you using the NRPE agent on your linux host?
chewy
Posts: 6
Joined: Tue Apr 24, 2012 9:13 am

Re: Help with check_disk

Post by chewy »

bolson wrote:Are you planning to run check_disk over check_ssh or are you using the NRPE agent on your linux host?
nrpe
chewy
Posts: 6
Joined: Tue Apr 24, 2012 9:13 am

Re: Help with check_disk

Post by chewy »

I actually got check_disk working but cant get an uptime check
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Help with check_disk

Post by mcapra »

The check_uptime plugin should be included with the base nagios-plugins repository:
https://github.com/nagios-plugins/nagios-plugins

Were you encountering specific issues with that plugin? Are you using some other plugin?

Can you run this plugin locally from the machine's CLI? Remotely via NRPE or check_by_ssh?
Former Nagios employee
https://www.mcapra.com/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help with check_disk

Post by tmcdonald »

Thanks for the assist, @mcapra!
Former Nagios employee
Locked