Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Nagios Windows Config Generator - TechArkit
Current Version
1.1.0
Last Release Date
2021-07-01
Compatible With
- Nagios 3.x
- Nagios 4.x
Owner
Twitter Handle
@aravikumar48
Download URL
License
GPL
Hits
3247
This Nagios Config Generator will Help you in generating the Nagios Configuration for you, using this simple script you can generate 1000 Hosts configuration within 5 Mins.
git clone https://github.com/techarkit/Nagios-config-generator.git
See how to Generate Windows Nagios Core Configuration.
cd /tmp
git clone https://github.com/techarkit/Nagios-config-generator.git
cd Nagios-config-generator
mkdir -p /scripts/
cp *.cfg *.sh /scripts
touch /scripts/serverlist.txt
Add servers IP's and host names in serverlist.txt file
Example:
192.168.1.120,sqlserver.domain.com
192.168.1.121,sqlserver1.domain.com
Save & Exit
Update Template-Windows.cfg and Drives.cfg
use TEMPLATENAME
contacts CONTACT1,CONTACT2 #this contact should exists in contacts.cfg
contact_groups GROUP1,GROUP2 #this groups should exists in contacts.cfg
verify commands.cfg #Defination for check_nt
define command {
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ -s secret
}
run shell script file once all the above parameters are set.
chmod u+x generate_win_host_config.sh
sh generate_win_host_config.sh
cd /tmp
git clone https://github.com/techarkit/Nagios-config-generator.git
cd Nagios-config-generator
mkdir -p /scripts/
cp *.cfg *.sh /scripts
touch /scripts/serverlist.txt
Add servers IP's and host names in serverlist.txt file
Example:
192.168.1.120,sqlserver.domain.com
192.168.1.121,sqlserver1.domain.com
Save & Exit
Update Template-Windows.cfg and Drives.cfg
use TEMPLATENAME
contacts CONTACT1,CONTACT2 #this contact should exists in contacts.cfg
contact_groups GROUP1,GROUP2 #this groups should exists in contacts.cfg
verify commands.cfg #Defination for check_nt
define command {
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ -s secret
}
run shell script file once all the above parameters are set.
chmod u+x generate_win_host_config.sh
sh generate_win_host_config.sh
Reviews (0)
Be the first to review this listing!