This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

script to restart snmpd?

Hey
sorry mi english ;-)

how can i restart this service or deamon?


 Code:
 root       803     1  0 Apr19 ?        00:00:43 /usr/sbin/snmpd -c /etc/snmpd.conf -Ls daemon 

 

whith this script are snmpd not running
Code:

/var/mdw/scripts/snmpd restart



This thread was automatically locked due to age.
Parents
  • Hi,
    Using this script is the preferred way to restart the SNMPd server. In fact, the ASL itself is doing it that way when needed. Therefore we should rather try to find the reason why this script doesn't work for you.
    Why do you want to restart the daemon manually, anyway?

    Cheers,
    andreas
  • ich glaube kann in deutsch schreiben ;-)

    habe das snmpd.conf angepasst und damit es in die config gelesen wird, muss ich den deamon ja neu starten oder?

    habe die zeile eingefügt:
     Code:
     exec .1.3.6.1.4.1.2021.999.1 TCP_Connections /usr/bin/perl /usr/local/bin/cacti_unix_tcp_connections.pl
     

     
    damit ich per snmp von meinem andern server den cacti server füllen kan aber leider kommt kein output zurück?
Reply
  • ich glaube kann in deutsch schreiben ;-)

    habe das snmpd.conf angepasst und damit es in die config gelesen wird, muss ich den deamon ja neu starten oder?

    habe die zeile eingefügt:
     Code:
     exec .1.3.6.1.4.1.2021.999.1 TCP_Connections /usr/bin/perl /usr/local/bin/cacti_unix_tcp_connections.pl
     

     
    damit ich per snmp von meinem andern server den cacti server füllen kan aber leider kommt kein output zurück?
Children
  • English Version below

    Ich würde auf eine fehlende Paketfilter-Regel tippen. Daher würde ich vorschlagen, auf der ASL SNMP fuer den Cacti server freizuschalten (System->SNMP->SNMP Access) und den SNMP server auf der ASL zu befragen. AFAIK muesste das mit Cacti funktionieren. Und als kleinen Bonus musst du kein eigenes Skript auf der ASL verwenden und keine Kommandozeilenänderungen machen (support, ...).

    Deutsche Anfragen bitte maximal per PM, schließlich wollen unsere internationalen Leser auch was davon haben... [:)]

    ------ English version -----
    My guess is that a paket filter rule is missing. I'd not install a script on the ASL, I'd rather enable SNMP access from the Cacti server (WebAdmin->System->SNMP->SNMP Access) and poll from there. AFAIK this should work with cacti, and as an additional bonus you don't need to do manual changes on the command line (which void your support).

    Regards,
    andreas