Regex and ssh proxy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
btayl
Posts: 123
Joined: Mon Aug 24, 2020 8:51 am

Regex and ssh proxy

Post by btayl »

Using a ssh proxy can you use an regex repression on date retrieved from a script ?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Regex and ssh proxy

Post by benjaminsmith »

Hi @btayl,

Hope you are enjoying the trial of Nagios XI. Sure, that could certainly be accomplished with some scripting. Are you trying to run checks on the date returned? Please let us know a few more details and I can provide some suggestions.

Thanks!
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
btayl
Posts: 123
Joined: Mon Aug 24, 2020 8:51 am

Re: Regex and ssh proxy

Post by btayl »

Hi Benjamin

Trial is going good just trying to wrap up different monitors we use to prove we can switch to your product.

so in our current monitoring solution their is a script called Wrapper on a AIX machine that we pass parameters to and then we are able to do a matching expression "/Neglected messages in: (.*)/" and then in threshold setting Error != '(none)' Good == '(none)'

the script is a vendor owned.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Regex and ssh proxy

Post by benjaminsmith »

Hi,
Trial is going good just trying to wrap up different monitors we use to prove we can switch to your product.
Great just let us know what else you need help with.

Regarding the wrapper script, that doesn't look like too much trouble, Nagios XI is very flexible. You'll set up a service using SSH, and then for each check Nagios XI will run the script locally either as a service check or event handler depending on your requirements.

If this is set up as a service check, the script would need to return a compliant exit code, so you may need to modify the script or create another wrapper.

Here a few useful links to help get you started.

Monitoring Hosts Using SSH
Nagios Plugin Guideline
Introduction to Event Handlers
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Regex and ssh proxy

Post by benjaminsmith »

Hi,
Trial is going good just trying to wrap up different monitors we use to prove we can switch to your product.
Great just let us know what else you need help with.

Regarding the wrapper script, that doesn't look like too much trouble, Nagios XI is very flexible. You'll set up a service using SSH, and then for each check Nagios XI will run the script locally either as a service check or event handler depending on your requirements.

If this is set up as a service check, the script would need to return a compliant exit code, so you may need to modify the script or create another wrapper.

Here a few useful links to help get you started.

Monitoring Hosts Using SSH
Nagios Plugin Guideline
Introduction to Event Handlers
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked