Strange problem with perfomance data
Steve Kieu
msh.computing at gmail.com
Thu Oct 27 08:16:41 CEST 2011
Yep I found it before reading this message that if I put | in the output of
the plugin it works. Thanks anyway
cheers
On Mon, Oct 24, 2011 at 10:34 PM, Jim Avery <jim at jimavery.me.uk> wrote:
> 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
>
--
Steve Kieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111027/c4c838ca/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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
-------------- 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