Subversion Repositories vnag

Rev

Rev 76 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 76 Rev 79
Line 1... Line -...
1
<?php /* <ViaThinkSoftSignature>
-
 
2
yjpYd6RjoRdUv8xZFrEs3f8uvPQ6gVhf+TIEOFZTd7KIRVbDHy+ZOONeDDtLXJAeX
-
 
3
EPpNHBT2jijIHlPKklWF9fMPoZ3xOuXNaQ8m8aejwxZzMxoB4owNDq9L8neC4PN3y
-
 
4
CvtiaAJa1+mex9P9D0GFEUoVpwNMlKZVaav0ncmedOFE6Y0U+X/hnlbcWF5ItdzAO
-
 
5
1IufVyVECA48edIfuqRQjqGATLs/vkBJPwzbsH3JzrL6hyK5Ry2p+ReMO3/50q5zt
-
 
6
unz9oeGa1A7milra0kZVBapqcrX3XEHsgGNkt9M+S+BuRLnDHYiJiuqshQZBkwfAr
-
 
7
rr6xyd8TahY2V3b8NWjnOEuh6DlKu5BOWzMwDNa43jST9vopyhevNQe3iIDqwswVw
-
 
8
Hw8EnFQWXt+ASFZzi2NSKMWbEWcjR/8Tv4ciQUM8wgAYoAM6YwamTeuuNxJg2fF8B
-
 
9
Oipr7+OX98qyPBTLg/6yGOo1ie/w36toFe6uS5c430fU7VlFHugGo2VMixFOa5f70
-
 
10
E29E6+wzA2LVi9eDrPZka5iGfSdhMyGI2VOQ/keqCp3Xi9WhqfUVJIO4kSz5C9iy/
-
 
11
9A2Nxj7GAQbkn/aYGXyFYvhrZFzwV414P4xXzoS0+BgPjVXbunkhDbsncSoX3YWU8
-
 
12
MRORTxNMdz9WINlLvfx+/7MWMob+z4Bieq1l971cufFyhefDbQ1rluCfIU6Cgxpyf
-
 
13
rq0GmPUSjL6FKWtyDFWKuFPoftz12/9evd2M5Kxr5zz2yiR3+c8w3kta4AAuILNsL
-
 
14
Rni2lUIF5usajSKVZxWVNc4sFoBJ2TCG3GQ9XxeLDFYwxPkGzz0z82h4vj0pnSBGF
-
 
15
Q3z5WZ/V4NCydpmXQP4gR1ghMB/1YKZ7OyJ7jiiglCBSQ2ZASXcnmgvXFMWxCrNFC
-
 
16
a6dMKnKFUAFGjINp+/uKO77qY4z0foWBZJl5+YfzDZgOSWgSPMEPVHKjGZXl2JM0J
-
 
17
Dl3jeI3PwuzrsiCY8GzEEla7ggvkSOJ4jzzXDsx2QULOgHgIOb77FfWDl0EgHQGgf
-
 
18
ezMkbe5JXxP5guV4Y4bMvTNdMIW3OhOE7rl5DMhgUM8u5K6XuxA+cF+WFd7eCOe85
-
 
19
w5FeTdWMWtT/0C3lVhyTFfzLbeRqUuI/9i23xwPURpANo3TQd5BTaYVQqltTKKCPi
-
 
20
wZ7Me7bRnk07tnnnElrmSebv5T9hX9G97GKG3PEHtrOcDLzmhSOITNCm6/0G7xbi/
-
 
21
4DKZr9Dtc86eHaQXEunXKKjuk1pEODb2zh57xqdrtyf7LaW8mRCi/vA5C3uxIgFvj
-
 
22
LZLY8vUeP5eK7+8m8qBkzb+xSJMVl0QWlFDINIcZzM/6JDljLjeEGo+S7kd1VkY2B
-
 
23
Q==
-
 
24
</ViaThinkSoftSignature> */ ?>
-
 
25
<?php
1
<?php
26
 
2
 
27
/*
3
/*
28
 * VNag - Nagios Framework for PHP
4
 * VNag - Nagios Framework for PHP
29
 * Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
5
 * Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
Line 55... Line 31...
55
                $this->addExpectedArgument($this->argBasicAuth  = new VNagArgument('b', 'basicAuth',  VNagArgument::VALUE_REQUIRED, 'username:password', 'In case the target website requires Basic Auth, please pass username and password, divided by double-colon, into this argument.', null));
31
                $this->addExpectedArgument($this->argBasicAuth  = new VNagArgument('b', 'basicAuth',  VNagArgument::VALUE_REQUIRED, 'username:password', 'In case the target website requires Basic Auth, please pass username and password, divided by double-colon, into this argument.', null));
56
                $this->addExpectedArgument($this->argPassword   = new VNagArgument('p', 'password',   VNagArgument::VALUE_REQUIRED, 'password', 'In case the machine readable VNag output is encrypted, enter the password here.', null));
32
                $this->addExpectedArgument($this->argPassword   = new VNagArgument('p', 'password',   VNagArgument::VALUE_REQUIRED, 'password', 'In case the machine readable VNag output is encrypted, enter the password here.', null));
57
                $this->addExpectedArgument($this->argSignPubKey = new VNagArgument('k', 'signPubKey', VNagArgument::VALUE_REQUIRED, 'pemFile', 'In case the machine readable VNag output is signed, enter the filename of the public key (PEM) file here, to verify the signature of the output.', null));
33
                $this->addExpectedArgument($this->argSignPubKey = new VNagArgument('k', 'signPubKey', VNagArgument::VALUE_REQUIRED, 'pemFile', 'In case the machine readable VNag output is signed, enter the filename of the public key (PEM) file here, to verify the signature of the output.', null));
58
 
34
 
59
                $this->getHelpManager()->setPluginName('vnag_webreader');
35
                $this->getHelpManager()->setPluginName('vnag_webreader');
60
                $this->getHelpManager()->setVersion('1.0');
36
                $this->getHelpManager()->setVersion('2023-10-13');
61
                $this->getHelpManager()->setShortDescription('This plugin reads embedded machine readable VNag output from a website and converts it into a Nagios compatible output format.');
37
                $this->getHelpManager()->setShortDescription('This plugin reads embedded machine readable VNag output from a website and converts it into a Nagios compatible output format.');
62
                $this->getHelpManager()->setCopyright('Copyright (C) 2011-$CURYEAR$ Daniel Marschall, ViaThinkSoft.');
38
                $this->getHelpManager()->setCopyright('Copyright (C) 2011-$CURYEAR$ Daniel Marschall, ViaThinkSoft.');
63
                $this->getHelpManager()->setSyntax('$SCRIPTNAME$ -u <url> [-i <id>] [-b <username>:<password>] [-k pubKeyFile] [-p <password>]');
39
                $this->getHelpManager()->setSyntax('$SCRIPTNAME$ -u <url> [-i <id>] [-b <username>:<password>] [-k pubKeyFile] [-p <password>]');
64
                $this->getHelpManager()->setFootNotes('If you encounter bugs, please contact ViaThinkSoft at www.viathinksoft.com');
40
                $this->getHelpManager()->setFootNotes('If you encounter bugs, please contact ViaThinkSoft at www.viathinksoft.com');
65
        }
41
        }