Sunday, May 19th 2013, 9:52pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

1

Monday, April 18th 2011, 4:29pm

Icinga & SNMP

Hallo zusammen,
ich bin neu hier und habe Icinga auf einem Ubuntu laufen.
Folgendes hatte ich geplant - Überwachung bzw. Abfragen von Cisco Router via SNMP.
Ich habe nun 3 Stunden Doku und Tips auch in diesem Forum gelesen aber jetzt bin ich leider mit meinem Latein am Ende, ich hoffe ihr könnt mir weiter helfen.
Wenn ich folgendes auf absetzte:
snmpwalk -v1 -c public 192.168.1.13 sysUpTime.0
ist die Ausgabe:
RFC1213-MIB::sysUpTime.0 = Timeticks: (139620690) 16 days, 3:50:06.90
-> Passt also!
Wenn ich jetzt unter Icinga in der switch.conf folgendes eintrage:
# Monitor uptime via SNMP
define service{
use generic-service ; Inherit values from a template
host_name ca_switch
service_description Uptime
check_command check_snmp!-C TRAFFIC_PRTG -o sysUpTime.0
}
Zeigt mir die Weboervfläche von Icinga leider ein UNKNOWN an!
Was mache ich nur falsch?

VisMon

Intermediate

Posts: 207

Gender: male

Location: Schweiz

Number of monitoring servers: 1

Nagios Version: keine

Icinga Version: 1.5.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 123

Number of services: 413

OS: Centos 6 64Bit

Plugin Version: 1

2

Monday, April 18th 2011, 4:40pm

Du verwendest als Community einen falschen String:

check_command check_snmp!-C TRAFFIC_PRTG -o sysUpTime.0

da müsste "public" stehen.

Allgemein:

Versuche diesen Check von der Kommandozeile aus
1. Nicht als Root sondern als "icinga" User.
2. Nicht im Ordner /usr/local/icinga/libexec sondern direkt von "/".

Dies hilft dann weiter.

VisMon

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

3

Monday, April 18th 2011, 4:48pm

Danke für den Hinweis.
Aber der Community String passt schon. TRAFFIC_PRTG darauf hört das Testgerät hier!
Mit dieser Community kann ich auch folgenden Wert abfragen unter dem benutzer icinga
$ snmpwalk -v1 -c TRAFFIC_PRTG 192.168.1.13 sysUpTime.0
RFC1213-MIB::sysUpTime.0 = Timeticks: (139810090) 16 days, 4:21:40.90
Grüße

dnsmichi

Super Moderator

Posts: 5,976

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.0 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

4

Monday, April 18th 2011, 5:49pm

verwende bitte die [ code ] tags um config darzustellen.

ansonsten - neben der service definition bitte auch die command defintion von check_snmp posten. sowie das unknown verifizieren im icinga log - ggf gibts dort mehr informationen zum unknown.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

5

Monday, April 18th 2011, 6:11pm

Hallo!
So hier nun die command.cfg

Source code

1
2
3
4
5
# 'check_snmp' command definition
define command{
        command_name    check_snmp
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
        }

Und das hier steht in der switch.cfg drin

Source code

1
2
3
4
5
6
define service{
        use                     generic-service ; Inherit values from a template
        host_name               ca_switch
        service_description     Uptime
        check_command           check_snmp!-v2c -c TRAFFIC_PRTG -o sysUpTime.0
        }

Im Log der Weboberfläche steht
Service ALERT ... Status; UNKNOWN;HARD;3;(null)
Auf der Console unter /var/local/icinga/var/icinga.log bekomme ich - keine Berechtigung!

dnsmichi

Super Moderator

Posts: 5,976

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.0 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.0 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

6

Monday, April 18th 2011, 7:02pm

mach mal ein

# su - icinga

als root und versuche das commend laufen zu lassen. dort liegt dann vermutlich der fehler - dass der icinga user keine berechtigung hat, das plugin auszufuehren. respektive dass es nicht vorhanden ist - dh $USER1$ falsch ist.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

7

Monday, April 18th 2011, 7:05pm

Also bei einem su - icinga kommt heraus:

Source code

1
2
3
4
marcel@ubuntu:~$ su - icinga
Passwort: 
su: Fehler bei Authentifizierung
marcel@ubuntu:~$ 

Wie kann ich die rechte denn verteilen?

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

8

Monday, April 18th 2011, 7:13pm

