C# check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
zamykiller
Posts: 12
Joined: Wed Feb 12, 2014 9:56 am

C# check

Post by zamykiller »

Hello everybody,

I need to make a .exe file that check of the given up multicast stream is availible.
I need to check this with NRPE.

I am writing in C#. I already make the code for checking if the multicast stream is availble.

This is working fine. But i don't know how or what i need to return so NSClient can return this with NRPE to my Nagios server.

Do you guys know any of this?

Thanks.

Have a nice day,
Zamykiller
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: C# check

Post by slansing »

Yes, the plugin must provide an exit code and status output for each exit, the possible codes are 0,1,2,3. You can see the requirements here:

https://nagios-plugins.org/doc/guidelines.html
Locked