I need a script writen to parse through a directory and create cfg files for nagios
$30 USD
กำลังดำเนินการ
โพสต์ มากกว่า 11 ปีที่ผ่านมา
$30 USD
ชำระเงินเมื่อส่งงาน
I need a to create nagios cfg files so i am looking for a script that does the following
some of the variables:
Path
Backup Name
Log File Name
1. scans the folder for .log files, and creates a statement for nagios monitor
log files are formated as follows [login to view URL] of [login to view URL]
take name of backup and create a file with each line being a new line
Formate of line:
check_veeam_name of backup=[login to view URL] //T:30 //NoLogo scripts\[login to view URL] "Path" name of backup /w:2 /c:3
2. create file named [login to view URL]
contains nagios cfg statements
each section in file contains reference to "check_veeam_name of backup"
define service{
use generic-service
host_name ServerName
service_description Name Of Backup
check_command check_nrpe_veeam!check_veeam_name of backup
}
I am not a scripting genius but I need to be able to modify these scripts after it is done, allowing me to input path, output file, would be great.
I will leave it up to you, the output needs to work with nagios symantecs.