Comments (2)
SAVEDDATA is my own extension to Nagios which adds an an result string for output to plugins that is similar to PERFDATA but is not for use by graphing programs and only available as special MACRO. It is not part of standard nagios distribution so nobody but myself I'd expect to use it, at least right now. This type of data goes after || as opposed to | for PERFDATA.
When you use this switch all data that is re-used by plugin goes into that new part of OUTPUT. What is left before || is only what you specifically asked to be available with perf-output switches (-e, -Z, -y, -Y) which for output of octets this is done with -Z switch. If it is not present the data is not part of PERFDATA although it is sent to SAVEDDATA since that is required for by plugin to calculate average traffic to be displayed at the status line.
The line in the code that you found is actually exactly what it should be, I modified it when I added experimental SAVEDDATA support and tested to make sure when -Z switch is present the octets would still go to PERFDATA (-Z switch is $o_perfo). So there is no problem in the code and I will close this github issue in a few days.
First however I'd like to know how come you were using --nagios_with_savedata option?
from naglio-plugins.
Ah - I thought -P enabled -Z.
I'm was planning to add SAVEDATA to shinken - thinking it was already in nagios. The reason being to fix php4nagios graphing.
As the SAVEDATA patch hasn't made it into nagios this would make less sense. I'm using the LONGSERVICEOUTPUT macro instead - the only difference is replacing || with \n in the output.
from naglio-plugins.
Related Issues (20)
- check_snmp_raid and multiple controllers HOT 7
- check_linux_procstat pnp4nagios template HOT 3
- check_file - failure under embedded perl HOT 4
- Support check of total keys per database in check_redis? HOT 3
- check_files.pl: -l and -F <wildcard> with no files matching wildcard results in UNKNOWN ERROR HOT 4
- redis 2.6 memory_utilization data is missing HOT 2
- check_snmp_raid.pl: use strict / warnings issues HOT 4
- check_netint.pl fails for too many interfaces via snmp HOT 2
- Support bytes read/write per second in check_memcache.pl HOT 12
- Use of uninitialized value within @oid_perf_inoct
- check_linux_procstat.pl with oracle linux kernel 2.6.39 doesn't work anymore
- check_files.pl issue with directory listings (remote file system) HOT 2
- check_uptime.pl perfdata empty when uptime has 0 hours
- check_redis.pl get hit rate with previous perf data
- check_files.pl - -a without WARNING value always returns WARNING
- Changing of ifDescr of SNMP of Debian Jessie and "-n" parameter
- check_snmp_attributes.pl: Argument "v6.0.1" isn't numeric in numeric lt (<)
- version with more readable time output
- Checking if nagios strips single quote in perfdata doesn't work in check_netint.pl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naglio-plugins.