Is it possible to generate png files manually ?
hi
I'm looking for a way to schedule some regular mailing with cpu pool load information.
For example is there a way to mail such dashboad page with all that png pictures .
I know alerting attach some pictures , but i need to send them regularly even when alert is not fired .
So probably i should use some script from lpar2rrd home like dashboard.pl or dashboard.sh but what how to use them ?
thanks
Dynia
I'm looking for a way to schedule some regular mailing with cpu pool load information.
For example is there a way to mail such dashboad page with all that png pictures .
I know alerting attach some pictures , but i need to send them regularly even when alert is not fired .
So probably i should use some script from lpar2rrd home like dashboard.pl or dashboard.sh but what how to use them ?
thanks
Dynia
Comments
-
Hi,
it is easy, create simple shell script with using wget.
Check apache access log to see what URL you need for each graph.
Then just get wanted grahs via wget regulary, email, save etc ...
-
Unfortunately is's not so easy in access.log filei got
- [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 4352
10.42.142.175 - - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 3756
10.42.142.175 - - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 7133
10.42.142.175 - - [04/Dec/2017:13:34:02 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 11851
10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 4352
10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 3756
10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG01PDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 7133
10.42.142.175 - - [04/Dec/2017:13:34:03 +0100] "GET /lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool-multi&item=lparagg&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842 HTTP/1.1" 200 11851
so there is no name of pictures files, there are generated dynamically probably ,
so i need to figure out which script generate them and maybe run them manually
thanks
-
wget <some params> http://<your site>/lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0
Gives you server BFG02RDR thorugh HMC1, pool graph, daily (time=d), detail=2 means small graph for dashboard, detail=1 is big one for a popup and detail=0 is normla size one
-
Pavel does it work for you ? Generally i got some errors and nothing is downloaded
thanks
-
I have not tested it but we have already adviced it some our users and it works for them.
What is the error?
Try this one just to ge sure, there is a parameter at the end.
wget <some params> http://<your site>/lpar2rrd-cgi/detail-graph.sh?host=HMC1&server=BFG02RDR&lpar=pool&item=pool&time=d&type_sam=m&detail=2&entitle=0&nonedb=1512390842
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle