Page 1 of 1

unable to process perf data

Posted: Mon Apr 06, 2020 4:22 am
by agopir73
Hi Team, we have few concerns to enable performance data.

1) We are unable to process perf data by using active check
2) Can we process data with more then 5 columns ?
As per the documet we can see only 5 columns ( 'label'=value[UOM];[warn];[crit];[min];[max] )
https://nagios-plugins.org/doc/guidelines.html
3) Can we process performance data if file size more then 40kb data ?

Please check and do the needful on priority

Re: unable to process perf data

Posted: Mon Apr 06, 2020 1:01 pm
by cdienger
Performance data can include multiple labels each with their own details but each label is limited to one value, warn, crit, min, and max columns.

The data that is made available in perdata should be relatively small. What does your output look like when you run the plugin on the command line?

Here is an example of output from a check_disk plugin where you can see

Code: Select all

DISK OK - free space: / 10011 MB (55.99% inode=99%); /dev 1885 MB (100.00% inode=100%); /dev/shm 1895 MB (100.00% inode=100%); /run 1887 MB (99.55% inode=100%); /sys/fs/cgroup 1895 MB (100.00% inode=100%); /boot 198 MB (39.93% inode=100%); /var/nagiosramdisk 99 MB (99.78% inode=100%); /run/user/0 379 MB (100.00% inode=100%);| /=7866MB;17869;17868;0;17878 /dev=0MB;1876;1875;0;1885 /dev/shm=0MB;1886;1885;0;1895 /run=8MB;1886;1885;0;1895 /sys/fs/cgroup=0MB;1886;1885;0;1895 /boot=298MB;487;486;0;496 /var/nagiosramdisk=0MB;91;90;0;100 /run/user/0=0MB;370;369;0;379
The perfdata is everything after the | :

Code: Select all

/=7866MB;17869;17868;0;17878 
/dev=0MB;1876;1875;0;1885 
/dev/shm=0MB;1886;1885;0;1895 
/run=8MB;1886;1885;0;1895 
/sys/fs/cgroup=0MB;1886;1885;0;1895 
/boot=298MB;487;486;0;496 
/var/nagiosramdisk=0MB;91;90;0;100 
/run/user/0=0MB;370;369;0;379
You can see how it is formatted label=value,warn,crit,min,max.