Page 1 of 1

under one service, multiple "Status Information"

Posted: Sun Sep 16, 2018 7:19 am
by zaji_nms
@cdienger

ref to our last post
https://support.nagios.com/forum/viewto ... 16&t=50038
looks there is no easy/quick solution , so there is little work around

HostName ,, Service ,, Nagios Status Information
par-7600 ,, Giga0/1 Status ,, OK: Interface 28 (index 28) is up
par-7600 ,, Giga0/1 Bandwidth ,, OK Current BW in: 6.64Mbps Out: 15.73Mbps
par-7600 ,, Giga0/1 Latency ,, rtt min/avg/max = 7/8/9 ms

in the above, the very first service : Giga0/1 Status , having output (i.e Status Information , right most column in Home ServiceDetail) "OK: Interface 28 (index 28) is up" , in addition to this, we want display other two output "OK Current BW in: 6.64Mbps Out: 15.73Mbps" and "rtt min/avg/max = 7/8/9 ms"

Please note our Status service is very important, additional service output we want to display but should be very quick, we will modify "check_ifoperstatus" as per your advice.

is there any way to fetch quickly from service.xml file : NAGIOS_SERVICEOUTPUT or may be other better & quick way

Regards

Re: under one service, multiple "Status Information"

Posted: Mon Sep 17, 2018 10:12 am
by cdienger
I don't think Nagvis will pull directly from this file but you can get the same info using [obj_output] or [obj_summary_output].

Re: under one service, multiple "Status Information"

Posted: Tue Sep 18, 2018 12:59 am
by zaji_nms
@cdienger

This time we not talking about Nagvis, can you please read my last thread once again.

Upon your advice we will modify shell script "/usr/local/nagios/libexec/check_ifoperstatus" so it will fetch another two more info.

Regards

Re: under one service, multiple "Status Information"

Posted: Tue Sep 18, 2018 9:42 am
by cdienger
Custom development work is beyond the scope of what we can provide in support but we do have documents that can help with this:

https://exchange.nagios.org/directory/T ... pt/details
https://assets.nagios.com/downloads/nag ... inapi.html
http://nagios-plugins.org/doc/guidelines.html

We can do custom development as well but you'll need to reach out to [email protected] to get that ball rolling.