Page 1 of 1

Help with check_disk

Posted: Tue Feb 20, 2018 8:22 am
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?

Re: Help with check_disk

Posted: Tue Feb 20, 2018 11:03 am
by bolson
Are you planning to run check_disk over check_ssh or are you using the NRPE agent on your linux host?

Re: Help with check_disk

Posted: Tue Feb 20, 2018 11:46 am
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

Re: Help with check_disk

Posted: Tue Feb 20, 2018 12:18 pm
by chewy
I actually got check_disk working but cant get an uptime check

Re: Help with check_disk

Posted: Tue Feb 20, 2018 3:36 pm
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?

Re: Help with check_disk

Posted: Tue Feb 20, 2018 5:20 pm
by tmcdonald
Thanks for the assist, @mcapra!