No output to perfdata.log of Total Processes

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: No output to perfdata.log of Total Processes

Post by agriffin »

Perfdata is communicated to Nagios by the output of running a plugin. It's everything after a "pipe" character (that vertical bar on your keyboard - | ). The output you posted shows that your plugin does NOT output this data. I'm not sure what perfdata.log is showing, but if you were able to get perfdata out of this plugin it is because you invoked it differently or used another version with support for perfdata.
draakje

Re: No output to perfdata.log of Total Processes

Post by draakje »

agriffin wrote:Perfdata is communicated to Nagios by the output of running a plugin. It's everything after a "pipe" character (that vertical bar on your keyboard - | ). The output you posted shows that your plugin does NOT output this data. I'm not sure what perfdata.log is showing, but if you were able to get perfdata out of this plugin it is because you invoked it differently or used another version with support for perfdata.
Ok I get this part..
But maybe I am not explaining myself correctly.

I would like to know why the graph for the Total Processes does work with Nagios ver 3.2.3 (& Nagiosgraph 1.4.4) and why it doesn't work with Nagios 4.3.1 (& Nagiosgraph 1.4.4). All configuration/installation is the same.

Only difference I see is in the debug whereas the older version has some additional Macro processing. (which will convert the output of the Total Processes into the perforate.log)

Regards
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: No output to perfdata.log of Total Processes

Post by agriffin »

I guess I'm not sure then. My understanding is that this shouldn't be the case.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: No output to perfdata.log of Total Processes

Post by jsmurphy »

draakje wrote: I would like to know why the graph for the Total Processes does work with Nagios ver 3.2.3 (& Nagiosgraph 1.4.4) and why it doesn't work with Nagios 4.3.1 (& Nagiosgraph 1.4.4). All configuration/installation is the same.

Only difference I see is in the debug whereas the older version has some additional Macro processing. (which will convert the output of the Total Processes into the perforate.log)

Regards
I think we would all like to know why it worked, because it's not supposed to :lol:. It could be that there was a test feature or something in that version of Nagios that made a "best guess" at trying to create generate performance data... though I've never heard of such a feature. Maybe agriffin could ask one of the core devs if such a feature was ever tested or existed but to the best of our collective knowledge it's not a bug because it was never meant to exist in the first place.
Locked