Strange problem with perfomance data

Jim Avery jim at jimavery.me.uk
Mon Oct 24 13:34:08 CEST 2011


On 24 October 2011 01:00, Steve Kieu <msh.computing at gmail.com> wrote:
> Hello everyone,
>
> I have strange problem with nagios not writing performance data for some
> services checks but it does for some others and checking it does not return
> any clue at all. The purpose is to parse this for nagios_grapher - and to
> debug I just echo it to a file and see that symptom.
>
> Basically all options look correct - service a and b all use generic service
> and option process_perf_data is set to 1, and nagios.cfg it is enabled.
>
> Service b nagios does write serivce performance data to a file that I set,
> Service a does not
>
> Run the command check for service a it print a line like this
>
> su nagios -c '/usr/local/nagios/libexec/check_isdn_channels 10.200.200.33 40
> 50'
> OK: There are 25 channels up out of 60
>
> so nothing special, and similarto the service b service check command, we do
> not use pipe |  after the main one at all and only parse the %SERVICEOUTPUT$

What does service b output?

> any ideas about what to track to find out why this happened would be highly
> appreciated.

My wild guess is that Nagiosgrapher doesn't know which of the two
numbers "25" or "60" to parse (how could it?) so it doesn't.

I strongly recommend you use plugins which follow the developer
guidelines, producing the performance data after the "|".  Even if the
plugin doesn't produce any performance data, I would either re-write
it so it does or would write a wrapper script to give Nagios correctly
formatted performance data.

Cheers,

Jim

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning at Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-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