J
jdonovan151
So I have about 70-80 servers that have a Nagios check running on
them.. I realized today that in one of the .cfg files there is a
value that is "/nagios/plugins/check_disk -w 20 -c 10"
it needs to read:
/nagios/plugins/check_disk -w 20% -c 10%
I have the server list in a text file and can ssh as root to all of
these servers what I need to be able to do is have a script that will
read in the server list then go out to each machine go to /usr/local/
nagios/myfile.cfg
find that line and replace the value of 20 with the value of 20%.
Any help is much appreciated and if your in the Boston area might get
you a beer or two
Thanks !
them.. I realized today that in one of the .cfg files there is a
value that is "/nagios/plugins/check_disk -w 20 -c 10"
it needs to read:
/nagios/plugins/check_disk -w 20% -c 10%
I have the server list in a text file and can ssh as root to all of
these servers what I need to be able to do is have a script that will
read in the server list then go out to each machine go to /usr/local/
nagios/myfile.cfg
find that line and replace the value of 20 with the value of 20%.
Any help is much appreciated and if your in the Boston area might get
you a beer or two
Thanks !