Am 09.01.2015 um 08:56 schrieb Yannick Charton:
Hi all,

Recently, one user of my plugin Interfacetable_v3t plugin reported a
problem when using it with icinga2 + pnp4nagios.

Always provide the initial information required, such as

- installation method (packages, distribution)
- icinga2 --version
- addons/features involved and their version

kind regards,
Michael



I successfully reproduced the situation on a fresh icinga2 install, and
found that the format of the performance data returned by the plugin is
not in the expected one. Indeed, my plugin returns the performance data
in a check_multi format.

In command line, the performance data are:
Interface_global::check_interface_table_global::time=0.07s;;;;
uptime=451135s;;;; watched=3;;;; useddelta=3s;;;; ports=2;;;;
freeports=2;;;; adminupfree=2;;;;
If_lo::check_interface_table_port::OperStatus=1;;;0;
BpsIn=0;10100000;10100000;0;10000000
BpsOut=0;10100000;10100000;0;10000000 PpsInErr=0;1000;5000;0;
PpsOutErr=0;1000;5000;0; PpsInDiscard=0;1000;5000;0;
PpsOutDiscard=0;1000;5000;0;
If_eno1::check_interface_table_port::OperStatus=1;;;0;
BpsIn=0;1010000000;1010000000;0;1000000000
BpsOut=0;1010000000;1010000000;0;1000000000 PpsInErr=0;1000;5000;0;
PpsOutErr=0;1000;5000;0; PpsInDiscard=0;1000;5000;0;
PpsOutDiscard=0;1000;5000;0;
If_eno2::check_interface_table_port::OperStatus=2;;;0; BpsIn=0;;;0;
BpsOut=0;;;0; PpsInErr=0;1000;5000;0; PpsOutErr=0;1000;5000;0;
PpsInDiscard=0;1000;5000;0; PpsOutDiscard=0;1000;5000;0;

The performance data returned by Icinga2 are:
Interface_global::check_interface_table_global::time=0.09s;;;;
Interface_global::check_interface_table_global::uptime=453660s;;;;
Interface_global::check_interface_table_global::watched=3;;;;
Interface_global::check_interface_table_global::useddelta=780s;;;;
Interface_global::check_interface_table_global::ports=2;;;;
Interface_global::check_interface_table_global::freeports=1;;;;
Interface_global::check_interface_table_global::adminupfree=1;;;;
If_lo::check_interface_table_port::OperStatus=1;;;0;
If_lo::check_interface_table_port::BpsIn=2659.52;10100000;10100000;0;10000000
If_lo::check_interface_table_port::BpsOut=2659.52;10100000;10100000;0;10000000
If_lo::check_interface_table_port::PpsInErr=0;1000;5000;0;
If_lo::check_interface_table_port::PpsOutErr=0;1000;5000;0;
If_lo::check_interface_table_port::PpsInDiscard=0;1000;5000;0;
If_lo::check_interface_table_port::PpsOutDiscard=0;1000;5000;0;
If_eno1::check_interface_table_port::OperStatus=1;;;0;
If_eno1::check_interface_table_port::BpsIn=6182.48;1010000000;1010000000;0;1000000000
If_eno1::check_interface_table_port::BpsOut=45638.64;1010000000;1010000000;0;1000000000
If_eno1::check_interface_table_port::PpsInErr=0;1000;5000;0;
If_eno1::check_interface_table_port::PpsOutErr=0;1000;5000;0;
If_eno1::check_interface_table_port::PpsInDiscard=0;1000;5000;0;
If_eno1::check_interface_table_port::PpsOutDiscard=0;1000;5000;0;
If_eno2::check_interface_table_port::OperStatus=2;;;0;
If_eno2::check_interface_table_port::BpsIn=0;;;0;
If_eno2::check_interface_table_port::BpsOut=0;;;0;
If_eno2::check_interface_table_port::PpsInErr=0;1000;5000;0;
If_eno2::check_interface_table_port::PpsOutErr=0;1000;5000;0;
If_eno2::check_interface_table_port::PpsInDiscard=0;1000;5000;0;
If_eno2::check_interface_table_port::PpsOutDiscard=0;1000;5000;0;

I didn't find any info about the combinaison icinga2 + check_multi. Is
there a special configuration option to use in the CheckCommand
definition, to be able to return the performance data in a check_multi
format? Or is it a bug? As I didn't have time to play with Icinga2 yet,
I don't know the subtlety of the service/checkcommand configurations in
this new release, so I prefer to ask before opening a new issue.

Another solution would be to work on the pnp4nagios xml file generation,
where most of the ds are missing. For exemple, for Interface_global in
this exemple, the xml file only contains the last ds which is adminupfree.

Best regards, and happy new year!
Yannick (aka Tontonitch)


_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users



--
DI (FH) Michael Friedrich

[email protected]  || icinga open source monitoring
https://twitter.com/dnsmichi || lead core developer
[email protected]       || https://www.icinga.org/team
irc.freenode.net/icinga      || dnsmichi
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to