The monitoring client for UN*X allows you to add your UN*X / Linux / BSD servers under your monitoring account.
Requirements
- Active monitoring client license
- wget
- Perl
Installing Perl Dependancies
Use CPAN to install the Math::Round module by doing running the following:
cpan -i Math::Round
Installation
Download the client:
wget
https://deploy.nomadsystemsgroup.com/NSG-nsgMonitor.tgz
Extract the client:
tar xvfz NSG-nsgMonitor.tgz
Install the Perl Module:
cd NSG-nsgMonitor
perl Makefile.PL
make
make test
make install
Setup
To run the client, you will add an entry to your cron to run every four minutes. There are several options you can include, some are required, some are not. The options that you can use are:
Required:
-c client_id: Client ID who has the monitoring licenses
Optional:
-a csv_list_of_services: Does active checks remotely for these services
-h
-d
-e email_address: Sends alert messages to this email address
-u max_num_active_users: Checks the number of logged in users
-z: Checks for zombie processes
-p max_num_processes: Checks for a maximum number of processes running on the server
-s csv_list_of_process_names: Checks to make sure these processes are running
-r
Sample Crontab Entry
Here is a sample, using john@doe.com as the client id, doing active monitoring web services, checking for a maximum of 3 logged in users, looking for zombie processes, maximum number of processes of 175 and making sure that the mariadb process is running:
*/4 * * * * /usr/local/bin/nsgMonitor.pl -c john@doe.com -a http -u 3 -z -p 175 -s mariadbd > /dev/null
Removing Computer
To remove a computer, use the following command. It will removed from the online monitoring system shortly.
/usr/local/bin/nsgMonitor.pl -c john@doe.com -r