Regex and ssh proxy
Regex and ssh proxy
Using a ssh proxy can you use an regex repression on date retrieved from a script ?
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Regex and ssh proxy
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Regex and ssh proxy
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.
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.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Regex and ssh proxy
Hi,
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
Great just let us know what else you need help with.Trial is going good just trying to wrap up different monitors we use to prove we can switch to your product.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Regex and ssh proxy
Hi,
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
Great just let us know what else you need help with.Trial is going good just trying to wrap up different monitors we use to prove we can switch to your product.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!