Page 1 of 1

How to change "Status Information" text in NagiosXI

Posted: Fri Oct 25, 2013 7:49 am
by lafargeuser
Hi
I am monitoring various Hosts & Services via NagiosXI. As one of the requirement I have to change the text being dispayed in the "Status Information" field.

Currently the "Status Information" text in NagiosXI displays the following:
C:\ - total: 49.90 Gb - used: 40.33 Gb (81%) - free 9.57 Gb (19%)

This has to be canged to"
Drive=C:\; total=49.90GB; used=40.33GB (81%); free=9.57GB (19%)

Similarly I have to change the text of all the hosts & services being monitored.
Pl. do let me know if this is possbile to configure & how ?
----------------------------------------------------------------------------------------------------------------
Sorry for the typo, have corrected now.
P.S. : I am just looking at changing the format

Re: How to change "Status Information" text in NagiosXI

Posted: Fri Oct 25, 2013 1:41 pm
by slansing
This is not possible. The plugin is reporting the true amount of space available in this case.. Are you looking to just change "C:\" to "Drive=C:\;"?

Free space on that drive is being reported as "40.33 Gb (81%) - free 9.57 Gb (19%)" Yet you would like it changed to "used=30.05GB (81%); free=19.85GB (19%)"? Is the check incorrectly reporting the true information??

Re: How to change "Status Information" text in NagiosXI

Posted: Sat Oct 26, 2013 5:07 am
by lafargeuser
Sorry for the typo, have corrected now.
P.S. : I am just looking at changing the format
How Do I do that ? Is this possible ?

Re: How to change "Status Information" text in NagiosXI

Posted: Mon Oct 28, 2013 10:09 am
by tmcdonald
Depending on the plugin, this can either be relatively easy or somewhat difficult. Either your plugin is interpreted (perl, python, bash, php) or compiled (c, c++). Either way, you will need to edit the source code in order to change how things are formatted. You could possibly write a wrapper plugin that calls the correct plugin, parses out the data, and reformats it. This all depends on your programming skills.