Page 1 of 1

count line

Posted: Tue May 23, 2017 3:15 am
by bashar.abed
Hi,

we have a Nagios XI version 5.4.2 VM machine,

Please advise if Nagios can check count of lines in a file in linux system

and send me details about that if you can ,or please open webex with me to work it

Thanks

Re: count line

Posted: Tue May 23, 2017 11:19 am
by dwhitfield
This does a line count in it (wc -l), so it could probably be modified to your needs: https://exchange.nagios.org//directory/ ... og/details

Are you trying to set warnings and criticals based on a number of lines?

We don't do WebEx on the forum. If you want a WebEx you'll need to email [email protected] but be advised that we don't typically do remote sessions as a first line of trouble-shooting.

Are you trying to check a remote server (you'll likely need NRPE) or the nagios system (https://assets.nagios.com/downloads/nag ... ios-XI.pdf)?