Jump to content
Welcome to our new Citrix community!

Custom monitor return value not working


Recommended Posts

Hi,

I have been working on some custom (perl) monitors for the netscaler.

 

In the perl code the return values are defined, example:

return (1,"Unable to connect to server - $!");

If i run the script with nsumon-debug.pl it will return the correct message.

 

Now to the question;

If I select "Monitor Details" (Service Group Member Bindings) the response is either "Success - Probe succeeded." or "Failure - Probe failed." instead of the return value defined in the script.

 

I have tried for example the nssmtp.pl which is shipped with the installation with the same result. There seem to be return values defined in that script, and in other scripts aswell in the /monitor directory.


If there is a error in, or if the file cant be run, it will also report "Failure - Probe failed." (i.e. same error for both service down and probe actually failing to run).

 

I have seen other built in (non custom) monitors reply with ex: "Success - HTTP Response code 200 Received"

 

Is it possible to, or how does one, customize the error/returnvalues of the custom monitors, there may be situations where you'd want to see in which stage or what sort of error occured?

 

I may be doing something wrong, any advice is appreciated.

 

Tested with same result on a Netscaler VPX and MPX.
 

Regards

Jani

 


 

Link to comment
Share on other sites

  • 5 months later...
On 4/16/2019 at 2:13 PM, Jani Tahvanainen1709154167 said:

Hi,

I have been working on some custom (perl) monitors for the netscaler.

 

In the perl code the return values are defined, example:


return (1,"Unable to connect to server - $!");

If i run the script with nsumon-debug.pl it will return the correct message.

 


 

 Hi Jani,

 

did you find out what the problem was? I'm experiencing the same "problem".

 

Regards,

 

Andre

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...