Search found 10 matches

by Zendan
Tue May 26, 2020 3:03 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied redux II
Replies: 0
Views: 878

check_disk: Permission denied redux II

I was having two separate discussions that have since been closed… so here is the continuation. As background, I was having permission issues with an unofficial plugin. However, after some troubleshooting , we suspect it's a bug in nagios itself. Essentially, it seems that nagios strips out suppleme...
by Zendan
Sun Feb 16, 2020 4:07 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied redux
Replies: 4
Views: 1979

Re: check_disk: Permission denied redux

Thank you @mcapra. That looks perfect, although it's a real pity there is no Arch package.

(Sorry for the delay, I was again bitten by the opt-in notifications! :? )
by Zendan
Wed Feb 12, 2020 5:39 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied redux
Replies: 4
Views: 1979

check_disk: Permission denied redux

I was participating in a lovely discussion when the topic was abruptly closed . I understand (now) that the original query was off-topic, (sorry!) but I still had some on-topic questions. So here they are! Is there a recommended Nagios (i.e. on-topic) way to monitor for disk usage, i.e. check_disk e...
by Zendan
Tue Feb 11, 2020 4:32 pm
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

Re: check_disk: Permission denied

Thank you again for all your help. Yes, I'm still getting the same error. $ /usr/lib/monitoring-plugins/check_disk -h | head -10 check_disk v2.2 (monitoring-plugins 2.2) Copyright (c) 1999 Ethan Galstad <nagios@nagios.org> Copyright (c) 1999-2008 Monitoring Plugins Development Team <devel@monitoring...
by Zendan
Tue Feb 11, 2020 1:54 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

Re: check_disk: Permission denied

That seems to work fine. $ sudo su nagios [nagios@alarmpi ~]$ /usr/lib/monitoring-plugins/check_disk -w '204800' -c '102400' -e -r '^/media/.*' --exclude-type=tracefs --exclude-type=cgroup DISK OK| /media/Morlock=1478022MB;2610828;2713228;0;2815628 /media/PiBuHDD=3518556MB;3549720;3652120;0;3754520 ...
by Zendan
Mon Feb 10, 2020 3:51 pm
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

Re: check_disk: Permission denied

Thanks scottwilkerson. I changed the shell, so that the full line is now

Code: Select all

nagios:x:30:30::/home/nagios:/bin/bash
I rebooted then re-ran the service, but unfortunately the problem still persists.
by Zendan
Sat Feb 08, 2020 2:24 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

Re: check_disk: Permission denied

Thank you again for the suggestion. I would recommend creating a home directory for the Nagios user, we've seen this cause many issues in the past. This didn't seem to help. I tried creating a home directory: sudo mkdir /home/nagios sudo chown nagios: /home/nagios sudo chmod 700 /home/nagios Then re...
by Zendan
Mon Feb 03, 2020 4:01 pm
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

Re: check_disk: Permission denied

No worries, but su - nagios still doesn't work, presumably because it's still not a login shell? $ sudo su - nagios su: warning: cannot change directory to /dev/null: Not a directory $ sudo su # su - nagios su: warning: cannot change directory to /dev/null: Not a directory Yes, nagios doesn't have a...
by Zendan
Fri Jan 31, 2020 2:15 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

Re: check_disk: Permission denied

Thank you for the quick reply mbellerue. this time use su - nagios to get to the nagios user. This fails, but doesn't su - require nagios to open a login shell? $ sudo su - nagios -- /usr/lib/monitoring-plugins/check_disk -w '204800' -c '102400' -e -r '^/media/.*' --exclude-type=tracefs --exclude-ty...
by Zendan
Thu Jan 30, 2020 4:24 am
Forum: Open Source Nagios Projects
Topic: check_disk: Permission denied
Replies: 13
Views: 7168

check_disk: Permission denied

I've added a command to check the disk space for my hard drives. I edited /etc/nagios/objects/localhost.cfg and added the following: define command{ command_name check_hard_disks command_line /usr/lib/monitoring-plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e -r '^/media/.*' --exclude-type=tracefs --e...