Comments (12)
Hi @ix-dev,
do you have an idea how we could fix this or are you able to provide a patch for this? A quick solution could be to add an switch, which completly disables the perfdata output for the plugin.
Maybe we also could ignore the metric if the value is e.g. an string.
from check_netscaler.
I think the best solution would be to output only numeric perfdata since string values are not supported by Nagios/Icinga. In order to provide backward compatibility, a switch like '--numeric-perfdata' could also be added.
from check_netscaler.
Hi just wanted to let you know that I have solved that.
It will be problem if in data output will be label with . in the name ... like system.memory ... it was similar case opened at icinga2 community:
https://community.icinga.com/t/issue-icinga-not-showing-metrics-stored-in-graphite/466/3
example:
-icinga2 will not store graphs:
NetScaler OK - perfdata: ns_tcpcurserverconn: 9163 | 'ns.tcpcurserverconn'=9163;;
-icinga2 will store graphs:
NetScaler OK - perfdata: ns_tcpcurserverconn: 9163 | 'ns_tcpcurserverconn'=9163;;
After troubleshooting I have made some changes almost on every line where I have $plugin->add_perfdata...
for 1 example changing label inside hash structure and changing the "." to "_"
original:
$plugin->add_perfdata(
label => "'" . $plugin->opts->objectname . ".member_quorum'",
value => $member_quorum . '%',
min => 0,
max => 100,
warning => $member_quorum_warning,
critical => $member_quorum_critical,
);
I have changed to this:
$plugin->add_perfdata(
label => "'" . $plugin->opts->objectname . "_member_quorum'",
value => $member_quorum . '%',
min => 0,
max => 100,
warning => $member_quorum_warning,
critical => $member_quorum_critical,
);
After changes has been done, we are getting the graphs.
Maybe you should think also to change the format of output.
This plugin is great and thank you for sharing it with community.
KR,
Josip
from check_netscaler.
HI @fatslimjoe,
thanks for your information and research. Changing the labels would break metrics for existing users. I'm not really happy with this, but it seems we need to do this.
Could you share your changes with us with a pull request?
from check_netscaler.
Hi @slauger ,
I am getting 403 error. Could you be so kind and check permissions? Otherwise if the problem is on my side I will send you changed script.
BR,
Josip
from check_netscaler.
Hi @fatslimjoe,
I guess this would be your first contribution on GitHub? What exactly have you tried? it's not possible to push directly to this repository. Just create a fork (fork button in the top right), make your changes there and issue a pull request from it.
See also https://opensource.com/article/19/7/create-pull-request-github.
If you need more help, you could also reach me out via Microsoft Teams or Telegram.
from check_netscaler.
9a9a1b1 adds the ability to configure a custom separator (e.g. _
instead of the default .
).
from check_netscaler.
Fixed with v1.6.1.
from check_netscaler.
v.1.6.1 still returns invalid performance data values.
[2021-09-10 09:55:46 +0200] warning/InfluxdbWriter: Ignoring invalid perfdata value: ns.hacurstate=UP;;
[2021-09-10 09:55:46 +0200] warning/InfluxdbWriter: Ignoring invalid perfdata value: ns.hacurmasterstate=Primary;;
Could you please have a look at this issue?
from check_netscaler.
There are no plans to change the current default. Have you tried to use the --seperator='_'
switch?
from check_netscaler.
The problem is not the label / separator. Nagios / Icinga2 only allows numeric values. Strings are not allowed.
According to the Nagios Plugins Development Guidelines the value has to be in class [-0-9.] and 'a' for the UOM (unit of measurement) is not supported. So 'UP' or 'PRIMARY' also not allowed.
from check_netscaler.
ef23964 should fix the measurement problem. For the rest i need to find a proper test environment first.
from check_netscaler.
Related Issues (20)
- SDX Support HOT 1
- NetScaler UNKNOWN - 501 Protocol scheme 'proxyname' is not supported HOT 2
- Check that ACLs are Enabled HOT 2
- NTP Check shows perl warnings Use of uninitialized value HOT 1
- Alive? 12.1: Build 51.19 ? HOT 4
- Partition support HOT 10
- incorrect CRITICAL alert assignment HOT 1
- Linting in Travis CI pipeline (perltidy) HOT 1
- interface support HOT 2
- Delete me
- Expanded and extended options for sslcert HOT 1
- Icinga2 issue with performance data HOT 1
- Interface perf data HOT 13
- Invalid comparison in ntp check
- NetScaler CRITICAL - state: no VPNvServer found in configuration HOT 2
- check_ntp_time: NTP CRITICAL: Offset unknown #329 HOT 1
- Check the expiry date of a local license file HOT 2
- Get particular information of hwinfo (like: nsversion or hwdescription) HOT 1
- Wrong CPUusagepcnt in 13.0 HOT 3
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 check_netscaler.