JRA Posted March 22, 2017 Posted March 22, 2017 Hi all - hope this is in the right section, might also do in the network management bit... Anyways, reinstalled Ubuntu server on an old server, uses HP hardware raid so root is on /dev/cciss/c0d0p1. Use nagios here which now gripes as per the title, but, well, yeah there is no /sda1 so that's kinda right, however nagios I don't want you to look for /sda1 I want you to look at /dev/cciss/c0d0p1! Anyone know how to steer it right? I have a feeling I'll need a plugin of some sort on the client to tweak the output to say /dev/sda1 is really /dev/cciss/c0d0p1 but idk. Thanks in advance for any bones thrown!
pcstru Posted March 22, 2017 Posted March 22, 2017 Looks to me like some config file is referring to a check that is not defined - probably in command.cfg . I'd nip into the config path (possibly /usr/local/nagios/etc) and grep -R check_sda1 * and see what that says. 1
JRA Posted March 23, 2017 Author Posted March 23, 2017 Thanks, that got me to it - hadn't defined check_sda1 in /etc/nagios/nrpe.cfg on that host, added in: command[check_sda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/cciss/c0d0p1 and now all is well.
Chr1sM Posted August 11, 2017 Posted August 11, 2017 Hi, I think there is a more generic check_root command which may help. You may not need to know the name of th drive. Ta, Chris 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now