Menu

Issue with changing variables with CONFIG

Help
ely
2007-03-14
2013-04-25
  • ely

    ely - 2007-03-14

    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

     
    • tony

      tony - 2007-03-14

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.