service_perfdata

hindrek murdsalu hindrek.murdsalu at tallink.ee
Wed Oct 3 11:29:00 CEST 2007


This is getting a bit incomprehensible; I even went as far as to roll
back to 3.0b1, still the same situation, nothing is being written to
file. Checked if the Nagios user could use printf and did a test, it
wrote into the same file just fine, then figured maybe 1 of the macros
used in defining the command has been renamed/removed (even though I
switched back to 3.0b1), so tried with 
define command{
        command_name    process-service-perfdata
        command_line    /usr/bin/printf "%b"
"$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\n" >>
/usr/local/nagios/var/service-
perfdata.out
        }
Still nothing of course, there doesn't seem to be any debug info for
performance data either, which is weird considering I may use Nagios'
own internal write-to-file method instead of using the command with
printf (which I did and it didn't work either).
Switched retain_nonstatus_information to 0 before reloading Nagios just
in case, that didn't do the trick either.
Could something non-Nagios related be preventing it from
fetching/writing the data?



-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of hindrek
murdsalu
Sent: 2. oktoober 2007. a. 17:09
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] service_perfdata

Hey,

I was trying to get nagiosgrapher to work but it didn't seem to get any
data from Nagios, so at the end of the day I got frustrated and checked
if Nagios can output the data to a file with the default settings and to
my surprise, it didn't write any data to file either, which is funny
beacuse I've been able to do that before, the service-perfdata.out file
still contains the old data from a month ago. Here's my config files:

Nagios.cfg

process_performance_data=1
service_perfdata_command=process-service-perfdata
service_perfdata_file=/usr/local/nagios/var/service-perfdata.dat
service_perfdata_file_template=[SERVICEPERFDATA]\t$DATE$\t$HOSTNAME$\t$S
ERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t
$SERVICEPERFDATA$
service_perfdata_file_mode=a
(file processing disabled)

Commands.cfg

define command{
        command_name    process-service-perfdata
        command_line    /usr/bin/printf "%b"
"$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICE
ATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t
$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >>
/usr/local/nagios/var/service-perfdata.out
        }

I've made sure that I haven't disabled performance data processing on
hosts/services/templates. 
As I said, this worked for me earlier with nagios version 3.0b1, now I
use 3.0b3.

What could be the problem here?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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