This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
// MYSQL Check - FIXME | |
// 1 UNKNOWN | |
### This script requires php-cli and php-mysql packages | |
# ============================================================================ | |
# This program is part of Percona Monitoring Plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"applications": { | |
"discovery": { | |
"applications": [ | |
{ | |
"app_type": "freeradius", | |
"app_state": "UNKNOWN", | |
"discovered": "1", | |
"app_state_prev": null, | |
"app_status": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[librenms@SERVERNAME /opt/librenms]$ | |
[librenms@SERVERNAME /opt/librenms]$ cat /opt/librenms/tests/data/linux_freeradius.json | |
cat: /opt/librenms/tests/data/linux_freeradius.json: No such file or directory | |
[librenms@SERVERNAME /opt/librenms]$ | |
[librenms@SERVERNAME /opt/librenms]$ ./scripts/save-test-data.php -o linux -v freeradius -m applications | |
OS: linux | |
Module: applications | |
Variant: freeradius | |
Starting snmpsim listening on 127.1.6.1:1161... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.3.6.1.2.1.1.1.0|4|Linux SERVERNAME 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 | |
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10 | |
1.3.6.1.2.1.1.3.0|67|153017404 | |
1.3.6.1.2.1.1.4.0|4|<private> | |
1.3.6.1.2.1.1.5.0|4|<private> | |
1.3.6.1.2.1.1.6.0|4|<private> | |
1.3.6.1.2.1.25.1.1.0|67|982537914 | |
1.3.6.1.4.1.8072.1.3.2.2.1.21.2.112.115|2|1 | |
1.3.6.1.4.1.8072.1.3.2.2.1.21.5.109.121.115.113.108|2|1 | |
1.3.6.1.4.1.8072.1.3.2.2.1.21.8.111.115.117.112.100.97.116.101|2|1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.3.6.1.2.1.1.1.0|4|Linux SERVERNAME 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 | |
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.8072.3.2.10 | |
1.3.6.1.2.1.1.3.0|67|152598968 | |
1.3.6.1.2.1.1.4.0|4|<private> | |
1.3.6.1.2.1.1.5.0|4|<private> | |
1.3.6.1.2.1.1.6.0|4|<private> | |
1.3.6.1.2.1.25.1.1.0|67|982119479 | |
1.3.6.1.4.1.8072.1.3.2.2.1.21.2.112.115|2|1 | |
1.3.6.1.4.1.8072.1.3.2.2.1.21.5.109.121.115.113.108|2|1 | |
1.3.6.1.4.1.8072.1.3.2.2.1.21.8.111.115.117.112.100.97.116.101|2|1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"applications": { | |
"discovery": { | |
"applications": [ | |
{ | |
"app_type": "freeradius", | |
"app_state": "UNKNOWN", | |
"discovered": "1", | |
"app_state_prev": null, | |
"app_status": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FreeRADIUS-Total-Access-Requests = 7731 | |
FreeRADIUS-Total-Access-Accepts = 235 | |
FreeRADIUS-Total-Access-Rejects = 4 | |
FreeRADIUS-Total-Access-Challenges = 490 | |
FreeRADIUS-Total-Auth-Responses = 729 | |
FreeRADIUS-Total-Auth-Duplicate-Requests = 5 | |
FreeRADIUS-Total-Auth-Malformed-Requests = 0 | |
FreeRADIUS-Total-Auth-Invalid-Requests = 0 | |
FreeRADIUS-Total-Auth-Dropped-Requests = 5 | |
FreeRADIUS-Total-Auth-Unknown-Types = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1435692862.972 59 10.2.40.23 TCP_REDIRECT/302 566 GET http://ws-na.amazon-adsystem.com/widgets/q? user@example.com HIER_NONE/- - | |
1435692865.473 0 10.2.48.48 TCP_REDIRECT/302 533 GET http://crl.microsoft.com/pki/crl/products/tspca.crl - HIER_NONE/- - | |
1435692873.765 0 172.25.102.27 TCP_REDIRECT/302 572 GET http://pubads.g.doubleclick.net/gampad/ads? user@example.com HIER_NONE/- - | |
1435692875.855 0 10.2.48.76 TCP_REDIRECT/302 590 GET http://ad.doubleclick.net/N8798/adj/bassmaster.main/tips/article;s1=tips;s2=article;s3=null;pid=tips-carolina-rigging-depth;kw=;test=off;pos=top;bas=ad;dcopt=;tile=2;sz=728x90;ord=6623113388457120;? user@example.com HIER_NONE/- - | |
1435692875.928 0 10.2.48.76 TCP_REDIRECT/302 590 GET http://ad.doubleclick.net/N8798/adj/bassmaster.main/tips/article;s1=tips;s2=article;s3=null;pid=tips-carolina-rigging-depth;kw=;test=off;pos=top;bas=ad;dcopt=ist;tile=3;sz=300x68;ord=6623113388457120;? user@example.com HIER_NONE/- - | |
1435692875.960 0 10.2.48.76 TCP_REDIRECT/302 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1435692953.025 1 172.20.14.16 TCP_REDIRECT/302 561 GET http://i.yldbt.com/m/d766/v1/init? user@example.com HIER_NONE/- - | |
1435692953.025 1 172.20.14.16 TCP_REDIRECT/302 566 GET http://aax.amazon-adsystem.com/e/dtb/bid? user@example.com HIER_NONE/- - | |
1435692953.025 1 172.20.14.16 TCP_REDIRECT/302 598 GET http://ad.crwdcntrl.net/5/c=434/pe=y/callback=blogherads.processauds user@example.com HIER_NONE/- - | |
1435692953.026 1 172.20.14.16 TCP_REDIRECT/302 553 GET http://pq-direct.revsci.net/pql? user@example.com HIER_NONE/- - | |
1435692953.026 1 172.20.14.16 TCP_REDIRECT/302 567 GET http://ads.pubmatic.com/AdServer/js/gshowad.js user@example.com HIER_NONE/- - | |
1435692953.041 1 172.20.14.16 TCP_REDIRECT/302 677 GET http://oascentral.blogher.org/RealMedia/ads/click_lx.ads/blogher.org.life.chumplady1813916/1354905116/x96/BlogHer/track_pageview/1x1.gif/? user@example.com HIER_NONE/- - | |
1435692953.258 24 172.20.14.16 TCP_REDIRECT/302 558 GET http://js.revsci.net/gateway/gw.js? user@example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/************************************************************ | |
* | |
* DESCRIPTION: simple logging class for php | |
* | |
* AUTHOR: Patrick K. Ryon (slashdoom) | |
* | |
***********************************************************/ | |
class logger { | |
private $log_file; |
NewerOlder