Question

Disk display properly with NRPE

  • 12 July 2022
  • 2 replies
  • 555 views

Badge +3

Hi,

 

I used to use SNMP to monitor the disk space of my servers and I used --filter-perfdata='storage.space|used|free' to have a nice display in my web interface and in my notifications. Today I use NRPE but unfortunately the display is like this: 

What option would allow me to have the used space in % or the free space in %?

what i have now :( 

Thanks in advance :) 


2 replies

Userlevel 5
Badge +17

Moved to data collection

Userlevel 4
Badge +13

@Maxime-koe 

 

Using NRPE3 ( https://docs.centreon.com/pp/integrations/plugin-packs/procedures/operatingsystems-linux-nrpe3/ )

 

-bash-4.2$  /usr/lib64/nagios/plugins/check_centreon_nrpe3 -H 127.0.0.1 -p 5666 -t 5 -u -c check_centreon_plugins -a 'os::linux::local::plugin' 'storage'  ' --filter-mountpoint="" --warning-usage="" --critical-usage="" --verbose '
OK: All storages are ok | 'used_/'=6908747776B;;;0;21463281664 'used_/dev'=0B;;;0;937250816 'used_/dev/shm'=0B;;;0;962695168 'used_/run'=109633536B;;;0;962695168 'used_/run/user/1000'=0B;;;0;192540672 'used_/sys/fs/cgroup'=0B;;;0;962695168
Storage '/' Usage Total: 19.99 GB Used: 6.43 GB (32.19%) Free: 13.55 GB (67.81%)
Storage '/dev' Usage Total: 893.83 MB Used: 0.00 B (0.00%) Free: 893.83 MB (100.00%)
Storage '/dev/shm' Usage Total: 918.10 MB Used: 0.00 B (0.00%) Free: 918.10 MB (100.00%)
Storage '/run' Usage Total: 918.10 MB Used: 104.55 MB (11.39%) Free: 813.54 MB (88.61%)
Storage '/run/user/1000' Usage Total: 183.62 MB Used: 0.00 B (0.00%) Free: 183.62 MB (100.00%)
Storage '/sys/fs/cgroup' Usage Total: 918.10 MB Used: 0.00 B (0.00%) Free: 918.10 MB (100.00%)

 

Reply