Denny Verstrepen
2012-03-08 10:15:54 UTC
Denny Verstrepen [http://community.zenoss.org/people/dennie1982] created the discussion
"Passing string data from custom script to ZenOss"
To view the discussion, visit: http://community.zenoss.org/message/65070#65070
--------------------------------------------------------------
Hi all,
Maybe the answer is trivial, but I am struggling to find a solution to my problem. Let me explain:
I've written a python script that processes all certificates stored in a directory and will output the amount of days left until the certificate - which first will expire - actually will expire. ZenOss will run this script by the check_by_ssh plugin.
E.g.:
In directory 'certsdir' we have 3 certificates: a.cer (still valid for 365 days), b.cer (still valid for 5 days), c.cer (still valid for 60 days). The script will process this certificates and will output: "*b.cer is about to expire (5 day(s) left) | daysleft=5*".
We have implemented different tresholds to trigger alerts so we can take action to update the certificate. The problem is I can't get the name of the certificate in the alert, which for us would be very nice (so we don't need to run the script manually again to get the name).
I could change the script that it will output: "*b.cer is about to expire (5 day(s) left) | daysleft=5 certificate=b.cer*", but how can I pass this information into my event? Is this possible at all? Or will I need to change my approach and start sending SNMP traps?
Denny
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65070#65070]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Passing string data from custom script to ZenOss"
To view the discussion, visit: http://community.zenoss.org/message/65070#65070
--------------------------------------------------------------
Hi all,
Maybe the answer is trivial, but I am struggling to find a solution to my problem. Let me explain:
I've written a python script that processes all certificates stored in a directory and will output the amount of days left until the certificate - which first will expire - actually will expire. ZenOss will run this script by the check_by_ssh plugin.
E.g.:
In directory 'certsdir' we have 3 certificates: a.cer (still valid for 365 days), b.cer (still valid for 5 days), c.cer (still valid for 60 days). The script will process this certificates and will output: "*b.cer is about to expire (5 day(s) left) | daysleft=5*".
We have implemented different tresholds to trigger alerts so we can take action to update the certificate. The problem is I can't get the name of the certificate in the alert, which for us would be very nice (so we don't need to run the script manually again to get the name).
I could change the script that it will output: "*b.cer is about to expire (5 day(s) left) | daysleft=5 certificate=b.cer*", but how can I pass this information into my event? Is this possible at all? Or will I need to change my approach and start sending SNMP traps?
Denny
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65070#65070]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]