Page 1 of 1

disk alert modification

Posted: Tue Jul 18, 2023 8:05 am
by sidsharma
Hi All,

I am new and navie to Nagios (Nagios core 4.1.1).

I have set Nagios w/ NRPE and it is working fine.

However, the alerts and the service state information on nagios portal is something like below:

Status Information: DISK OK - free space: /home/ccc 131017 MB (27.45% inode=100%)

it shows 27.45% is the actual a free space e.g 131017 MB.

Is there a way, it would show the used space instead of free space. Since, i have to do the calculation 100 - 27 = 73% (used) in my mind whenever i get alerts.

Besides, I don't want inode details anywhere in the alerts as well as on the service state information.

Thanks

Re: disk alert modification

Posted: Tue Jul 18, 2023 12:56 pm
by vappukuttan

Re: disk alert modification

Posted: Wed Jul 19, 2023 2:36 am
by sidsharma
I appreciate it.

However, I am so sorry to inform you that the URL is just, how to setup disk_check alert.

I want to modify the output of the check_disk pluggin as I wrote down in my post.

Thanks

Re: disk alert modification

Posted: Fri Jul 21, 2023 12:43 am
by kg2857
You're allowed to search the internet.
Run the plugin with the -h option and see what it says. If the -h doesn't help, look for more details info on the internet (github, etc.), look for another plugin, or write your own. This is pretty much the answer to all questions of this type.