Menu

NC_Net external arguments?

Help
2008-08-05
2013-04-25
  • David Jacobson

    David Jacobson - 2008-08-05

    Hi There,

    We have deployed NC_Net to a fairly large environment where none of the servers are linked up in anyway.

    All servers are on their own domain, have their own internet connection etc.

    We decided to go with NC_Net using passive checks as we also couldn't open up ports on each host easily.

    We have designed the passive.cfg to point to direct services/drive names etc.  Now, we need to make minor changes
    but now need to redeploy nc_net manually to 100's of hosts.

    So, my question - is it possible to setup NC_Net in a way where it can accept external arguments?  So from Nagios we can change what drive to monitor etc?  Or is this not possible and do we have to hardcode everything in passive.cfg and keep redeploying the plugin to 100's of hosts manually after a change?

    With NRPE you can do this...

    If this functionality exists, even pointing me to the relevant howto would be excellent.

    Thanks in advance,
    David

     
    • tony

      tony - 2008-08-06

      The default configuration allows remote config of passive checks.
      However as with NRPE it must recieve the command through an Active check thus you would have needed to have the port open on the Hosts.
      So provided you left active checks running and accesible then it should work.

      Check_nc_net.c Has several PassiveCheck configuration options that give much functionality to remote managment of passive checks. 
      run check_nc_net from the command prompt and use the --Help option to list all the arguments availible.  

      NC_Net also has a config command that changes the running configuration,
      there is no way to save the running config to the startup.cfg

      Alternatively you may be able to script FTP or some other scp to replace the passive.cfg on the hosts.

      Hope this helps,
      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.