10.09.2011, 15:17 UTC+2

Sie sind nicht angemeldet.

pdf to send on the mail

brandon

Anfänger

Beiträge: 3

Anzahl Nagios-Server: Nagios3

Nagios-Version(en): 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 3

Anzahl Services: 50

Betriebssystem(e): Debian

Plugin-Version(en): PNP4

NDO-Version: Nagios3

1

06.07.2011, 09:50

pdf to send on the mail

Hi,
I have a running the plug pnp4nagios. I would like to generate my graphs to pdf and send the mail? I wanted to do such a thing as a daily, weekly and monthly reports in pdf sent to the email. Is it possible?
Does anyone know anything about this?

p.s only english please :)

striep

Fortgeschrittener

Beiträge: 293

Geburtstag: 20.07.

Geschlecht: Männlich

Wohnort: Buxtehude

Anzahl Nagios-Server: 4

Nagios-Version(en): 3.0.6

Icinga-Version(en): 1.4.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: ~370

Anzahl Services: ~1160

Betriebssystem(e): Linux, Solaris, Windows

Plugin-Version(en): 1.4.x

NagVis-Version: ---

NDO-Version: ---

IDO-Version: 1.4.1

Sonstige Addon's: pnp 0.4.14 & 0.6.14, NSClient++ 0.3.8, SEC

2

06.07.2011, 14:53

Hi,

yes it is possible.
The following command will request the pdf and safe it.

Quellcode

1
curl -u : 'http:///pnp4nagios/pdf?host=&start=&end=&view=1' -o test.pdf


If you want different reports, you will have to adjust the start/end parameters.

regards

brandon

Anfänger

Beiträge: 3

Anzahl Nagios-Server: Nagios3

Nagios-Version(en): 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 3

Anzahl Services: 50

Betriebssystem(e): Debian

Plugin-Version(en): PNP4

NDO-Version: Nagios3

3

06.07.2011, 15:26

Zitat von »striep«


The following command will request the pdf and safe it.

Quellcode

1
curl -u : 'http:///pnp4nagios/pdf?host=&start=&end=&view=1' -o test.pdf


But where this parameter paste? and where is defined when and to someone to send?

Zitat von »striep«


If you want different reports, you will have to adjust the start/end parameters.
Yes, I know

striep

Fortgeschrittener

Beiträge: 293

Geburtstag: 20.07.

Geschlecht: Männlich

Wohnort: Buxtehude

Anzahl Nagios-Server: 4

Nagios-Version(en): 3.0.6

Icinga-Version(en): 1.4.1

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: ~370

Anzahl Services: ~1160

Betriebssystem(e): Linux, Solaris, Windows

Plugin-Version(en): 1.4.x

NagVis-Version: ---

NDO-Version: ---

IDO-Version: 1.4.1

Sonstige Addon's: pnp 0.4.14 & 0.6.14, NSClient++ 0.3.8, SEC

4

06.07.2011, 16:11

You have to open a shell on your nagios server and paste the command I posted.

This implies, that you have the program 'curl' installed on your nagios server.

The pdf is than saved to the harddisk of your nagios server.

This pdf can be send via email.

All the above actions could also be done through a script and run by a cronjob

brandon

Anfänger

Beiträge: 3

Anzahl Nagios-Server: Nagios3

Nagios-Version(en): 3

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: 3

Anzahl Services: 50

Betriebssystem(e): Debian

Plugin-Version(en): PNP4

NDO-Version: Nagios3

5

07.07.2011, 11:53

OK thanks, it works
and one more question
how to send an attachment via exim4? because it sends the contents of pdf to me on the mail

pitchfork

Super Moderator

Beiträge: 15 096

Wohnort: Kassel

Beruf: Sysadmin SAP / Linux / AIX

Anzahl Nagios-Server: 2

Hobbys: Motorrad fahren, wenns die Zeit erlaubt :-)

Nagios-Version(en): 3.2.1

Icinga-Version(en): ---

Verteiltes Monitoring: Nein

Redundantes Monitoring: Nein

Anzahl-Hosts: 310

Anzahl Services: 4500

Betriebssystem(e): Debian 5.0 Lenny

Plugin-Version(en): 1.4.x

NagVis-Version: 1.4.1

NDO-Version: ---

IDO-Version: ---

Perfparse-Version: ---

Sonstige Addon's: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk

6

07.07.2011, 12:24

PNP Developer.
PNP 0.6.14 ist online !
Fragen zu PNP mit Angabe der verwendeten PNP Version werden bevorzugt beantwortet.
OMD - Open Monitoring Distribution

Ähnliche Themen