How can I monitor if syslog traffic stops being received?

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
bdmeyer
Posts: 7
Joined: Mon Apr 09, 2012 8:40 am
Location: Columbia, SC, USA

How can I monitor if syslog traffic stops being received?

Post by bdmeyer »

Can Nagios tell me if syslog traffic from a device suddenly goes silent?
I can monitor if the syslog service dies via snmp, but my concern is, what happens if someone alters a firewall setting that blocks the syslog traffic, or alters a device so it's syslog traffic is no longer being sent to the Nagios server?

I'd like to have emails sent off as soon as say 'x' time has passed with no syslog traffic being received from any of my monitored devices.

Thank-you. I apologize if this is rudimentary and every should know this. it's been a while since I worked with Nagios.

-= Bruce
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: How can I monitor if syslog traffic stops being received

Post by jolson »

Bruce,

You'll likely want to use check_log3 for this purpose: https://exchange.nagios.org/directory/P ... pl/details


One of the examples on that page could give you a head-start:
Return CRITICAL if not at least one MARK was written to the syslog since the last check:

check_log3.pl -l /var/log/messages -p MARK --negate -c 1
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
bdmeyer
Posts: 7
Joined: Mon Apr 09, 2012 8:40 am
Location: Columbia, SC, USA

Re: How can I monitor if syslog traffic stops being received

Post by bdmeyer »

Thank you. That gets me going.
-= Bruce
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How can I monitor if syslog traffic stops being received

Post by rkennedy »

Do you need any further assistance with this or am I good to close this thread out?
Former Nagios Employee
bdmeyer
Posts: 7
Joined: Mon Apr 09, 2012 8:40 am
Location: Columbia, SC, USA

Re: How can I monitor if syslog traffic stops being received

Post by bdmeyer »

I am good to go. Please close the thread. And thank you again.

-= Bruce
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How can I monitor if syslog traffic stops being received

Post by hsmith »

Glad to hear your question is resolved. I'll go ahead and close this.
Former Nagios Employee.
me.
Locked