blank perfdata: not parsing macros

M P reg at eyesopen.org
Wed Mar 18 00:47:22 CET 2009


Hi,

I have nagios3 running (installed via apt-get on Debian). Everything  
worked pretty well until I tried to add graphing support.

As described in numerous how-tos, I added the following to nagios.cfg:

CODE: SELECT ALL
process_performance_data=1
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=$LASTSERVICECHECK$\t$HOSTNAME$\t 
$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t 
$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t 
$SERVICEPERFDATA$\n
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-perfdata


and kept the default value for the service-perfdata in commands.cfg:

CODE: SELECT ALL
define command{
    command_name    process-service-perfdata
    command_line   /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$ 
\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t 
$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t 
$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out
    }



The trouble is that file /usr/local/nagios/var/service-perfdata  
remains blank (but it does get created), while /var/lib/nagios3/ 
service-perfdata.out gets filled with:
CODE: SELECT ALL
$   glass$   $   $   $   $   $   $   $   $



Glass is the name of localhost. There is a dozen other servers that  
nagios monitors, yet they don't show up in the service-perfdata.out  
file at all. It looks like macros ($LASTSERVICECHECK$, $SERVICEOUTPUT 
$) do not get recognized, but there may be other things going on that  
I have not identified.

All other features of nagios seem to be working fine. Macros  
definitely work in other commands.

Any help is greatly appreciated. If you need any other diagnostic  
info, I will provide it promptly.


Thanks,


M
---
reg at eyesopen.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090317/6ff1033b/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
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