Error on nagios starting

nagios

I had nagios running on centOS. when i restart the nagios with

/etc/init.d/nagios restart

it not showing any error. But when i check the status with

/etc/init.d/nagios status

it showing nagios not running.

I run nagios with the help of

/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg

i getting following error

Nagios 3.3.1 starting… (PID=12179)

Local time is Tue Jul 16 10:08:17 CEST 2013

Error: my_fcopy() failed to write to '/usr/local/nagios/var/spool/checkresults/nebmod2CKuKY': No space left on device

Error: my_fcopy() failed to write to
'/usr/local/nagios/var/spool/checkresults/nebmodMmhs0U': No space left on device

In the webconsole home page working properly.But when i click service or host i getting following error

There doesn't appear to be any service status information in the status log…

Make sure that Nagios is running and that you have specified the location of you status log correctly in the configuration files.

What would be the error?

EDIT

output of *df -h* 

Filesystem                  Size   Used   Avail  Use% Mounted on
/dev/mapper/VolGroup-lv_root 5.5G  5.3G     0    100%  /
tmpfs                       939M     0     939M   0%   /dev/shm
/dev/sda1                   485M   37M     423M   8%   /boot

Best Answer

You don't have any more room on your disc (see the 100% on that df output for /dev/mapper/VolGroup-lv_root), so all sorts of things will start to break, including this.

Free up some space.

Specifically in this case, nagios tries to write to some (temp?) file, but can't

Error: my_fcopy() failed to write to '/usr/local/nagios/var/spool/checkresults/nebmod2CKuKY': No space left on device

You could, if you would have another device, change the setting for the checkresults path with (see http://nagios.sourceforge.net/docs/3_0/configmain.html for the setting) but then other things (like logging and who knows what) will fail because of no space.

Other services will also be affected by the way, so it is important to clean up some.

Related Topic