The logger command can let you do this.

but the best way to do this is to use impstats to log info about how many messages each input has processed.

I like to have my sending machines set to generate at least one message/min, so that I am guaranteed to have messages from each system and can alert if the messages stop.

I also use the dyn_stats to generate per-server stats to ease this sort of alerting.

On Mon, 13 Mar 2017, Wiebe Cazemier wrote:

Date: Mon, 13 Mar 2017 11:55:54 +0100 (CET)
From: Wiebe Cazemier <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: [email protected]
Subject: [rsyslog] Monitoring (Nagios) on Rsyslog server TCP port

Hi,

We're having the issue that sometimes, the rsyslog server stops working 
(properly), and all remote clients start hanging when their queues are full. 
I'm improving the latter, but I need to be able to detect that rsyslog is still 
accepting log messages, preferably with our monitoring server (Nagios).

Is there an easy way to just run a CLI command and post a message to the 
rsyslog server? Or any other (easy) way? I can't seem to find much.

Regards,

Wiebe Cazemier
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to