Agent CLI to send alert to Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
swamid
Posts: 2
Joined: Fri Jan 25, 2019 3:42 pm

Agent CLI to send alert to Nagios

Post by swamid »

After I install the agent, is there an API available to send a custom alert to the console?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Agent CLI to send alert to Nagios

Post by lmiltchev »

Can you elaborate on that? What agent are you talking about? What kind of "custom alert" are you trying to send? We need more information in order to point you to the right direction. Please give us some examples.
Be sure to check out our Knowledgebase for helpful articles and solutions!
swamid
Posts: 2
Joined: Fri Jan 25, 2019 3:42 pm

Re: Agent CLI to send alert to Nagios

Post by swamid »

For ex. I have a script in cron that does some data processing and I want to send an alert at various exit code with custom message.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Agent CLI to send alert to Nagios

Post by lmiltchev »

This is still not very helpful... What does this custom script have to do with Nagios XI or with the "installed agents" (in any - you haven't explained what agents you were talking about)?

What is your objective? What do you mean by "to send a custom alert to the console"? Are you talking about an alert or notification? Again, show us examples. Post your custom script and explain how you intend to use it.

FYI, Nagios XI has a REST API available if this is what you are looking for. The REST API documentation can be found under the "Help" menu.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked