Jump to content

Nagios - NRPE: Command 'check_sda1' not defined


Recommended Posts

Posted

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! :)

Posted

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.

  • Thanks 1
Posted

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.

 

:)

  • 4 months later...
Posted

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

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...