Yes the command did work, and this is the desired effect.
What happens is the CONFIG command modifys the Running configuration if the NC_NEt host,
but it does not modify the Startup config file.
This was coded this way as a security measure, forcing an admin to log onto the server in a different manner to update there Startup config. THe config command bassically allows for modifying the configuraiton mostly for tweeking and testing. THis is a non-destructive modification that way, restarting NC_NEt resets the Startup.cfg defaults tp be loaded back in. Many users have default Startup.cfg that is on every host.
I am in the process of adding a Startup variable that would allow the Passive check Host name to be taken by the Computer Name in WMI.
I am also adding a new mechanism of storing the Password in a seperate file and a seperate active check command to modify the password in this file.
TOny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I tried to change a startup.cfg variable through an active check, and although
I am getting a positive response, the file is not changed :
[nagios] (43) > ./check_nt -H w2kserver -v CONFIG -l "interval_passive,5"
OK- interval_passive, 5
Can you confirm that it should work and/or do you have an idea why it doesn't ?
Thanks
Yes the command did work, and this is the desired effect.
What happens is the CONFIG command modifys the Running configuration if the NC_NEt host,
but it does not modify the Startup config file.
This was coded this way as a security measure, forcing an admin to log onto the server in a different manner to update there Startup config. THe config command bassically allows for modifying the configuraiton mostly for tweeking and testing. THis is a non-destructive modification that way, restarting NC_NEt resets the Startup.cfg defaults tp be loaded back in. Many users have default Startup.cfg that is on every host.
I am in the process of adding a Startup variable that would allow the Passive check Host name to be taken by the Computer Name in WMI.
I am also adding a new mechanism of storing the Password in a seperate file and a seperate active check command to modify the password in this file.
TOny