License Management

check_plesk_licence

Description:

this is a simple php file that uses php-curl or curl command line to check your plesk licenses to see if they are valid within so may days or expired

Current Version

Last Release Date

2013-10-13

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor

Owner

License

GPL


Project Files
Project Notes
Reviews (1) Add a Review
script update
by wrufeger, April 30, 2024

reading password from etc/psa/.psa.shadow does not work, rest of script updated to work with current plesk and php8: #!/usr/bin/env php xpath('server/get/result/key'); if ($nodes) { foreach ($nodes[0]->property as $n) { if ($n->name == 'lim_date') { $node = $n->value; break; } } } if (empty($node)) { fwrite(STDERR, "UNKNOWN: Could not retrieve license info from server responsen"); exit(NAGIOS_RETURN_UNKNOWN); } $expirationDate = (string) $node[0]; $future = strtotime($expirationDate); $now = strtotime("now"); $diff = $future - $now; $daysToExpire = floor($diff/86400); if ($daysToExpire



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3 (1)
Favorites
0
Views
31,852