Sry ich war nicht als root angemeldet!
Jetzt habe ich nach der Eingabe von su - icinga nur noch ein "#" stehen!

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

9

Tuesday, April 19th 2011, 8:24am

Hallo kann mir denn hier keiner mehr helfen?
Ich bräuchte das SNMP wirklich dringend?!?!

bern

Master

Posts: 2,938

Number of monitoring servers: 2-5

Nagios Version: 3.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 80-200

Number of services: 1400-2000

OS: Linux

Plugin Version: Whatever I can download, patch, or cobble together myself :-)

Other Addons: n2rrd, PNP, livestatus

10

Tuesday, April 19th 2011, 10:28am

Jetzt habe ich nach der Eingabe von su - icinga nur noch ein "#" stehen!
Das klingt danach, als ob Du mangels ausführbarer Login Shell gleich wieder auf root zurückgefallen wärst.
  • Nach dem "su - icinga" mit "id" nachsehen, wer Du tatsächlich bist
  • In /etc/passwd den User "icinga" 'raussuchen - Login Shell ist das letzte Feld
  • Gibt's dieses Executable, ist es (für nicht-root) ausführbar, sind alle Verzeichnisse darüber durchsuchbar, ist es eine Shell, wird sie in /etc/shells aufgeführt, ...

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

11

Tuesday, April 19th 2011, 10:34am

Nach Eingabe von su - icinga bekomme ich wie gesgat das "#"
"id" sagt mir folgendes:

Source code

1
2
3
4
 root@ubuntu:~# su - icinga
$ id
uid=1001(icinga) gid=1001(icinga) Gruppen=1001(icinga),4(adm),119(admin),1002(icinga-cmd)
$


Ich arbeite schon immer als User root, schon beim einrichten von icinga!

bern

Master

Posts: 2,938

Number of monitoring servers: 2-5

Nagios Version: 3.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 80-200

Number of services: 1400-2000

OS: Linux

Plugin Version: Whatever I can download, patch, or cobble together myself :-)

Other Addons: n2rrd, PNP, livestatus

12

Tuesday, April 19th 2011, 10:53am

Nach Eingabe von su - icinga bekomme ich wie gesgat das "#"
root@ubuntu:~# su - icinga
$
Aaaaaaahja ... :pinch:

Theorie "keine Login Shell" abgeheftet, dann bitte weiter mit manueller Ausführung des Check Commands wie von Michi vorgeschlagen.

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

13

Tuesday, April 19th 2011, 11:02am

Mhh ok...
erkläre mir bitte als Neuling was michi genau gemeint hat und wie ich das ausführen muss ?!?! :love:

bern

Master

Posts: 2,938

Number of monitoring servers: 2-5

Nagios Version: 3.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 80-200

Number of services: 1400-2000

OS: Linux

Plugin Version: Whatever I can download, patch, or cobble together myself :-)

Other Addons: n2rrd, PNP, livestatus

14

Tuesday, April 19th 2011, 2:21pm

http://www.nagios-wiki.de/nagios/plugins…n_eines_plugins

(Wenn ich das richtig mitbekommen habe, müßte in der Classic UI von Icinga 1.3.1, Detailansicht des betreffenden Service, das "ACTIVE" hinter "Check Type:" anklickbar sein ...)

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

15

Tuesday, April 19th 2011, 2:49pm

Ähm ok...
Leider weiß ich nicht was ich damit machen soll?!?!
Wenn ich mich als User "icinga" anmelde, dann kann ich nicht tappen und ich habe als prompt nur "$"?!?
Ich möchte doch nur, dass man SNMP bei den Geräte abfragen kann???!

bern

Master

Posts: 2,938

Number of monitoring servers: 2-5

Nagios Version: 3.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 80-200

Number of services: 1400-2000

OS: Linux

Plugin Version: Whatever I can download, patch, or cobble together myself :-)

Other Addons: n2rrd, PNP, livestatus

16

Tuesday, April 19th 2011, 3:26pm

Wenn ich mich als User "icinga" anmelde, dann kann ich nicht tappen und ich habe als prompt nur "$"?!?
Ich hab' ja nichts davon gesagt, daß Du erst eine Kommandozeile aufmachen und dann dort irgendwas klicken sollst. Du brauchst eine Kommandozeile, die Du eingeben kannst und die dem, was Icinga aufruft, möglichst ähnlich sieht. Und den Rohbau dafür kannst Du Dir entweder um drei Ecken aus der Icinga Config zusammenreimen - oder Du benutzt den genannten Link und kriegst eine Anzeige, aus der die ersten anderthalb Ecken schon entfernt wurden.

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

