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
How to change "Status Information" text in NagiosXI
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
How to change "Status Information" text in NagiosXI
Last edited by lafargeuser on Mon Oct 28, 2013 1:09 am, edited 1 time in total.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: How to change "Status Information" text in NagiosXI
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??
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??
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: How to change "Status Information" text in NagiosXI
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 ?
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
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.
Former Nagios employee