Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Simple shell script to monitor the EMC Networker daemon.raw log file and check for specific patterns in the last N hours, passed as an argument.
Current Version
1.0.0
Last Release Date
2025-06-13
Owner
Andrea Bolongaro
License
GPL
Compatible With
check for issues in EMC Networker daemon.raw log file
This bash script is to monitor the EMC Networker daemon.raw log file and check for specific patterns in the last N hours, passed as an argument.
The search is performed using the nsr_render_log networker command, which allows you to extract lines of the daemon.raw file in a readable format starting from a time interval.
It is useful during debugging, for investigating issues or performing operational tuning activities when using EMC Networker. After using it successfully, I decided to share it with the community, hoping it might be useful to others. Its operation is comparable to that of searching for error events in the Windows Event Viewer.
The principle is simple: if there are no lines containing the pattern in the last hrsago hours in the Networker daemon.raw file, the check returns OK. If, on the other hand, the pattern appears, it returns CRITICAL with the corresponding lines as output.
The idea is to perform the check at a frequency according to the hrsago value, so as to intercept the appearance of errors in a timely manner.
Operating notes The script have as mandatory parameters: -pattern (the text to search for) and -hsrago (number of past hours to analyze). PATTERN can be any word or a regular expression (e.g., “error|severe|critical” to identify the most relevant error types). It uses egrep to search. Exclude allows you to specify one or more words (in double quotes) to be excluded from the results.
Parameters -pattern PATTERN → string to search (case-insensitive). -hsrago HOURS → time interval in hours. -exclude EXCLUDE_PATTERN → (optional) pattern to filter out, for any unwanted matches -h → displays the help.
Definition example in nrpe cfg file command[check_daemon_log]=/usr/lib64/nagios/plugins/my-plugins/check_mydaemonlog -pattern "error|severe|critical" -hrsago 2 -exclude "no usable nsrmmd"
Enjoy.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!