Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm a total newbie to nagios, and I am getting the following error message via mail, is there anything I can do to resolve?

** PROBLEM Service Alert: localhost/Root Partition is CRITICAL **

***** Nagios *****

Notification Type: PROBLEM

Service: Root Partition
Host: localhost
Address: 127.0.0.1
State: CRITICAL

Date/Time: Fri Dec 21 09:24:00 GMT 2012

Additional Info:

DISK CRITICAL - free space: / 10467 MB (5% inode=99%):
share|improve this question
    
Read through the notification again, carefully. Do you note anything that may specifically indicate an issue? It may also be helpful to visit the Nagios documentation. –  jscott Dec 21 '12 at 11:04
    
Thanks J, Should mention that 10GB of space on this server is lots, how do I set the alert to 5GB. –  JJJJNR Dec 21 '12 at 11:16

3 Answers 3

up vote 1 down vote accepted

You need to do either of two things:

  • Change your nagios config to alert at a lower percentage free
  • Fix the diskspace issue

I'd suggest doing the latter as disks operate much happier when there's some room available. As for do the former, for that we kinda need to see your nagios config as there are several ways of doing it (hardcoded in the command, parametrized and set per host, or maybe per hostgroup)...

share|improve this answer

Assuming you are using the default configutation you will need to edit the following file

/usr/local/nagios/etc/objects/localhost.cfg

Then look for

define service{
        use                             local-service         ; Name of service template to use
        hostgroup                       linux-servers
        service_description             Root Partition
        check_command                   check_local_disk!20%!10%!/
        }

And change 20% to be the warning % free and 10% to the critical % then reload Nagios

share|improve this answer

Looks like there is a low free inodes. Check this via

df -h

and

df -i
share|improve this answer
    
99% of inodes free is not low –  Epaphus Dec 21 '12 at 12:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.