I was curios if NRDS can be leveraged to send a message based on a trigger from another source. for example:
Log A message "xyz", discovered via log monitor.
Log monitor has a recovery action
Within that recovery action, a critical message is sent to Nagios via NRDP
Submitting a message like you would with NRDP via send.nrdp
any thoughts from anyone?
Can NRDS be used to send a message?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can NRDS be used to send a message?
Sure you could add a plugin to the remote NRDS system, however all of the NRDS plugins are ran on a cron job, and that is what kicks them off, so it would need to fetch information when the cron is ran, and then do something based off the information it gathered.
http://assets.nagios.com/downloads/nagi ... h_NRDS.pdf
http://assets.nagios.com/downloads/nagi ... h_NRDS.pdf
-
kotterbein
- Posts: 87
- Joined: Fri Aug 10, 2012 8:15 am
Re: Can NRDS be used to send a message?
I am currently using it in this capacity, using the check_logfiles plugin. problem is the check_logfiles plugin is taking a large amount of cpu to run and gather it's responses. so I'm looking at actually using a separate agent to run and gather logfile information, parse and alert on generated strings, and on critical alert use NRDS to pass a message (have the separate agent pass along a recovery action to NRDS which sends to Nagios.)
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can NRDS be used to send a message?
Theoretically you could cron this script to run on it's own "not dependant on the crons kicked off by NRDS" then create a plugin to parse the info gathered by the check log script and generate return codes based off values and send that message up to Nagios. This will probably not lessen the load on your remote host, but would separate the whole process up similar to the fashion you are looking for.