count line

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

count line

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: count line

Post 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)?
Locked