LONGSERVICEOUTPUT MACRO is not working

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
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

LONGSERVICEOUTPUT MACRO is not working

Post by padu_3891 »

Hello Team,

I have developed a bash script to get the last check service output and manipulate for next action for next check.
But unable to get the value for the macro, even tried with macro $SERVICEOUTPUT$, still the value is empty.

there is no "\n" or new line, the actual output is only one line with limited characters.

I am wondering why it is not working.

LONGSERVICEOUTPUT MACRO is not working.

Please advice.
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: LONGSERVICEOUTPUT MACRO is not working

Post by padu_3891 »

I have tried with $SERVICEOUTPUT$, it works but not working with $LONGSERVICEOUTPUT$ MACRO, please help.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: LONGSERVICEOUTPUT MACRO is not working

Post by cdienger »

Is this script used as an event handler? Can you post a copy of it?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked