Dear Expert
As a service we monitoring perfectly Latency between two Cisco Routers.
Our X-developer took the Latency values from xml and was showing in tabular format, however we unable to locate that file in NagiosXI (2014 R2.0)
file http://our-front-end-server/Host/NXI/Co ... Status.xml
Can you please guide is there any xml file having all the service status and by reading that file our developer can extract all the service status, values ?
Regards
Service Status from XML file
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Service Status from XML file
Thanks! jdalrymple
Sure will check with our senior and developing team, meanwhile if you have any other options, little more guidance , appreciate your assistance.
Regards
Sure will check with our senior and developing team, meanwhile if you have any other options, little more guidance , appreciate your assistance.
Regards
Zajil NMS
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Service Status from XML file
I don't. There are some other APIs on the Exchange but the level of support you'll get from those is limited and most have probably had development cease on them. Our backend API component is still in its infancy, but it will continue to be developed and supported.
Have your developers fiddle with it, see how they can use it to their benefit and if they see any changes we could put in as feature requests that might be useful to you let us know.
Have your developers fiddle with it, see how they can use it to their benefit and if they see any changes we could put in as feature requests that might be useful to you let us know.
Re: Service Status from XML file
Dear jdalrymple/Expert....sorry for bother you much
me thinking if your above advice tough for me/developer, how can be other way for the solution.
As I said, service is perfectly working and latency value is okay.
HOST : mybnk-dxb-s5901p
SERVICE : dxb_bdd:ksa:real_time_sla_rtt
Status Information : OK - RTT: 38/38/54 (from Service Status)
If I open the service in another tab, its showing as below
http://192.168.55.66/nagiosxi/includes/ ... &dest=auto
Sure there is way to extract only "Status Information", how? Little bit different URL then above, display or give only Status Information. Via URL or via direct reading MySQL (then what is DATABASE , Table and Field ?)
in this example Status Information = OK - RTT: 38/38/54
FYI, as there is latency graph, looking 4 hours there is below URL, is there any way to read last value?
http://192.168.55.66/nagiosxi/perfgraph ... ice_id=305
me thinking all the possible ways, short or long to resolve my issue as requirement from our Top Management.
Regards
me thinking if your above advice tough for me/developer, how can be other way for the solution.
As I said, service is perfectly working and latency value is okay.
HOST : mybnk-dxb-s5901p
SERVICE : dxb_bdd:ksa:real_time_sla_rtt
Status Information : OK - RTT: 38/38/54 (from Service Status)
If I open the service in another tab, its showing as below
http://192.168.55.66/nagiosxi/includes/ ... &dest=auto
Sure there is way to extract only "Status Information", how? Little bit different URL then above, display or give only Status Information. Via URL or via direct reading MySQL (then what is DATABASE , Table and Field ?)
in this example Status Information = OK - RTT: 38/38/54
FYI, as there is latency graph, looking 4 hours there is below URL, is there any way to read last value?
http://192.168.55.66/nagiosxi/perfgraph ... ice_id=305
me thinking all the possible ways, short or long to resolve my issue as requirement from our Top Management.
Regards
Zajil NMS
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Service Status from XML file
So you're wishing to instead of have XML returned, you want to pass parameters in the URL and have ONLY the status returned, perhaps as an ASCII string?
This is not functionality that's built in today - your developers will have to parse the XML.
This is not functionality that's built in today - your developers will have to parse the XML.
Re: Service Status from XML file
Dear jdalrymple
We took the file /usr/local/nagios/var/nagios.log and nearly its okay , however found some values are not there. Can you just clarify that this log only got written if there is any change in the status? I mean if the status remain unchanged it will not write any log. If status remain same and no log entry written then we took wrong decision to select this file /usr/local/nagios/var/nagios.log to take (extract) the need values.
If you answer is YES, no log entry will be written if there is no change in the status, then is there any way , we can force some services to be written in the nagios.log periodically?
Regards
We took the file /usr/local/nagios/var/nagios.log and nearly its okay , however found some values are not there. Can you just clarify that this log only got written if there is any change in the status? I mean if the status remain unchanged it will not write any log. If status remain same and no log entry written then we took wrong decision to select this file /usr/local/nagios/var/nagios.log to take (extract) the need values.
If you answer is YES, no log entry will be written if there is no change in the status, then is there any way , we can force some services to be written in the nagios.log periodically?
Regards
Zajil NMS
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Service Status from XML file
The only way to update the service status is going to be through the command file, you cannot update through the API.
When you say "some values are not there" do you mean they're not updating or do you mean there are some metrics you wish to read that aren't available through the API? If so what metrics?
The XML from the API is correct at the time it's queried, but of course in order to get current values again at a later date you'd have to query it again.
I'm not sure I understand your questions entirely, it might be helpful if you could explain to us how you want to use the data then we can help use the tools properly.
When you say "some values are not there" do you mean they're not updating or do you mean there are some metrics you wish to read that aren't available through the API? If so what metrics?
The XML from the API is correct at the time it's queried, but of course in order to get current values again at a later date you'd have to query it again.
I'm not sure I understand your questions entirely, it might be helpful if you could explain to us how you want to use the data then we can help use the tools properly.