Clarification of perfdata configuration

Craig Stewart Craig.Stewart at corp.xplornet.com
Mon Jun 13 20:37:40 CEST 2011


Good day all!

It's me again.  Before I get too detailed, I'd just like a sanity check
on what is supposed to happen.  Let's say we have a nagios.cfg series of
entries like this:


host_perfdata_file=/tmp/host.perfdata
host_perfdata_template=$HOSTNAME$\t$HOSTSTATEID$\t$HOSTOUTPUT$\t$HOSTOUTPUT$
service_perfdata_file=/tmp/service.perfdata
service_perfdata_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t'$SERVICEOUTPUT$'
host_perfdata_file_mode=a
service_perfdata_file_mode=a

If I understand this correctly, the Nagios process opens the two files
and starts appending the information in the format supplied above, correct?

I've checked, and Nagios is opening the files.

[root at g-caon-spdtst-tor01 tmp]# lsof | grep perfdata
nagios 6941 nagios 6w REG 8,3 0 1983833 /tmp/host.perfdata
nagios 6941 nagios 7w REG 8,3 0 1983834 /tmp/service.perfdata
[root at g-caon-spdtst-tor01 tmp]# ps awx | grep nagios
 6941 ?        Ssl    0:12 /usr/sbin/nagios -d /etc/nagios/nagios.cfg
[root at g-caon-spdtst-tor01 tmp]# ls -l *.perfdata
-rw-rw-r-- 1 nagios nagios 0 2011-06-13 18:01 host.perfdata
-rw-rw-r-- 1 nagios nagios 0 2011-06-13 18:01 service.perfdata
[root at g-caon-spdtst-tor01 tmp]#

If I understand all of the above, this file should be collecting the
information dumped to it, and getting larger and larger and larger....

As it stands, nothing is going into the files.

Thoughts?  I'm sure it's something simple and I'm overlooking it.

System specs:
Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL
[root at g-caon-spdtst-tor01 tmp]# uname -a
Linux g-caon-spdtst-tor01 2.6.27.29-170.2.79.fc10.x86_64 #1 SMP Fri Aug
14 20:49:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Cheers!

Craig

-- 
Craig Stewart
Systems Integration Analyst
Craig.Stewart at corp.xplornet.com
Xplornet - Broadband, Everywhere

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list