17

Tuesday, April 19th 2011, 6:47pm

Hallo zusammen,
also wenn ich ein /usr/local/icinga/libexec/ mache bekomme ich alles nur kein check_snmp als Auswahl

Source code

1
2
3
4
5
6
root@ubuntu:~# /usr/local/icinga/libexec/
check_apt           check_dhcp          check_dummy         check_icmp          check_ircd          check_mrtgtraf      check_ntp_peer      check_ping          check_sensors       check_time          negate
check_breeze        check_dig           check_file_age      check_ide_smart     check_load          check_nagios        check_ntp_time      check_pop           check_smtp          check_udp           urlize
check_by_ssh        check_disk          check_flexlm        check_ifoperstatus  check_log           check_nntp          check_nwstat        check_procs         check_ssh           check_ups           utils.pm
check_clamd         check_disk_smb      check_ftp           check_ifstatus      check_mailq         check_nt            check_oracle        check_real          check_swap          check_users         utils.sh
check_cluster       check_dns           check_http          check_imap          check_mrtg          check_ntp           check_overcr        check_rpc           check_tcp           check_wave 

Ich habe auch die Plugins auch mit "wget" noch einmal nachinstalliert, auch kein Erfolg?!?!
ich gehe mal davon aus, wenn ich hier kein check_snmp finde wird es auch nicht gehen oder?
Wie kann ich das einzeln nach installieren?

bern

Master

Posts: 2,938

Number of monitoring servers: 2-5

Nagios Version: 3.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 80-200

Number of services: 1400-2000

OS: Linux

Plugin Version: Whatever I can download, patch, or cobble together myself :-)

Other Addons: n2rrd, PNP, livestatus

18

Tuesday, April 19th 2011, 8:46pm

... also wenn Plugins bei Icinga mit wget installiert werden, dann sollte ich wegen erwiesenem Nagios-only-Tunnelblick meinerseits lieber keine Ratschläge zu diesem Teilthema erteilen ...

(Ja, das fehlende check_snmp erklärt recht schlüssig, warum Du kein OK gemeldet bekommst.)

Posts: 25

Birthday: Oct 13th 1986 (26)

Gender: male

Location: Sinntal

Occupation: Administrator

Number of monitoring servers: 1

Nagios Version: Icinga 1.3.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 25

Number of services: 150

OS: Windows XP, Windows 7, Ubuntu, MacOs, Cisco

Plugin Version: ???

NDO Version: 1

19

Tuesday, April 19th 2011, 9:15pm

mhh ok ...
Sry, dass ich so nachfrage, aber wie andere auch muss ich mich erst in die Materie finden...
Kannst du mir nun auch vielleicht für Anfänger bitte nochmal erklären wie ich das fehlende check_snmp Plugin nach installieren kann?
Weiterhin stellt sich mir die Frage, da ich mich an das HowTo der Schnellstartanleitung gehalten habe, wieso gerade das nicht dabei ist???
Ich wäre dankbar, wenn mir jemand in einzelnen Schritten erklären könnte wie ich das fehlende Plugin für icinga nachinstallieren kann ...
Danke

Posts: 7,238

Gender: male

Number of monitoring servers: 2

Nagios Version: 3.2.1

Icinga Version: Icinga 1.7.x

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: >70

Number of services: >200

OS: SLES11

Plugin Version: 1.4.15

Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18

20

Tuesday, April 19th 2011, 9:31pm

Quoted

Weiterhin stellt sich mir die Frage, da ich mich an das HowTo der Schnellstartanleitung gehalten habe, wieso gerade das nicht dabei ist???
Eigentlich stehen die benötigten Pakete in der Schnellstartanleitung. Wechsel bitte in das Verzeichnis, aus dem du die Plugins installiert hast und schau in der config.log nach Fehlermeldungen bzgl. SNMP.
Anschließend installierst du die fehlenden Pakete, machst in dem Verzeichnis ein "make clean" und anschließend wieder

./configure --prefix=/usr/local/icinga --with-cgiurl=/icinga/cgi-bin --with-htmurl=/icinga --with-nagios-user=icinga --with-nagios-group=icinga
make
make install

Danach solltest du im Plugin-Verzeichnis check_snmp finden.